Max in montreal Posted May 2, 2007 Share 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}") Link to comment Share on other sites More sharing options...
Valuater Posted May 2, 2007 Share Posted May 2, 2007 maybe... Run("notepad.exe") WinWaitActive("") $var = 65 do Send(Chr($var)) $var = $var + 1 Sleep(100) until $var = 91 8) Link to comment Share on other sites More sharing options...
Max in montreal Posted May 2, 2007 Author Share Posted May 2, 2007 perfect! you guys are great thanks! Link to comment Share on other sites More sharing options...
Valuater Posted May 2, 2007 Share Posted May 2, 2007 perfect!you guys are great thanks!Welcome8) Link to comment Share on other sites More sharing options...
Max in montreal Posted May 2, 2007 Author Share 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.. Link to comment Share on other sites More sharing options...
Administrators Jon Posted May 2, 2007 Administrators Share 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) Deployment Blog: https://www.autoitconsulting.com/site/blog/ SCCM SDK Programming: https://www.autoitconsulting.com/site/sccm-sdk/ Link to comment Share on other sites More sharing options...
Max in montreal Posted May 3, 2007 Author Share 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 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