Jump to content

Recommended Posts

Posted

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.

Posted

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.

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

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...