helldragon Posted April 22, 2006 Share Posted April 22, 2006 ok well here is the code that i have sofar, right now its telling me i have an if statement without and endif statement, but i cant find it.... how does it look? expandcollapse popup; ---------------------------------------------------------------------------- ; ; AutoIt Version: 3.1.0 ; Author: HellsDragon ; ; Script Function: ; SRO Restart script. ; ; ---------------------------------------------------------------------------- ; Script Start - Begin the mofo ;-==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==-; ;Declarations ; ;-==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==-; $Scrack=("C:\Documents and Settings\David\Desktop\Bot110\SCrack.exe") $SRO=("C:\Program Files\Silkroad\Silkroad.exe") $SROEXE=("sro_client.exe") $SROLaunch=("Silkroad Online Launcher") $acct=("acct") $pass=("pass") $connected=0 $disconnected=0 ;-==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==-; ;Main Code ; ;-==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==-; if processexists($SROEXE) Then $connected=1 $disconnected=0 Else $connected=0 $disconnected=1 While $Connected=0 programs() connect() if connected=2 Then botstart() EndIf WEnd while $Connected=2 sleep(5000) send("{Enter}") WEnd While $Connected = 0 StartPrograms() Connect() If $Connected = 1 Then StartBot() EndIf Wend ;-==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==-; ;Functions ; ;-==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==-; func programs() run ($Scrack);launch crack sleep(10000) run($SRO);launch sro launcher sleep(6000) mouseclick("left", 863, 631, 1, 3);click launch $connected=1 endfunc;ending programs() func login() if $connected=1 Then winactivate($SROexe) sleep(1000) send("{ENTER}") sleep(1000) mouseclick("left",675 ,550 ,1 ,0) sleep(1000) send($acct) sleep(1000) send("{TAB}") sleep(1000) send($pass) send("{ENTER}") $connected=2 EndIf endfunc;ending login Link to comment Share on other sites More sharing options...
Thatsgreat2345 Posted April 22, 2006 Share Posted April 22, 2006 (edited) the problem i think is that u have to while $connected = 0 so i think thats throwing it all off u dont even have some of these functions dude ... Edited April 22, 2006 by thatsgreat2345 Link to comment Share on other sites More sharing options...
helldragon Posted April 22, 2006 Author Share Posted April 22, 2006 nope thats not it, just removed it still saying.... line 54 (File blah blah blah func programs() eorr:"If" statement has no matching "EndIf" statement. Link to comment Share on other sites More sharing options...
Thatsgreat2345 Posted April 22, 2006 Share Posted April 22, 2006 wwo i totaly didnt see this ahhaha hold on expandcollapse popup; ---------------------------------------------------------------------------- ; ; AutoIt Version: 3.1.0 ; Author: HellsDragon ; ; Script Function: ; SRO Restart script. ; ; ---------------------------------------------------------------------------- ; Script Start - Begin the mofo ;-==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==-; ;Declarations ; ;-==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==-; $Scrack=("C:\Documents and Settings\David\Desktop\Bot110\SCrack.exe") $SRO=("Silkroad.exe") $SROEXE=("sro_client.exe") $SROLaunch=("Silkroad Online Launcher") $acct=("acct") $pass=("pass") $connected = 0 $disconnected = 0 ;-==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==-; ;Main Code ; ;-==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==-; if processexists($SROEXE) Then $connected = 1 $disconnected = 0 Else $connected = 0 $disconnected = 1 EndIf While $Connected = 0 programs() connect() if connected=2 Then botstart() EndIf WEnd while $Connected=2 sleep(5000) send("{Enter}") WEnd While $disconnected = 0 StartPrograms() Connect() If $Connected = 1 Then StartBot() EndIf Wend ;-==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==-; ;Functions ; ;-==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==-; func programs() run ($Scrack);launch crack sleep(10000) run($SRO);launch sro launcher sleep(6000) mouseclick("left", 863, 631, 1, 3);click launch $connected=1 endfunc;ending programs() func login() if $connected = 1 Then winactivate($SROexe) sleep(1000) send("{ENTER}") sleep(1000) mouseclick("left",675 ,550 ,1 ,0) sleep(1000) send($acct) sleep(1000) send("{TAB}") sleep(1000) send($pass) send("{ENTER}") $connected=2 EndIf endfunc;ending login Link to comment Share on other sites More sharing options...
is8591 Posted April 22, 2006 Share Posted April 22, 2006 ok well here is the code that i have sofar, right now its telling me i have an if statement without and endif statement, but i cant find it.... how does it look? expandcollapse popup; ---------------------------------------------------------------------------- ; ; AutoIt Version: 3.1.0 ; Author: HellsDragon ; ; Script Function: ; SRO Restart script. ; ; ---------------------------------------------------------------------------- ; Script Start - Begin the mofo ;-==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==-; ;Declarations ; ;-==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==-; $Scrack=("C:\Documents and Settings\David\Desktop\Bot110\SCrack.exe") $SRO=("C:\Program Files\Silkroad\Silkroad.exe") $SROEXE=("sro_client.exe") $SROLaunch=("Silkroad Online Launcher") $acct=("acct") $pass=("pass") $connected=0 $disconnected=0 ;-==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==-; ;Main Code ; ;-==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==-; if processexists($SROEXE) Then $connected=1 $disconnected=0 Else $connected=0 $disconnected=1 While $Connected=0 programs() connect() if connected=2 Then botstart() EndIf WEnd while $Connected=2 sleep(5000) send("{Enter}") WEnd While $Connected = 0 StartPrograms() Connect() If $Connected = 1 Then StartBot() EndIf Wend ;-==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==-; ;Functions ; ;-==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==-; func programs() run ($Scrack);launch crack sleep(10000) run($SRO);launch sro launcher sleep(6000) mouseclick("left", 863, 631, 1, 3);click launch $connected=1 endfunc;ending programs() func login() if $connected=1 Then winactivate($SROexe) sleep(1000) send("{ENTER}") sleep(1000) mouseclick("left",675 ,550 ,1 ,0) sleep(1000) send($acct) sleep(1000) send("{TAB}") sleep(1000) send($pass) send("{ENTER}") $connected=2 EndIf endfunc;ending login You don't have EndIf For the first If: if processexists($SROEXE) Then Link to comment Share on other sites More sharing options...
helldragon Posted April 22, 2006 Author Share Posted April 22, 2006 jeeze silly me, thank you a lot i appreciate it, i got it working so far, got a bit more to write up though 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