Jump to content

Need help with a macro


Recommended Posts

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

Link to comment
Share on other sites

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
Link to comment
Share on other sites

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

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...