Sign in to follow this  
Followers 0
helldragon

Would Anyone Be Able To....

5 posts in this topic

well, i just started with autoit scripting, and i guess im setting my goals pretty high already, and well ive been having some problems with my autoit scripts, and im not much of a person to keep posting on forums and begging people for help, but i was just wondering if anyone would be able to maybe help me out a little bit through lets say Aol instant messenger, or msn instant messenger? im not asking someone to code something for me, just someone that i can message quickly and ask a quick and simple question when needed. thanks for your time.

Share this post


Link to post
Share on other sites



well, i just started with autoit scripting, and i guess im setting my goals pretty high already, and well ive been having some problems with my autoit scripts, and im not much of a person to keep posting on forums and begging people for help, but i was just wondering if anyone would be able to maybe help me out a little bit through lets say Aol instant messenger, or msn instant messenger? im not asking someone to code something for me, just someone that i can message quickly and ask a quick and simple question when needed. thanks for your time.

HI,

why not posting your script and a short explanation of the error or missing stuff and I'm sure the forum will help you.

So long,

Mega


Scripts & functions Organize Includes Let Scite organize the include files

Yahtzee The game "Yahtzee" (Kniffel, DiceLion)

LoginWrapper Secure scripts by adding a query (authentication)

_RunOnlyOnThis UDF Make sure that a script can only be executed on ... (Windows / HD / ...)

Internet-Café Server/Client Application Open CD, Start Browser, Lock remote client, etc.

MultipleFuncsWithOneHotkey Start different funcs by hitting one hotkey different times

Share this post


Link to post
Share on other sites

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?

; ----------------------------------------------------------------------------
;
; 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

Share this post


Link to post
Share on other sites

#5 ·  Posted (edited)

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?

CODE

; ----------------------------------------------------------------------------

;

; 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

It's right close to the top. You have an IF, with an ELSE, but no ENDIF to close it:

;-==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==-;
;Main Code                                                                      ;
;-==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==-;

if processexists($SROEXE) Then
    $connected=1
    $disconnected=0
Else
    $connected=0
    $disconnected=1
    
    
While $Connected=0

Are you using SciTE? Makes things like that jump right out at 'ya... :(

Whoa... what's with the deja vu? :think:

Edited by PsaltyDS

Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law

Share this post


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
Sign in to follow this  
Followers 0