Sign in to follow this  
Followers 0
Descention

Key press and hold

6 posts in this topic

I am not sure where to start with this, but i need a script that will check a box when key is pressed and uncheck it when it is not being pressed, but a little bit more...

such as...

when "w" is held, boxes 1 to 4 are checked and the set button is pushed, then when it is released, they are all unchecked and the set button is pushed. And, if "w" and "a" are pressed at the same time, only boxes 2 and 4 are checked and set... this script is going to be controlling a different program that controls my parallel (printer) output.

Much Thanks,

-Scott

Share this post


Link to post
Share on other sites



Download AutoIt Beta (In the Developers forum), and look at _IsPressed()... Sounds fairly simple.


[center]Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.[/center]

Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

Lalim Parallel Port Control Basic 3.4

http://www.download.com/Lalim-Parallel-Por...ml?tag=lst-0-10

that's the link to the dowload page

Edit: i tried testing _IsPressed, but i keep getting an error...

"Line 65 (File "C:\blah blah\Misc.au3"):

Local $p = DllStructCreate ($struct)

Local $p = ^ ERROR

Error: Uknown function name."

Edited by Descention

Share this post


Link to post
Share on other sites

You have to use the Beta http://www.autoitscript.com/forum/index.php?showtopic=19717

And at the top of the .au3 file put #include <misc.au3>

And use Alt+F5 to run it in Beta from SciTe.


[center]Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.[/center]

Share this post


Link to post
Share on other sites

many many thanks, didnt know i had to turn beta active.

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