You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to simulate long press event by sending keys release or press event to a not activated window. I did not find any way to do this in AHK.Window class.
The text was updated successfully, but these errors were encountered:
The way you do this is through the send method of the Window class. Doing a long press works the same way as described in the docs describing Repeating or Holding Down a Key. (these features also work with ControlSend, which is the underlying functionality of Window.send).
For example, the AutoHotkey documentation provides:
Send {Updown} ; Presses down the up-arrow key.Sleep1000 ; Keeps it down for one second.Send {Upup} ; Releases the up-arrow key.
Using the wrapper, the equivalent doing what you want to a window that is not active:
Checked the documentation
describe your feature request
I want to simulate long press event by sending keys release or press event to a not activated window. I did not find any way to do this in AHK.Window class.
The text was updated successfully, but these errors were encountered: