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:
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.
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")
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.