Jump to content

bind something to a button


Recommended Posts

hello, i couldnt find a function in the manual to capture keypresses, lets say when I press F1 i want to do that... a function like (in C/C++) GetAsyncKeyState().

Are there any?

thx

EDIT:// ok I found HotKeySet

how can I use HotKeySet with BlockInput, lets say I want to ignore ALL keys except F1.?

Edited by apsync
Link to comment
Share on other sites

It seems to me the answer is right in the helpfile with the block input. You have to decide which operating system it is using and then it will tell you if the blockinput is going to be good for you.

Another thing you might want to look into is _IsPressed() function it is a UDF so you will need to search the Scripts and Scraps Forum for the code for it. But basically what you will be doing with that is capturing all key presses and not letting anything through except what you want to go through.

JS

AutoIt Links

File-String Hash Plugin Updated! 04-02-2008 Plugins have been discontinued. I just found out.

ComputerGetInfo UDF's Updated! 11-23-2006

External Links

Vortex Revolutions Engineer / Inventor (Web, Desktop, and Mobile Applications, Hardware Gizmos, Consulting, and more)

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