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
link|improve this question

75% accept rate
feedback

1 Answer

up vote 3 down vote accepted

This is the correct form:

F12::Run, C:\file.txt
link|improve this answer
You're Right!!! =D – techaddict Feb 7 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 at 5:58
Okay =) I have used AutoHotKey in the past, but only for very basic functions. – techaddict Feb 7 at 6:26
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.