Jump to content

Sending(0001) as opposed to 1


Hidden
 Share

Recommended Posts

Hey guys,

 

I tried to sort this out myself but I'm having some issues (probably since I've never used this kind of thing before.

What I'm trying to accomplish:

Send the number 0001 to start with, and then simply keep adding one and continue sending, all the way to 9999.

 

What I tried:

$Number = 0001

While 1 = 1

Send($Number)

$Number = $Number + 1 ;(I tried 0001 here as well)

Sleep(1000)

Send("{ENTER}")

WEnd

 

The result is that it keeps sending them like so:

1

2

3

4

5...

 

Is there a way to make it take the 0's into account as well? So it comes out as:

0001

0002

0003...

 

Thank you in advance.

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