Info Posted March 5, 2008 Posted March 5, 2008 For $m = 000 To 005 For $n = 500 To 505 Send (StringFormat("%03u", $m)) Send ("{Tab}") Send (StringFormat("%03u", $n)) Sleep ( 250 ) Send ( "{Enter}") Next Next I want it to write 000, press TAB and write 500, then 001, TAB, 501 and so on... Thanks
Glyph Posted March 5, 2008 Posted March 5, 2008 (edited) Edit: Like this?while 1 $a="0" $b="0" $i="0" $o="500" do send ($a&$b&$i) $i=$i+1 send ("{tab}") send ($o) $o=$o+1 Send ( "{Enter}") until $i ="6" or $o = "506" exit WEnd Edited March 5, 2008 by BackStabbed tolle indicium
Info Posted March 5, 2008 Author Posted March 5, 2008 (edited) Not like this =X I want it like 000 {Tab} 500 {Enter} 001 {Tab} 501 {Enter} 002 {Tab} 502 {Enter} Until 500 will be 999 and 000 will be 500... Thanks. Edit: YESSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSS!$@%#%$#$%#$% THANKS Edited March 5, 2008 by Info
Glyph Posted March 5, 2008 Posted March 5, 2008 (edited) my above code does that, just modify the 000 part... Like, if $i > 10 then $b = "" if $i > 100 then $a="" Example: while 1 $a="0" $b="0" $i="0" $o="500" do send ($a&$b&$i) $i=$i+1 if $i >= 10 then $b="" if $i >= 100 then $a="" send ("{tab}") send ($o) $o=$o+1 Send ( "{Enter}") until $i ="1000" or $o = "1500" ;needs to be one number greater then the value you want to end with exit WEnd Edited March 5, 2008 by BackStabbed tolle indicium
Info Posted March 5, 2008 Author Posted March 5, 2008 I was just about posting that problem Thank you guys
Info Posted March 5, 2008 Author Posted March 5, 2008 One last thing, how can I make it to write 0500, 0501, 0502, 0503, 0504, 0505 instead of 500, 501, 502, 503, 504, 505? Thanks...
Glyph Posted March 5, 2008 Posted March 5, 2008 (edited) $a="0" $b="0" $i="0" $o="500" $q="0" while 1 do send ($a&$b&$i) $i=$i+1 if $i >= 10 then $b="" if $i >= 100 then $a="" send ("{tab}") send ($q&$o) $o=$o+1 Send ( "{Enter}") until $i ="1000" or $o = "1500" ;needs to be one number greater then the value you want to end with exit WEnd Edited March 5, 2008 by BackStabbed tolle indicium
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