← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #663641]: Global keys not working properly on script

 

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

    Status: Open => Answered

RaiMan proposed the following answer:
I guess, after the click you have to insert a short wait() (try
wait(0.3)) to give the GUI some time to react.

Or wait for something that should be visible, after Chrome.png is
clicked and ready to get the key strokes.

BTW: this looks odd:

# this is 
  find(Chrome.png)
  click(Chrome.png)
# the same as
  click(Chrome.png)

  while not exists(???....???): # what are you looking for?
        type(Key.PAGE_UP*3)
  click() # clicks the last match found on SCREEN - is it what you mean?

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.