sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #59277
Re: [Question #709040]: Cntrl+S
Question #709040 on SikuliX changed:
https://answers.launchpad.net/sikuli/+question/709040
Status: Open => Answered
RaiMan proposed the following answer:
To use type(), the target window must have focus, which is not the case
at script start.
You might use click() to activate the target window.
You seem to have tried with hover(), which does not do the job (no action, only mouse move)
To handle apps, you might use the app features:
https://sikulix-2014.readthedocs.io/en/latest/appclass.html#the-application-class-app
Generally it is worth to read across the docs, to get a feeling about
the features available.
One more thing: type("S", Key.CTRL) should be type("s", Key.CTRL): for those combinations use lowercase, since uppercase adds a Key.SHIFT, which might not be correct.
Look: https://sikulix-2014.readthedocs.io/en/latest/keys.html#key-constants
--
You received this question notification because your team Sikuli Drivers
is an answer contact for SikuliX.