thc Posted April 19, 2008 Share Posted April 19, 2008 I was wondering if it's possible to override another program's hotkeys with autoIt? I know the help file says you can't: "Any global hotkeys a user has defined using third-party software...." But I know other similar programs allow you to do this. Just wondering if there was a way with autoIt. Thanks Link to comment Share on other sites More sharing options...
JustinReno Posted April 19, 2008 Share Posted April 19, 2008 I was wondering if it's possible to override another program's hotkeys with autoIt? I know the help file says you can't: "Any global hotkeys a user has defined using third-party software...."But I know other similar programs allow you to do this. Just wondering if there was a way with autoIt. ThanksWell, obviously the people who wrote AutoIt wrote most the help file. So what does that tell you? You can not. Link to comment Share on other sites More sharing options...
thc Posted April 19, 2008 Author Share Posted April 19, 2008 Well, obviously the people who wrote AutoIt wrote most the help file. So what does that tell you? You can not.I used the _IsPressed function, which worked out more or less the way I wanted it to. thanks for your help, Justin Reno. Link to comment Share on other sites More sharing options...
FreeFry Posted April 19, 2008 Share Posted April 19, 2008 An alternative to using _IsPressed could be to use DllCall in combination with SetWindowsHookEx (http://msdn2.microsoft.com/en-us/library/ms644990(VS.85).aspx) and making a WH_KEYBOARD_LL (http://msdn2.microsoft.com/en-us/library/ms644985(VS.85).aspx). Search the forum about WH_KEYBOARD_LL and it will surely pop up some examples that uses it. That way you would not need to constantly poll the keys you want 'detect'. Link to comment Share on other sites More sharing options...
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