sir Posted October 5, 2006 Posted October 5, 2006 Can I extent the hotkey "^c" function, ie. when i press "^c" it will copy the selected and also do another function.
Helge Posted October 5, 2006 Posted October 5, 2006 (edited) HotKeySet("^c", "myFunc") While 1 Sleep(10) WEnd Func myFunc() HotKeySet("^c") ; un-register hotkey, so next line wont call it again Send("^c") ; send Ctrl+C ; do stuff MsgBox(64, "", ClipGet()) HotKeySet("^c", "myFunc") ; register hotkey again EndFunc edit : forgot something Edited October 5, 2006 by Helge
sir Posted October 5, 2006 Author Posted October 5, 2006 HotKeySet("^c", "myFunc") While 1 Sleep(10) WEnd Func myFunc() HotKeySet("^c") ; un-register hotkey, so next line wont call it again Send("^c") ; send Ctrl+C ; do stuff MsgBox(64, "", ClipGet()) HotKeySet("^c", "myFunc") ; register hotkey again EndFunc edit : forgot something I forgot the un-register hotkey Anyway, thank you very much
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