← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #259930]: Sikuli for Windows store (javascript) app?

 

Question #259930 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/259930

    Status: Open => Answered

RaiMan proposed the following answer:
principally yes, but there is no special tutorial for that.

the challenges with store apps:
- capturing images is only possible using the capture hotkey (since the IDE runs in the desktop)
- switching to your app from a script, that is (and must be) started from the desktop

an approach might be, to first capture all needed images using the capture hotkey and store them in the script as
image1 = <some captured image>

where image should be a speaking name for the shot.

then you might use later e.g.
click(image1)

to switch to your app, the easiest approach is to have only your app running besides the desktop.
Then you can use at the beginning of the script
type(Key.TAB, Key.WIN); wait(1)

to switch to your app and then do your automation workflow.

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