Sign in to follow this  
Followers 0
Maxvan1

Input 01 instead of just 1

2 posts in this topic

Can I make an ifthen loop (I think thats what its called? It inputs a value greater then the previous loop?) Anyways. I need it to put in 001 instead of just 1. I cannot add this before because after the 9th loop it has to go to 10, and the extra zero would mess it up. And just as an FYI this is for finding valid archived pictures. What I want it to do is input $1 = 001 instead of inputing $i = 1. BUT, when it gets to $1 = 010, and not put in $i = 0010

Script

HotKeySet("{ESC}", "Terminate")

HotKeySet("+!d", "ShowMessage") ;Shift-Alt-d

Func ShowMessage()

$i = 0 ;starting number

While $i <= 50 ;ending number

MouseMove(558, 67)

Sleep(10)

MouseClick("")

ControlSend ( "", "", "", "{DELETE}{DELETE}{DELETE}")

Send("") ;URL Here

Send($i)

$i= $i + 1

Send(".jpg") ;file/picture type

ControlSend ( "", "", "", "{ENTER}")

sleep(3500)

$aPixelSearch = PixelSearch(944,144,975,151,0xffffff,3)

If IsArray($aPixelSearch) Then

Sleep(2000)

$aPixelSearch = PixelSearch(944,144,975,151,0xffffff,3)

If IsArray($aPixelSearch) Then

Send ( "{PRINTSCREEN}","",)

MouseMove ( 347, 1012)

Mouseclick("")

Sleep( 150 )

Send("{F11}")

Sleep( 299 )

MouseClick("")

EndIf

EndIf

WEnd

EndFunc

While 1

sleep(100)

WEnd

Func Terminate()

Exit

EndFunc

Share this post


Link to post
Share on other sites



replace

Send($i)oÝ÷ Û­«­¢+ØÀÌØí¨ôMÑÉ¥¹½ÉµÐ ÅÕ½ÐìÀÍÅÕ½Ðì°ÀÌØí¤¤)M¹ ÀÌØí¨¤

Best regards,

Marc


It's my job to comfort the disturbed and to disturb the comfortable.

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