2

Say I want to change the key F12 to instead open the file C:\file.txt

How can I do this using AutoHotKey?

Here is what I have that is not working:

F12::Run C:\file.txt

UPDATE: I did it wrong. I should be using a forward slash, not a back slash. First to answer with this answer an maybe give another tip, wins.

This works:

F12::Run C:/file.txt

1 Answer 1

4

This is the correct form:

F12::Run, C:\file.txt
3
  • You're Right!!! =D
    – superuser
    Feb 7, 2012 at 5:56
  • 1
    @techaddict Are you new to AutoHotkey? I'm one of the local AutoHotkey fanatics here, so feel free to @iglvzx me in the Chat if you ever need help with AHK. :)
    – iglvzx
    Feb 7, 2012 at 5:58
  • Okay =) I have used AutoHotKey in the past, but only for very basic functions.
    – superuser
    Feb 7, 2012 at 6:26

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .