Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

1 Answer 1

up vote 4 down vote accepted

This is the correct form:

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

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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