Sign in to follow this  
Followers 0
jacky_ckw

hotkey function

8 posts in this topic

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.

Share this post


Link to post
Share on other sites

yeah! it works, thanks man!

;)


New to script...But getting the hang of it.

Share this post


Link to post
Share on other sites

is it possible to do a hotkey for mouse click?

;)


New to script...But getting the hang of it.

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

#6 ·  Posted (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 by Andreik

When the words fail... music speaks

Share this post


Link to post
Share on other sites

jacky_ckw

Use a _MouseSetOnEvent() UDF

wonderful!

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.

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0