hatkyinc 3 Posted February 21, 2011 Report Share Posted February 21, 2011 I have been hacking this like crazy, so I hope this be useful to someone. Disclaimer/Who this is NOT forThis is not for newbies.This is not for anyone looking for a "supported solution" This is probably only for real programmers. (novices can maybe survive this)This is UGLY, who ugly? The "OMFG are you serious we got to do this, this way?" kind of ugly. PrerequisitesYou got to know how and to handle states with in your bot, whether by DB or files(csv's or what ever). This I am not going to help you with, I assume you can do this or this is not for you.What I mean is that when your bot stops and start again it should pick off the last point it was at - without user interaction. (this can work for interactive bots if you know how to keep the states good).* The tested code was on windows 7, should work on vista, needs changes to work on other version. Quick Pesdo code:Wraper.bat bot.exe delay_script $timeout taskkill wraper.bat You probably should have stopped reading by now. Code: Wait.bat:@choice /d y /t %1 > nul wrapper.bat:bot.exe /autostartcall wait X (X is in secounds, try 3600 for 1 hour or do more depends on your bot)taskkill /im bot.exe /fwapper.bat *bot.exe should of course be replaced by you'r bot. *of course running the "bot" now should actually run "wapper.bat" I have gone through trying many other options like letting you'r bot do this with shell - nothing else works for now... Hope I didn't miss anything. p.s. For socket proxy issue I am using runas command with many users and this scripts works with that also Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.