Sign in to follow this  
Followers 0
gec100

high cpu usage

2 posts in this topic

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

Share this post


Link to post
Share on other sites



Blah blah blah rules. Blah blah blah game automation.

1 person likes this

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.
Sign in to follow this  
Followers 0