Jump to content

help with a dam loop its not working


Recommended Posts

Do

$i = 0

$i = $i + 1

Sleep(1200)

Send("{tab}")

send("http://www.gaiaonline.com/guilds/posting.php?mode=reply&tc=576&t=7831119")

send("{ENTER}")

winwaitactive("Gaia :: Forums - Post a Reply - Windows Internet Explorer")

Sleep(7000)

Send("{TAB 8}")

sleep(3000)

Send("Bump" + $i)

Send("{TAB 84}")

Sleep(35000)

Send("{ENTER}")

Until $i = 99999

EndIf

Link to comment
Share on other sites

if u keep $i = 0 where it was...it always sets $i to zero then to 1, then back to zero :)

$i = 0

Do

$i = $i + 1

Sleep(1200)

Send("{tab}")

send("http://www.gaiaonline.com/guilds/posting.php?mode=reply&tc=576&t=7831119")

send("{ENTER}")

winwaitactive("Gaia :: Forums - Post a Reply - Windows Internet Explorer")

Sleep(7000)

Send("{TAB 8}")

sleep(3000)

Send("Bump" + $i)

Send("{TAB 84}")

Sleep(35000)

Send("{ENTER}")

Until $i = 99999

EndIf

Edited by ReaImDown
[u][font="Century Gothic"]~я α и d γ ĵ . ċ . ѕ қ ϊ и и ε я~- My Programs -auto shutdownSleep funcdisallow programs[/font][/u]
Link to comment
Share on other sites

if u keep $i = 0 where it was...it always sets $i to zero then to 1, then back to zero :)

$i = 0

Do

$i = $i + 1

Sleep(1200)

Send("{tab}")

send("http://www.gaiaonline.com/guilds/posting.php?mode=reply&tc=576&t=7831119")

send("{ENTER}")

winwaitactive("Gaia :: Forums - Post a Reply - Windows Internet Explorer")

Sleep(7000)

Send("{TAB 8}")

sleep(3000)

Send("Bump" + $i)

Send("{TAB 84}")

Sleep(35000)

Send("{ENTER}")

Until $i = 99999

EndIf

now i'm getting an error and its just quiting

+>19:45:16 Starting AutoIt3Wrapper v.1.7.6

>Running AU3Check (1.54.6.0) params: from:E:\Program Files\AutoIt3

D:\Programs\Autoit3\autoumper.au3(26,9) : WARNING: $i: possibly used before declaration.

$i = $i +

~~~~~~~~^

D:\Programs\Autoit3\autoumper.au3 - 0 error(s), 1 warning(s)

->19:45:16 AU3Check ended.rc:1

>Running:(3.2.2.0):E:\Program Files\AutoIt3\autoit3.exe "D:\Programs\Autoit3\autoumper.au3"

D:\Programs\Autoit3\autoumper.au3 (26) : ==> Variable used without being declared.:

$i = $i + 1

$i = ^ ERROR

+>19:45:51 AutoIT3.exe ended.rc:0

Link to comment
Share on other sites

now i'm getting an error and its just quiting

+>19:45:16 Starting AutoIt3Wrapper v.1.7.6

>Running AU3Check (1.54.6.0) params: from:E:\Program Files\AutoIt3

D:\Programs\Autoit3\autoumper.au3(26,9) : WARNING: $i: possibly used before declaration.

$i = $i +

~~~~~~~~^

D:\Programs\Autoit3\autoumper.au3 - 0 error(s), 1 warning(s)

->19:45:16 AU3Check ended.rc:1

>Running:(3.2.2.0):E:\Program Files\AutoIt3\autoit3.exe "D:\Programs\Autoit3\autoumper.au3"

D:\Programs\Autoit3\autoumper.au3 (26) : ==> Variable used without being declared.:

$i = $i + 1

$i = ^ ERROR

+>19:45:51 AutoIT3.exe ended.rc:0

#include <GUIConstants.au3>
#include<IE.au3>

global $loops = 0
Do
$loops = $loops + 1
Sleep(1200)
Send("{tab}")
send("http://www.gaiaonline.com/guilds/posting.php?mode=reply&tc=576&t=7831119")
send("{ENTER}")
winwaitactive("Gaia :: Forums - Post a Reply - Windows Internet Explorer")
Sleep(7000)
Send("{TAB 8}")
sleep(3000)
Send("Bump" + $loops)
Send("{TAB 84}")
Sleep(35000)
Send("{ENTER}")
Until $loops = 99999

try it now, its globalized...but, let me work on it and test it

Edited by ReaImDown
[u][font="Century Gothic"]~я α и d γ ĵ . ċ . ѕ қ ϊ и и ε я~- My Programs -auto shutdownSleep funcdisallow programs[/font][/u]
Link to comment
Share on other sites

#include <GUIConstants.au3>
#include<IE.au3>

global $loops = 0
Do
$loops = $loops + 1
Sleep(1200)
Send("{tab}")
send("http://www.gaiaonline.com/guilds/posting.php?mode=reply&tc=576&t=7831119")
send("{ENTER}")
winwaitactive("Gaia :: Forums - Post a Reply - Windows Internet Explorer")
Sleep(7000)
Send("{TAB 8}")
sleep(3000)
Send("Bump" + $loops)
Send("{TAB 84}")
Sleep(35000)
Send("{ENTER}")
Until $loops = 99999
EndIf

try it now, its globalized...but, let me work on it and test it

wow that cool thanks

Link to comment
Share on other sites

Send("Bump" + $loops)

try

Send("Bump" & $loops)

Dave

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------"I don't need to know everything, I just need to know where to find it when I need it"....EinsteinAnd in our case... That's the AutoIT helpfile ;) Please read before posting!!!

Link to comment
Share on other sites

Also I think it would be less confusing for you if you use a For loop to control that loop. For example

For $loops = 1 To 99999
Sleep(1200)
Send("{tab}")
send("http://www.gaiaonline.com/guilds/posting.php?mode=reply&tc=576&t=7831119",1)
send("{ENTER}")
winwaitactive("Gaia :: Forums - Post a Reply - Windows Internet Explorer")
Sleep(7000)
Send("{TAB 8}")
sleep(3000)
Send("Bump" & $i)
Send("{TAB 84}")
Sleep(35000)
Send("{ENTER}")
Next

I also fixed up some problems you might of encountered in the above code

Dave

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------"I don't need to know everything, I just need to know where to find it when I need it"....EinsteinAnd in our case... That's the AutoIT helpfile ;) Please read before posting!!!

Link to comment
Share on other sites

send("Bump" & Asc ( 64 + $i)

D:\Programs\Autoit3\autoumper.au3(35,33) : ERROR: syntax error

send("Bump" & Asc ( 64 + $loops)

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^

D:\Programs\Autoit3\autoumper.au3 - 1 error(s), 0 warning(s)

!>20:56:33 AU3Check ended.rc:2

+>20:56:39 AutoIt3Wrapper Finished

>Exit code: 0 Time: 7.125

thats the error

Link to comment
Share on other sites

D:\Programs\Autoit3\autoumper.au3(35,33) : ERROR: syntax error

send("Bump" & Asc ( 64 + $loops)

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^

D:\Programs\Autoit3\autoumper.au3 - 1 error(s), 0 warning(s)

!>20:56:33 AU3Check ended.rc:2

+>20:56:39 AutoIt3Wrapper Finished

>Exit code: 0 Time: 7.125

thats the error

heres the full code

$MsgBoxResult = MsgBox(1, "AutoBumper", "Made by MidnightRaven. making life around gaia easier")

If $MsgBoxResult = -1 Then

Exit

Endif

If $MsgBoxResult = 1 Then

Run("E:\Program Files\Internet Explorer\iexplore.exe","E:\Program Files\Internet Explorer",@SW_MAXIMIZE)

winwaitactive("Imperial Valley College - Windows Internet Explorer")

sleep(6000)

send("{tab}")

send("http://www.gaiaonline.com")

send("{enter}")

winwaitactive("Welcome to Gaia Online - Windows Internet Explorer")

sleep(6000)

send("{TAB 8}")

sleep(1000)

send("")

sleep(1500)

send("{TAB}")

send("")

sleep(8000)

send("{TAB}")

send("{ENTER}")

WinWaitActive("Gaia :: Welcome to Gaia - Windows Internet Explorer")

global $loops = 0

Do

$loops = $loops + 1

Sleep(1200)

Send("{tab}")

send("http://www.gaiaonline.com/guilds/posting.php?mode=reply&tc=576&t=7831119")

send("{ENTER}")

winwaitactive("Gaia :: Forums - Post a Reply - Windows Internet Explorer")

Sleep(7000)

Send("{TAB 8}")

sleep(4000)

send("Bump" & Asc ( 64 + $loops)

Send("{TAB 83}")

Sleep(35000)

Send("{ENTER}")

Until $loops = 99999

EndIf

Link to comment
Share on other sites

http://www.gaiaonline.com/info/index.php?mode=rules

Botting. Using an automated script, macro, or refreshing feature to post or surf webpages in order to generate Gold (Botting) is forbidden. The use of any software or codes to generate gold without the need for you being in front of your computer is generally considered as botting. Anyone suspected of botting will have their account banned.

[size="1"][font="Arial"].[u].[/u][/font][/size]

Link to comment
Share on other sites

i know but i want it to work

$MsgBoxResult = MsgBox(1, "AutoBumper", "Made by littlewashu. making life around gaia easier")

If $MsgBoxResult = -1 Then

Exit

Endif

If $MsgBoxResult = 1 Then

Run("E:\Program Files\Internet Explorer\iexplore.exe","E:\Program Files\Internet Explorer",@SW_MAXIMIZE)

winwaitactive("Imperial Valley College - Windows Internet Explorer")

sleep(6000)

send("{tab}")

send("http://www.gaiaonline.com")

send("{enter}")

winwaitactive("Welcome to Gaia Online - Windows Internet Explorer")

sleep(6000)

send("{TAB 8}")

sleep(1000)

send("")

sleep(1500)

send("{TAB}")

send("")

sleep(8000)

send("{TAB}")

send("{ENTER}")

WinWaitActive("Gaia :: Welcome to Gaia - Windows Internet Explorer")

global $loops = 0

Do

$loops = $loops + 1

Sleep(1200)

Send("{tab}")

send("http://www.gaiaonline.com/guilds/posting.php?mode=reply&tc=576&t=7831119")

send("{ENTER}")

winwaitactive("Gaia :: Forums - Post a Reply - Windows Internet Explorer")

Sleep(7000)

Send("{TAB 8}")

sleep(4000)

send("Bump" & Asc ( 64 + $loops)

Send("{TAB 83}")

Sleep(35000)

Send("{ENTER}")

Until $loops = 99999

EndIf

Link to comment
Share on other sites

$MsgBoxResult = MsgBox(1, "AutoBumper", "Made by littlewashu. making life around gaia easier")

If $MsgBoxResult = -1 Then

Exit

Endif

If $MsgBoxResult = 1 Then

Run("E:\Program Files\Internet Explorer\iexplore.exe","E:\Program Files\Internet Explorer",@SW_MAXIMIZE)

winwaitactive("Imperial Valley College - Windows Internet Explorer")

sleep(6000)

send("{tab}")

send("http://www.gaiaonline.com")

send("{enter}")

winwaitactive("Welcome to Gaia Online - Windows Internet Explorer")

sleep(6000)

send("{TAB 8}")

sleep(1000)

send("")

sleep(1500)

send("{TAB}")

send("")

sleep(8000)

send("{TAB}")

send("{ENTER}")

WinWaitActive("Gaia :: Welcome to Gaia - Windows Internet Explorer")

global $loops = 0

Do

$loops = $loops + 1

Sleep(1200)

Send("{tab}")

send("http://www.gaiaonline.com/guilds/posting.php?mode=reply&tc=576&t=7831119")

send("{ENTER}")

winwaitactive("Gaia :: Forums - Post a Reply - Windows Internet Explorer")

Sleep(7000)

Send("{TAB 8}")

sleep(4000)

send("Bump" & Asc ( 64 + $loops)

Send("{TAB 83}")

Sleep(35000)

Send("{ENTER}")

Until $loops = 99999

EndIf

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