Sign in to follow this  
Followers 0
apsync

bind something to a button

2 posts in this topic

#1 ·  Posted (edited)

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

Share this post


Link to post
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)

Share this post


Link to post
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
Sign in to follow this  
Followers 0