← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #152840]: sikuli does not run from task schedular from windows after locking computer

 

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

    Status: Open => Answered

RaiMan proposed the following answer:
Sorry for being unclear:

This has not to be written into the "task scheduler", it IS a STATEMENT
in a Sikuli script, that replaces your click-stuff.

Might be a good idea to look at the docs:
http://sikuli.org/docx/globals.html#controlling-applications-and-their-
windows

In Windows, there are many ways to start an application, that can be
automated with Sikuli and your click approach is one of the second best.

Before clicking around, check wether there is a keyboard shortcut that
may help.

In this case: WinKey+R which opens a dialog where you can type the
command and hit ENTER.

so this should work:
type('r', KEY_WIN)
wait(1)
paste('notepad') # check before, what is needed to start an app
type(Key.ENTER)

why paste and not type? If you need a path to your app (e.g.
c:\folder\app.exe), type() does not work. look: faq 933

So if you want to work with applications in Sikuli, use the class App
and use keyboard shortcuts as often as possible. clicking around in
menus using captured images might become VERY frustrating.

Visual Studio like other development IDE's have tons of shortcuts and if
something is not there, you may define it.

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