theAutoitSpammer Posted September 19, 2008 Share 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 Link to comment Share on other sites More sharing options...
Szhlopp Posted September 19, 2008 Share 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 '+' Link to comment Share on other sites More sharing options...
theAutoitSpammer Posted September 19, 2008 Author Share 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..... Link to comment Share on other sites More sharing options...
weaponx Posted September 19, 2008 Share 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. Link to comment Share on other sites More sharing options...
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