Sunblood Posted April 25, 2004 Posted April 25, 2004 If you set a hotkey (for example, HotKeySet("^{HOME}")) and then later in the script have a Send("") function that sends the hotkey, will the hotkey register in AutoIt? I.E. HotKeySet("^{HOME"},"OMG") Sleep(5000) Send("^{HOME}") Func OMG() MsgBox(0,"","Roffles.") EndFunc I would try it out, but I'm not home.
Valik Posted April 25, 2004 Posted April 25, 2004 Yes, you'll throw the script into an infinite loop. You'll need to do something like this (Fixed your typo, too...): HotKeySet("^{HOME}","OMG") Sleep(5000) HotkeySet("^{HOME}") ; Remove the hotkey... Send("^{HOME}") HotKeySet("^{HOME}","OMG") ; Readd the hotkey Func OMG() MsgBox(0,"","Roffles.") EndFunc
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now