Jump to content

Recommended Posts

This lil thing has been written to upload multiple pics at once. So with some help with the For..Next command, I came up with this

$answer= InputBox("Graveo's Script", "How many pics do you want to upload?")
$answer1= InputBox("Graveo's Script", "How long do you want to wait to upload a pic?")

WinWaitActive("-storage upload - Mozilla Firefox")
MouseClick("left", 822, 470, 1)
WinWaitActive("File Upload")
Send("{TAB 7}")
Sleep(200)
For $i= 1 to $answer
Send("{ENTER}")
Sleep(50)
MouseClick("left", 619, 505, 1)
Sleep($answer1)
MouseClickDrag("left", 415,386, 820,386)
Send("^c")
MouseClick("left", 107,127, 1)
MouseClick("left", 861,655, 1)
Send("[img]")
Send("^v")
Send("[/img]")
Send("{ENTER}")
MouseClick("left", 410,125, 1)
Send("{DOWN " & $i & "}")
Next
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

But when I run that, and once it opens the upload window it just sits there with its thumb up its arse not doing anything. What's wrong with it? :)

Edited by GraveReaper0
Link to post
Share on other sites

Just ran it again, and it doesnt stop.

It keeps going BUT it doesnt send the Send({ENTER}) command, and once its done, its goes back to the For command, completely ignoring the

WinWaitActive("-storage upload - Mozilla Firefox")

MouseClick("left", 822, 470, 1)

WinWaitActive("File Upload")

Send("{TAB 7}")

Sleep(200)

Edited by GraveReaper0
Link to post
Share on other sites

maby because the for is AFTER the WinWaitActive("-storage upload - Mozilla Firefox")

MouseClick("left", 822, 470, 1)

WinWaitActive("File Upload")

Send("{TAB 7}")

Sleep(200)

?????

lol tell me that site it uses.

i'll try to fix it when i have the time

*If u thought life couldn't get worse, u meet me *<guy> What would you give my little sister to unzip ?<friend> 10 bucks<guy> No, i mean like Winzip...
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
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...