jacky_ckw Posted September 4, 2008 Posted September 4, 2008 hi guys, i was wondering if the hotkey function is able to "redirect" to another key. understand that a hotkey-press *typically* interrupts the active AutoIt function/statement and runs its user function until it completes or is interrupted. so am i able to make the keyboard respond to a "space" key when the "esc" key is hit? i have to write like this right? HotKeySet("{ESC}", "redirect") Func redirect() Send("{SPACE}") EndFunc New to script...But getting the hang of it.
Valuater Posted September 4, 2008 Posted September 4, 2008 Maybe... HotKeySet("{ESC}", "redirect") While 1 Sleep(100) ; idle around WEnd Func redirect() Send("{SPACE}") EndFunc ;==>redirect 8)
jacky_ckw Posted September 4, 2008 Author Posted September 4, 2008 yeah! it works, thanks man! New to script...But getting the hang of it.
jacky_ckw Posted September 4, 2008 Author Posted September 4, 2008 is it possible to do a hotkey for mouse click? New to script...But getting the hang of it.
jacky_ckw Posted September 5, 2008 Author Posted September 5, 2008 can i do this in the hotkey function? HotKeySet("_IsPressed("02", $dll)", "intercept right mouse click"); right mouse click New to script...But getting the hang of it.
Andreik Posted September 5, 2008 Posted September 5, 2008 (edited) can i do this in the hotkey function? HotKeySet("_IsPressed("02", $dll)", "intercept right mouse click"); right mouse click _IsPressed() returns true or false. If your hotkey isn't in a loop (to can check if right click is pressed) will returns value 0. I don't know exactly what you want but I think that you shloud use more help file to understand this function. Edited September 5, 2008 by Andreik
jacky_ckw Posted September 5, 2008 Author Posted September 5, 2008 jacky_ckwUse a _MouseSetOnEvent() UDFwonderful!just what i was looking for, thank you so much!thanks to all who replied, appreciate it. New to script...But getting the hang of it.
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