gec100 Posted October 14, 2011 Share Posted October 14, 2011 hi all, i'm new in programing so pls bare with me if the question is stupid. here's the code i'm having trouble with: While 1 = 1 While WinExists ("Launcher") > 0 ; if window exists ... While WinExists("Steam Connection") > 0 ; check if this error windows exists and close Send("{ENTER}") Sleep (500) WEnd While WinExists("Steam Connection Error") > 0 ; check if this error windows exists and close Send("{ENTER}") Sleep (500) WEnd Sleep (60000) ; check again in a minute WEnd ; if window does not exist ShellExecute("Launcher.lnk") ;WinWaitActive("Launcher") Sleep(10000) Send("{ENTER}") Send("f settings.cmd") Send("{ENTER}") Sleep(2000) Send("f dgw.cmd") Send("{ENTER}") WEnd the code is supposed to restart the app if it fails. the app is executable of Cliffs of Dover game and if ran directly loads a game. if ran with parameter -server it runs as a server. so i created luncher.lnk that puts the parameter (did not konw how to do that with the code) running this script putt's a load of 50% on my CPU. anyone see why? thx Link to comment Share on other sites More sharing options...
Valik Posted October 14, 2011 Share Posted October 14, 2011 Blah blah blah rules. Blah blah blah game automation. kaotkbliss 1 Link to comment Share on other sites More sharing options...
Recommended Posts