|
You last visited: Today at 06:48
Advertisement
autoit kill client
Discussion on autoit kill client within the SRO Coding Corner forum part of the Silkroad Online category.
05/09/2013, 16:21
|
#1
|
elite*gold: 0
Join Date: Oct 2011
Posts: 325
Received Thanks: 39
|
autoit kill client
hey,
I'm trying to make a small script to make my bots go clientless on relog. Guess this should work by killing the sro_client process so:
Code:
If ProcessExists("sro_client.exe") Then ProcessClose("sro_client.exe")
The problem is that it closes the proces before its even actually starting, so, the client wont start at all, i will never login, and mbot still thinks the client is started, so it wont restart it, and even if it does, the same problem will occur. So in other words I've gotta add a delay before closing the client and thats my problem.
How do i add a delay between the If ProcessExists("sro_client.exe") and Then ProcessClose("sro_client.exe")....was thinking about Sleep(500) with my noob mind, but that doesnt work ofcourse. Help would be appreciated, because at the moment my laptop will crash with many clients opened.
|
|
|
05/10/2013, 12:54
|
#2
|
elite*gold: 0
Join Date: Mar 2013
Posts: 55
Received Thanks: 4
|
Quote:
Originally Posted by speacher
hey,
I'm trying to make a small script to make my bots go clientless on relog. Guess this should work by killing the sro_client process so:
Code:
If ProcessExists("sro_client.exe") Then ProcessClose("sro_client.exe")
The problem is that it closes the proces before its even actually starting, so, the client wont start at all, i will never login, and mbot still thinks the client is started, so it wont restart it, and even if it does, the same problem will occur. So in other words I've gotta add a delay before closing the client and thats my problem.
How do i add a delay between the If ProcessExists("sro_client.exe") and Then ProcessClose("sro_client.exe")....was thinking about Sleep(500) with my noob mind, but that doesnt work ofcourse. Help would be appreciated, because at the moment my laptop will crash with many clients opened.
|
1. The bugs are because your code is wrong. You have to know well whats your algorithm is doing.
2. If you kill the process with 3rd program, 99% that the connection will lost, since mbot wont keep the proxy connection alive, only if you press the kill client button in mbot. That button not simply close the sro_client....
What youre looking for is:
-Make a script/program in autoit or c#.net or in anything else which is handling your mbot, like sbot manager or etc. Thats not that hard and there are example codes too, especially for autoit.
|
|
|
05/10/2013, 20:52
|
#3
|
elite*gold: 0
Join Date: Oct 2011
Posts: 325
Received Thanks: 39
|
1st i know its wrong, thats why i ask for help
2nd if i kill the client mbot will switch to clientless, but for that i need to wait till it logged in to the account first, which takes 30 seconds after starting the client, so ild have to add a delay on kill proces of 30 seconds, thast what im asking for, nothing more nothing less
|
|
|
05/10/2013, 20:53
|
#4
|
elite*gold: 0
Join Date: Jun 2009
Posts: 2,085
Received Thanks: 1,669
|
While 1
If WinExists("*** [SRO_Client]") Then
Sleep(60000)
ProcessClose(WinGetProcess("*** [SRO_Client]"))
EndIf
WEnd
This will check if Window name "*** [SRO_Client] is active, then will wait 2 min and then it will close the process.
replace the *** with ur char name.
if you need it for more chars just copy this
If WinExists("*** [SRO_Client]") Then
Sleep(60000)
ProcessClose(WinGetProcess("*** [SRO_Client]"))
EndIf
and paste again, just change *** (char name)
i don't remember who give me this script, but credits goes to him :P
|
|
|
05/11/2013, 01:16
|
#5
|
elite*gold: 0
Join Date: Oct 2011
Posts: 325
Received Thanks: 39
|
seems to work fine
@EDIT
got a question tho, i would like to make it go clientless on character selection screen, any idea how? if not, then i will just keep it like this
#request to close thread
|
|
|
05/17/2013, 16:50
|
#6
|
elite*gold: 0
Join Date: May 2007
Posts: 33
Received Thanks: 6
|
how can i kill sro_client.exe C# im using
foreach (Process pro in Process.GetProcesses())
{
if (pro.ProcessName.Contains("sro_client"))
{
pro.Kill();
}
}
but give an error "access is denied"
|
|
|
11/11/2013, 06:26
|
#7
|
elite*gold: 0
Join Date: Apr 2011
Posts: 1
Received Thanks: 0
|
Sera que alguien me puede decir si es posible configurar ibot para un servidor privado
|
|
|
11/11/2013, 13:32
|
#8
|
elite*gold: 20
Join Date: Mar 2008
Posts: 3,940
Received Thanks: 2,198
|
Depending on the client security, like hackshield, you won't be able to ProcessClose the client.
|
|
|
Similar Threads
|
AutoIt create bot (kill npc)?
11/18/2012 - DarkOrbit - 6 Replies
Hello all, i dont know good and i just want to know if it possible to create a bot with autoit like pixelbot and kill npc?
|
client>1hit kill?
08/27/2012 - Metin2 Private Server - 2 Replies
can some one give a client where the 1hit kill hack is working or a server where i can play witch 1hit kil and no kick ? but i realy need the client....
|
I can kill hackshiield with the new 3.0 client..
09/22/2008 - General Gaming Discussion - 22 Replies
Unfortunately, it looks like there is a CRC check now, and I have no clue how to circumvent that.
|
Off-client Kill Count please?
12/02/2007 - Conquer Online 2 - 0 Replies
Think someone could make an Off-Client kill count please mine on the client doesnot work properly.:(
|
All times are GMT +2. The time now is 06:48.
|
|