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.

_______________________________________________
Mailing list: https://launchpad.net/~sikuli-driver
Post to     : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp

Reply via email to