theAutoitSpammer Posted September 19, 2008 Posted September 19, 2008 (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 September 19, 2008 by alram
Szhlopp Posted September 19, 2008 Posted September 19, 2008 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... RegEx/RegExRep Tester!Nerd Olympics - Community App!Login UDFMemory UDF - "Game.exe+753EC" - CE pointer to AU3Password Manager W/ SourceDataFiler - Include files in your au3!--- Was I helpful? Click the little green '+'
theAutoitSpammer Posted September 19, 2008 Author Posted September 19, 2008 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.....
weaponx Posted September 19, 2008 Posted September 19, 2008 keylogger????all i want is for my program to go this way if "s" is pressed orthat way if "t" is pressed and so on.....1. Use HotKeySet().2. Yes, you can nest loops.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now