← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #201829]: Launch .slk from VBA?

 

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

    Status: Open => Answered

RaiMan proposed the following answer:
Uuups, sorry - misunderstanding!

-- Is it possible to run from VBA?
yes, run the following command from inside the VBA script like any other Windows command:

java -jar "C:\Program Files\Sikuli X\sikuli-script.jar"
BartracTest.sikuli

Take care:
- no blanks or underscore in .sikuli folder names
- .skl is not needed (I do not recommend it at all) (only a zipped version of the .sikuli and needs Sikuli-IDE.bat/Sikuli-IDE-w.bat to run it) 

-- And be able to determine when the sikuli program is finished?
If you use the normal command call, your VBA script will wait until the Sikuli script finishes.
Using exit(n) in the Sikuli script reports a returncode, that you might check in your VBA script.

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