← Back to team overview

sikuli-driver team mailing list archive

[Question #172560]: selection structure question

 

New question #172560 on Sikuli:
https://answers.launchpad.net/sikuli/+question/172560

Hi,thanks for all your previous help,
now this script almost complete
The "test.exe" will popup another Warning Windows when CPU usage over 90 %
then I  tried hotkey "Alt+Shift+C" to interrupt loop  but it does not work?

======================================================
 
  for i in range(n):
   openApp("C:\...\test.exe")

  if exists ( img [ Warning Window: Program Already Running] , 10) :
        click( img [Yes] )                                 #Continue loop
        wait(1)

  elif exists ( img [ Warning Window: Internal Error] ) :
       type("c", KEY_ALT+KEY_SHIFT)        #Exit Script and stop count


-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.