Jump to content

GUISetAccelerators as an interrupt?


Recommended Posts

Hi all,

I was wondering if there is another choice instead of GUISetAccelerators or HotKeySet. I'm looking for the full interrupt of HotKeySet without interfering with other running applications and keybinds. I am running AutoIt in an extreme environment (essentially running a very heavy java application, several chrome instances, and Autoit all on a single core) and GUISetAccelerators just isn't reliable, taking several minutes and sometimes an hour to be processed. HotKeySet really isn't an option due to needing as many keys as possible. I believe this is because I'm getting very few while loop cycles per minute, and that events are being processed in the order they were received. Is there anyway to force a GUI event to be processed before any others? Would using OnEventMode() be more reliable instead of GUIGetMsg()?

Thanks in advance!

Edited by rcmaehl

My UDFs are generally for me. If they aren't updated for a while, it means I'm not using them myself. As soon as I start using them again, they'll get updated.

My Projects

WhyNotWin11
Cisco FinesseGithubIRC UDFWindowEx UDF

 

Link to comment
Share on other sites

You may want to try hooking to the control using either :

_WinAPI_SetWindowLong with the $GWL_WNDPROC option

or

SetWindowSubclass Win32 API

In both cases, by hooking to the message WM_KEYDOWN, you should get better response time...I think.

Edited by Nine
Link to comment
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
 Share

  • Recently Browsing   0 members

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