Maxvan1 Posted January 25, 2007 Share Posted January 25, 2007 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 Link to comment Share on other sites More sharing options...
Marc Posted January 25, 2007 Share Posted January 25, 2007 replace Send($i)oÝ÷ Û«¢+ØÀÌØí¨ôMÑÉ¥¹½ÉµÐ ÅÕ½ÐìÀÍÅÕ½Ðì°ÀÌØí¤¤)M¹ ÀÌØí¨¤ Best regards, Marc Any of my own codes posted on the forum are free for use by others without any restriction of any kind. (WTFPL) Link to comment Share on other sites More sharing options...
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