Max in montreal Posted May 2, 2007 Posted May 2, 2007 Send("{ASC 65}")...i understand it to send the letter a. how can i put this in a loop, and send a letter depending on what $var is? here is what i have so far... $var = 65 do Send("{ASC $var}") $var = $var + 1 until $var = 100 but it will not work. what is the proper way to do this? it works if i have it like this...Send("{ASC 65}")
Valuater Posted May 2, 2007 Posted May 2, 2007 maybe... Run("notepad.exe") WinWaitActive("") $var = 65 do Send(Chr($var)) $var = $var + 1 Sleep(100) until $var = 91 8)
Max in montreal Posted May 2, 2007 Author Posted May 2, 2007 sigh....so i am using;WinMove("Untitled -", "", 0, 0, 300, 700)WinActivate("Untitled -")$var = 32doSend(Chr($var))send("{enter}")$var = $var + 1until $var = 126why would there be spaces? for example the + is shown as a space..
Administrators Jon Posted May 2, 2007 Administrators Posted May 2, 2007 sigh....so i am using;why would there be spaces? for example the + is shown as a space..Some chars are "special" like + ^ # (check the help page). So you need to send in raw mode:Send(Chr($var), 1)
Max in montreal Posted May 3, 2007 Author Posted May 3, 2007 (edited) next question... i would like to use this example; MsgBox(0, "Count down!", $i) but replace the variable with the letter...so if $i happens to be 65, i would like it to show the a in the message box... Edited May 3, 2007 by Max in montreal
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