Jump to content

Recommended Posts

Posted (edited)

Hi all

1- how do i put in a variable a key pressed without an input box ?

ie while executing a script... if i press the key "s" this letter is

put in variable $a.

_IsPressed() only give me a 0 or a 1 but not "s"

2- can i nest while loops like this?

while 1

code....

while 1

code....

wend

wend

thanks in advance

Al

Edited by alram
Posted

Hi all

how do i put in a variable a key pressed?

ie while executing a script... if i press the key "s" this letter is

put in variable $a.

_IsPressed() only give me a 0 or a 1 but not "s"

thanks in advance

Al

Hrm. I know there are examples of this on the forum. But why not just say:

If _IsPressed(XX) then $a = s

Or is this for a keylogger? If it is this topic will get locked and you will be warned about asking for one...

Posted

keylogger????

all i want is for my program to go this way if "s" is pressed or

that way if "t" is pressed and so on.....

1. Use HotKeySet().

2. Yes, you can nest loops.

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
×
×
  • Create New...