Jump to content

override other program hotkeys?


thc
 Share

Recommended Posts

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

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

Well, 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

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

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'. :D

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...