← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #177227]: [Howto] import other Sikuli scripts

 

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

    Status: Answered => Open

jeromy is still having a problem:
Hi RaiMan, thanks for your answer and tips!

2011/11/4 RaiMan <question177227@xxxxxxxxxxxxxxxxxxxxx>

> Your question #177227 on Sikuli changed:
> https://answers.launchpad.net/sikuli/+question/177227
>
>     Status: Open => Answered
>
> RaiMan proposed the following answer:
> -- temp file
> This is something that should be hidden to the user, but still is not: to
> process the script, as it is done by Sikuli internally, the script is
> copied to a temp file.
> You have to take it as is - until this might be changed in the future.
>
> -- Firefox start up test
> Did not have any problems when using a capture, that fits the situation
> after startup with a defined page (I generally use about:blank for new
> tabs/windows) to check, wether FF opened.
>
> I generally do not use such kind of test for application start up, I
> always rely on the app window to be there. This gives me a chance to
> restrict the search region further down to the app window.
>
> example for a basic approach (reality might be more complex ;-)
> needs FF to be off completely:
>
> ff = App(r"c:\Program Files\Mozilla Firefox\Firefox.exe")
> ff.focus()
> for i in range (10):
>    ffw = ff.window()
>    if ffw: break
>    wait(1)
> ffw.highlight(2)
>
> -- more comments (since I now looked a little bit deeper in your code
> ;-)
>
> -- you use an image search to activate the url entry. I always try to use
> available shortcuts to do those things: faster, more robust and not
> dependent from any visual aspects.
> in this case: type('l', KeyModifier.CTRL) # using CTRL-L
>
> -- you use type, to fill in an url
> this does not work as expected (see faq 933)
> use paste() instead:
> type('l', KeyModifier.CTRL)
> paste(url_text)
> type(Key.ENTER)
>
> --
> If this answers your question, please go to the following page to let us
> know that it is solved:
> https://answers.launchpad.net/sikuli/+question/177227/+confirm?answer_id=11
>
> If you still need help, you can reply to this email or go to the
> following page to enter your feedback:
> https://answers.launchpad.net/sikuli/+question/177227
>
> You received this question notification because you asked the question.
>

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