How To Write Autohotkey Script . After creating the file, you need to open it in the editor to enter some code. Autohotkey must have been installed for the autohotkey selection to appear. autohotkey script only works if it creates a new notepad file each time from superuser.com “compile script” will bundle it with an ahk executable to make an exe file you can run. Ahk scripts are text files with a.ahk extension. Press winkey + alt + c to paste the clipboard contents: