cageman Posted August 14, 2006 Share Posted August 14, 2006 (edited) everytime i run my script it says: error: Unknown macro. i want to exit this script everytime i hit delete or end and after exit unset the hotkey. Why isn't the @HotKeyPressed accepted? While 1 HotKeySet("{DEL}", "Hotkey") HotKeySet("{END}", "Hotkey") Wend Func Hotkey() Unsetkey(@HotKeyPressed) EndFunc Func Unsetkey($x) Exit HotKeySet ($x) Send ($x) HotKeySet ($x, "Hotkey") EndFunc any comment is welcome Edited August 14, 2006 by cageman Link to comment Share on other sites More sharing options...
Zib Posted August 14, 2006 Share Posted August 14, 2006 HotKeySet("{DEL}", "Hotkey") HotKeySet("{END}", "Hotkey") While 1 ;;;; Wend Func Hotkey() $Key = @HotKeyPressed HotKeySet($Key) Send($Key) HotKeySet($Key, "Hotkey") EndFunc Link to comment Share on other sites More sharing options...
cageman Posted August 14, 2006 Author Share Posted August 14, 2006 oke sorry for this stupid question.... i didn't updated my autoit version, thats why it didn't work.. thx for your respond. Link to comment Share on other sites More sharing options...
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