I have a massive file in V1.
I'm having trouble making work in V2.
This is what I have so far:
Code: Select all
::]ahk::
{
tempClipboard := Clipboard
Clipboard =
(
#NoEnv ; Recommended setting for new AHK scripts. Makes sure AHK doesn't access empty variables.
#SingleInstance force
;===============================
/*
Put code details here.
*/
;===============================
MsgBox, ,, AutoHotKey ##`%A_ScriptName`%## now loaded and ready to be used, 1.5
; Start coding in the line below.
^#F9::
MsgBox Hey, there my first kinda function!
Return
^#F10::Reload ;<- Windows Key + F10 causes the script to reload itself
^#F11::
MsgBox, ,, AutoHotKey ##`%A_ScriptName`%## Code about to close, 2.5
ExitApp ;<- Exit the app
Return
)
SendInput ^v
Sleep 200
Clipboard := tempClipboard
Return
}
And I get a ready made template.
What is wrong with what I have above?
Works OK in V1.
Thanks.