sikuli does not work in windows taskscheduler when the system is locked
I have a sikuli script which basically opens a URL and saves it as .htm and I have scheduled to run every day using windows task scheduler using a .bat file.
The scheduler triggers the event but sikuli does not work if the system is locked.
Here is my .bat file:
@echo off
start C:\Save_
This is my sikuli script.
from sikuli.Sikuli import *
import datetime
now = datetime.
ReportDate = now.strftime(
WaitSeconds= 300
WaitMaxSeconds = 1000
ImagePath = "C:\\ImageRepos
if not ImagePath in sys.path:
sys.
setBundlePath(
PageLoadComplete = ImagePath+
AddressBar = ImagePath+
AddressBar_1 = ImagePath+
GraphLoad = ImagePath+
DashBoardURL = "<URL>"
DashBoardLocale = "JP"
FilePath=
try:
keyUp()
App.
wait(2)
type(" ",KEY_ALT)
type("x")
if exists(AddressBar):
else:
type(
type(Key.ENTER)
if exists(GraphLoad):
else:
sleep(60)
type(
type(FilePath + DashBoardLocale + "_Dashboard_" + ReportDate)
type(Key.ENTER)
sleep(60)
type(
except:
print "Error!!! Exception occured!!!"
finally:
App.
exit(1)
This is working if the system is not locked.
When the system is locked all the HOT keys does not work.
Question information
- Language:
- English Edit question
- Status:
- Answered
- For:
- SikuliX Edit question
- Assignee:
- No assignee Edit question
- Last query:
- Last reply:
Can you help with this problem?
Provide an answer of your own, or ask karthicm+sikuli@amazon.com for more information if necessary.