sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #08302
Re: [Question #185628]: Combining "focus" and "type" commands
Question #185628 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/185628
Status: Open => Answered
RaiMan proposed the following answer:
If the 2 windows do not overlap completely, you might once calculate a
click point (e.g. derived from the app window) in the always visible
part of each window, that can be used with type(), which then first
would do a click internally.
# once during initialization
w1 = click_point_commandA
w2 = click_point_commandB
# usage later on
type(w1, "command" + Key.ENTER)
type(w2, "command" + Key.ENTER)
If this does not work for you because of e.g. timing problems, you have
to implement the function you mentioned already.
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.