Jump to content

Recommended Posts

Posted

Hey,

I have alittle issue.. My script keeps telling me that my Next statement is missing a For statement.. But as I can see the For statement, I'm not sure what it's on about.. Some help would be appreciated. Thanks =)

#include <Math.au3>

#include <Array.au3>

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

MsgBox(0,"Config","Text")

$adresse = InputBox(0, "Text2 ")

$porte = InputBox(0, "Number")

$x=267

$y=315

$x1=441

$y1=312

$x2=337

$y2=417

$array1 = ArrayCreate("x","St. Tv.", "St. Th.", "1.Tv.", "1.Th.", "2.Tv.", "2.Th.", "3.Tv", "3.Th.", "4.Tv.", "4.Th.", "5.Tv.", "5.Th.", "St. Tv.", "St. Th.", "1.Tv.", "1.Th.", "2.Tv.", "2.Th.", "3.Tv")

For $i = 1 To $porte

ClipPut($adresse & $array1[$i])

MouseClick("left", $x, $y, 1, 1)

Sleep(500)

MouseClick("left", $x1, $y1, 1, 1)

Sleep(1000)

Send("^v")

Send("{TAB 10}")

Send("128")

Send("{TAB}")

Send("2000")

MouseClick("Left", $x2, $y2, 1, 1)

$div = _MathCheckDiv($i, 2)

If $div = 1 Then

$x=$x+0

$y=$y+15

$x1=$x1+0

$y1=$y1+15

Else

$x=$x+20

$y=$y-15

$x1=$x1+20

$y1=$y1-15

Next

Func Terminate()

Exit 0

EndFunc

Posted (edited)

Omg... You're totally right.. That's what C++ does to your Au3 knowledge hehe. I hope to put a harder problem up the next time or it'll get too embarrassing..

Thanks alot :whistle:

Edited by D!stortioN
Posted

Thanks, and thanks for the quick response as well.

Already into new probs with my array.. But I think I'll toy abit with it before asking for more help. Might be right infront of me.. Again..

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
×
×
  • Create New...