open command box as timer.
I'm currently running a macro program that doesn't wait for any dos/java programs to complete. so my workaround is to open a command box, my macro waits for the command box to disappear.
When the command window goes to the background, sikuli can't see it for some reason that keeps the system paused.
please help.
for n in range(1):
# if exists(
reg = Region(
if reg.exists(
# wait(.5)
type("v", KeyModifier.CTRL)
type("s", KeyModifier.CTRL)
else:
type("0", KeyModifier.CTRL)
import os
cmdPath = os.getenv(
title = "Timer Runner"
cmd = 'start "%s" %s'%(title, cmdPath)
wait(5.0)
type("exit" + Key.ENTER)
# os.system("taskkill /im cmd.exe /f")
Question information
- Language:
- English Edit question
- Status:
- Expired
- For:
- SikuliX Edit question
- Assignee:
- No assignee Edit question
- Last query:
- Last reply: