How can I run a script via shortcut?

Asked by Alexander

Hello,

  I'm trying to figure out how to make one single shortcut for my script. I want to be capable of just double clicking my script from my desktop and have the script run it's course. It feels like every option that I have found has talked about running it via task scheduler and connecting everything together in that. I really wish I could just make a shortcut of some sort for every script. Could someone please explain to me the best way to make this happen? I already have around seven scripts made, but I dislike opening Sikuli and running them out of it every time. It would be really nice to have some sort of organization.

Thank You,
Alexander

Question information

Language:
English Edit question
Status:
Answered
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Eugene S (shragovich) said :
#1

Hi,

You can always just create a simple shortuct using the cmd command.

For example:
1. Right button mouse click wherever you want your shortcut to be created.
2. Click New -> Shortcut
3. Type in the command that will launch your script, for example:
    C:\SikuliX\runScript.cmd -r Tests\Test.sikuli
4. Click Next and finish.

Now when you click on the resulting shortcut, it will launch your script.

Eugene

Can you help with this problem?

Provide an answer of your own, or ask Alexander for more information if necessary.

To post a message you must log in.