Jump to content

Key press and hold


Recommended Posts

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

Link to comment
Share on other sites

  • Moderators

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

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.

Link to comment
Share on other sites

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
Link to comment
Share on other sites

  • Moderators

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.

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.

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