Sign in to follow this  
Followers 0
mini

HELP Use Autoit line CMD line

9 posts in this topic

well, my next adventure is to use autoit like a .bat file

my .bat file have this in it

***"C:\Documents and Settings\ras00l\Desktop\Silkroad\Ibot\01_JudRa\iBot.exe" AS:rAsOOl AB: HI***

and in Autoit it runs the bat file like this

***run("iBot.bat","C:\Documents and Settings\ras00l\Desktop\Silkroad\Ibot\01_JudRa")***

My question is, how can i stop using the ***run(iBot.bat)*** and use it like it was a CMD window!?

Thx for all the help

Share this post


Link to post
Share on other sites



well, my next adventure is to use autoit like a .bat file

my .bat file have this in it

***"C:\Documents and Settings\ras00l\Desktop\Silkroad\Ibot\01_JudRa\iBot.exe" AS:rAsOOl AB: HI***

and in Autoit it runs the bat file like this

***run("iBot.bat","C:\Documents and Settings\ras00l\Desktop\Silkroad\Ibot\01_JudRa")***

My question is, how can i stop using the ***run(iBot.bat)*** and use it like it was a CMD window!?

Thx for all the help

Run("iBot.exe AS:rAsOOl AB: HI", "C:\Documents and Settings\ras00l\Desktop\Silkroad\Ibot\01_JudRa")

Untested

D

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

Run("iBot.exe AS:rAsOOl AB: HI", "C:\Documents and Settings\ras00l\Desktop\Silkroad\Ibot\01_JudRa")

Untested

D

frak it works like a baby^^

thx bro... =P

I've tested from a different directory and it doesn't work

Ok, the replay of RagsRevenge works, but it only work if the autoit is in the same folder as the iBot.exe.

The command

Run("iBot.exe AS:rAsOOl AB: HI", "C:\Documents and Settings\ras00l\Desktop\Silkroad\Ibot\01_JudRa")

If i change the Test_Autoit_CMD.au3 to a different directory, like D:\ and run the autoit, it doesnt do anything.

Does anyone have a idea how can i make it work!?

thx for all the replays.

i got other idea, is it possible to make a "inputbox" sow i can select the directory path of iBot.exe and still using the ***Run()*** line???

im thinking like this...

$message1 = inputbox("Inputbox", "Type iBot Path")
$message2 = InputBox("Inputbox", "Type CharName")

Run("iBot.exe AS:$message2 AB: HI", "$message1")

(i tested it and it doesnt work like it is)

is this possible to make it work?!

Edited by mini

Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

Run("iBot.exe AS:$message2 AB: HI", "$message1")

Run("iBot.exe AS: " & $message2 & " AB: HI", $message1)

Is that what you mean?

Hope this helps.

Avery Howell

Edited by avery

www.abox.orgAvery HowellVisit My AutoIt Websitehttp://www.abox.org

Share this post


Link to post
Share on other sites

Run("iBot.exe AS:$message2 AB: HI", "$message1")

Run("iBot.exe AS: " & $message2 & " AB: HI", $message1)

Is that what you mean?

Hope this helps.

Avery Howell

Thx for your replay bro.

It didn't work, i can only run the iBot.exe if the .au3 is on the same folder.

Ok, i got other idea, can i create a .bat file and run it and when it made does commands autoit deletes the .bat file??

If it is possible, can it be +/- like this.

create "temp.bat" file with iBot.exe path / run / delete file "temp.bat"

and in the temp.bat file it puts this in it ("C:\the path of the Ibot.exe" AS: (here it must right a name) AB: HI)

is this possible!?

Share this post


Link to post
Share on other sites

#6 ·  Posted (edited)

frak it works like a baby^^

thx bro... =P

i got other idea, is it possible to make a "inputbox" sow i can select the directory path of iBot.exe and still using the ***Run()*** line???

im thinking like this...

$message1 = inputbox("Inputbox", "Type iBot Path")
$message2 = InputBox("Inputbox", "Type CharName")

Run("iBot.exe AS:$message2 AB: HI", "$message1")

(i tested it and it doesnt work like it is)

is this possible to make it work?!

Read the help file for run()

Set the working directory to be the directory that the exe you want to run resides in.

[EDIT]Apologies, wasn't reading correctly earlier. You can specify the full path of the executable in the first parameter of run, ie: "C:\Documents and Settings\ras00l\Desktop\Silkroad\Ibot\01_JudRa\iBot.exe"

D

Edited by RagsRevenge

Share this post


Link to post
Share on other sites

Read the help file for run()

Set the working directory to be the directory that the exe you want to run resides in.

[EDIT]Apologies, wasn't reading correctly earlier. You can specify the full path of the executable in the first parameter of run, ie: "C:\Documents and Settings\ras00l\Desktop\Silkroad\Ibot\01_JudRa\iBot.exe"

D

Thx for all the help.

I made some different on this part on my code, it creates a TEMP.BAT file gona post all the code here ^^

; Script Start - Add your code below here

HotKeySet("{F6}", "ShowMessage")
HotKeySet("{F7}", "Fastrack")
HotKeySet("{F8}", "Terminate")

;;;; Body of program would go here ;;;;

; Prompt the user to run the script - use a Yes/No prompt (4 - see help file)
$answer = MsgBox(4, "Pre-config", "     First open Loader.ini file"& @CRLF &""& @CRLF &"           EDIT THIS PART"& @CRLF &""& @CRLF &"            SilentStartup=1"& @CRLF &""& @CRLF &"    Redirect=127.0.0.1:16000"& @CRLF &""& @CRLF &"    SAVE AND CLOSE .INI FILE"& @CRLF &""& @CRLF &"                  HotKeys"& @CRLF &""& @CRLF &"F6 - Show HotKeys"& @CRLF &"F7 - Delete temp files"& @CRLF &"F8 - EXIT Autoit"& @CRLF &""& @CRLF &"                       Run?")


; Check the user's answer to the prompt (see the help file for MsgBox return values)
; If "No" was clicked (7) then exit the script
If $answer = 7 Then
    MsgBox(0, "Pre-config", "OK.  Bye!")
    Exit
EndIf

;Here you will put a vallid ID and PASS
$MESSAGE1 = InputBox("InputBox", "Type your ID!")
$message2 = InputBox("Inputbox", "Type your PASS")

TrayTip ("Info","- AS:CharName  Auto-select the character after login"& @CRLF &"- AB:1      Set To Start Bot after login"& @CRLF &"- HI     Minimize iBot window to tray",30,1)

FileWrite("iBot.Bat", InputBox ( "Write iBot Commands", "     Example:"& @CRLF &""& @CRLF &"''iBot.exe'' AS:CharName AB:1 HI"& @CRLF &""& @CRLF &"     Will create a temp file"))
FileWrite("loader.bat", InputBox ( "Write Loader.exe Path", "     Example:"& @CRLF &""& @CRLF &"''C:\Silkroad\Loader.exe''"& @CRLF &""& @CRLF &"     Will create a temp file"))

 ; Run the .Bat Files

Run("iBot.bat")
Sleep(1000)
ProcessClose("cmd.exe")
sleep(15000)
Run("Loader.bat")
sleep(15000)

;Wait for client to Run and puts client window on Top

if not WinActive( "SRO_Client" ) Then
    WinActivate( "SRO_Client" )
EndIf
;Enters ID and PASS
            Sleep(5000)
            send("{ESC}")
            send("{ESC}")
            send("{ESC}")
            send($MESSAGE1)
            send("{tab}")
            send($MESSAGE2)
            send("{ENTER}")

TrayTip("Info","F6 - Show HotKeys"& @CRLF &"F7 delete temp files"& @CRLF &"F8 to terminate.",30,1)

While 1
    Sleep(100)
WEnd

;Here it will delete the .bat temp files
Func Fastrack()
    TrayTip("Deleting temp files","Deleted ^^",30,0)
     FileDelete(@ScriptDir & "\iBot.bat")
     FileDelete(@ScriptDir & "\loader.bat")

EndFunc

Func Terminate()
    TrayTip("Terminating","See you next boting time ^^",30,0)
    sleep(3000)
    Exit 0
EndFunc

Func ShowMessage()
    TrayTip("Info","F6 - Show HotKeys"& @CRLF &"F7 - delete temp files"& @CRLF &"F8 - Exit.",30,1)
EndFunc

    
;Here it repeats and check if SRO_Client.exe is running, if its not running, it closes iBot.exe and relog 
while 1
    if not ProcessExists("sro_client.exe") Then
        ProcessClose("iBot.exe")
        Run("iBot.bat")
        ProcessClose("cmd.exe")
        ;Sleep($DELAY1)
        sleep(5000)
        Run("Loader.bat");
        ProcessClose("cmd.exe")
        Sleep(5000) 
                    if not WinActive( "SRO_Client" ) Then
                        WinActivate( "SRO_Client" )
                        Sleep(5000)
                        send("{ESC}")
                        send("{ESC}")
                        send("{ESC}")
                        send($MESSAGE1)
                        send("{tab}")
                        send($MESSAGE2)
                        send("{ENTER}")
                        
                    EndIf
                EndIf
        WEnd

Share this post


Link to post
Share on other sites

Run(".....Files\iBot.exe start SN:25 SU:ID SP:PW AS:CharName AB:2 AC:8000 CL")

SN: 1-2-3-4-bla bla for server IDs

AB:2 for autostart

AB:1 for autostop

AC:for delay(ms)

CL:for clientless mode (if u don't want this , you can clean

Share this post


Link to post
Share on other sites

Isn't there some sort of policy against bots?

This is a bot for the game Silkroad...

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