Sign in to follow this  
Followers 0
Info

Need help with a macro

8 posts in this topic

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 :)

Share this post


Link to post
Share on other sites



#2 ·  Posted (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 by BackStabbed

tolle indicium

Share this post


Link to post
Share on other sites

#3 ·  Posted (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 by Info

Share this post


Link to post
Share on other sites

#4 ·  Posted (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 by BackStabbed

tolle indicium

Share this post


Link to post
Share on other sites

I was just about posting that problem ;)

Thank you guys :)

Share this post


Link to post
Share on other sites

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...

Share this post


Link to post
Share on other sites

#7 ·  Posted (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 by BackStabbed

tolle indicium

Share this post


Link to post
Share on other sites
:)

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0