Why won't Applications launch in Windows Vista?
I have read the similar question at https:/
I copied the full path, C:\Program Files\IObit\IObit Security 360\is360.exe, to the application from the "Object name:" on the Security tab of the is360 Properties and entered it in Sikuli like this, switchApp(
I then received this error message:
[sikuli] [Error] Traceback (innermost last):
(no code object) at line 0
SyntaxError: ('invalid syntax', ('C:\\Users\
I even changed the lower case "i" to upper case like this, switchApp(
This particular app is just one of several I have tried to get to launch and nothing works. Where is my mistake?
All help is greatly appreciated.
Thanks.
FrizzleFrazzled
P.S. Some video demos of Windows automation would be very nice.
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- Sikuli Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- frizzlefrazzle
- Solved:
- 2010-01-30
- Last query:
- 2010-01-30
- Last reply:
- 2010-01-30
kerridge0 (klearurnychpad) said : | #1 |
Hi
you need to include quotes around the app name
switchApp(
Wow! That was a ridiculous mistake on my part. Thank you for pointing that out. I know better than that from the video demo. However, in my own defense, I copy and pasted "switchApp(app)" from http://
Adding quotes did solve the syntax error, but, the app still doesn't open. I also tried to open Firefox by using switchApp(
When I click on the Play button in Sikuli to test that one line, Sikuli just blinks and no app opens from the closed state nor is the app brought to the front when already open in the background.
Further assistance is appreciated, as always.
JDegoler (jason25883) said : | #3 |
You need to capitalize any letters immediately after backslahes as suggested in Question #99153
switchApp(
You are correct sir!
Okay. I'm getting somewhere now.
Sikuli clearly has the potential to become the WYSIWYG editor for non-programmers. It would be great to see an online school like w3schools.com and a Tidy function like that for HTML.
Any tips on how to run scheduled Sikuli functions? I would like my project to run automatically at a scheduled time without me having to initiate it.
Thanks again for the help. Eventually I will post my finished project for educational purposes, if I get it working the way I want.
Sergey Darovskih (darovskih) said : | #6 |
Are you familiar with BAT files? If you will download command line Sikuli tool, you will be able to run your scripts using batch files. Or by any scheduler.
No I am not familiar with BAT files. I just learned about Sikuli about a day and a half to two days ago. I don't know anything about programming either. I learned HTML, XHTML & CSS at w3schools.com and from Sitepoint books. By time I started to try to get into JavaScript my interest and need was waning.
I am very interested in using Sikuli to aggregate and publish information for a web site which just wouldn't possible for me to do myself, to the extent that I want, because of the amount of time involved.
I am open to suggestions and links.
Thanks
I just spent a significant amount of time creating a test script to get Sikuli to open Firefox, open Bookmarks, visit sites and select options from drop down menus. I saved the script as "test" and tried to run it. It did not work and it was not saved.
I started over with only the switchApp(app) script to open Firefox, which did work, but the script would not save. Now I'm getting frustrated. How hard is it to click on "save as" and save as "test"?
I lost a 10 step script which was to be a template for other work. Before I re-write the script I need to know why the scripts are not saving. Any ideas?
Thanks for the help and patients.
I have tried the above on both these paths on my Vista Machine
C:\Windows\
C:\Program Files\Mozilla Firefox\Firefox.exe
but nothing happens just a flash
This is what I'm using
switchApp(
switchApp(
AND
switchApp(
If these application are already open should it reopen another instance ?
Thanks Nick
Note using Java 6.0.6001 on 32bit vista machine
Thsi all the errors I can see:
[sikuli] Stopped
[sikuli] An error occurs at line 1
[sikuli] Error message:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:\Program Files\Sikuli\
java.lang.
at java.lang.
at java.lang.
at org.python.
at java.lang.
at org.python.
at org.python.
at org.python.
at org.python.
at org.python.
at org.python.
at org.python.
at org.python.
at org.python.
at org.python.
at org.python.
at org.python.
at org.python.
at sikuli.
at sikuli.
at org.python.
at org.python.
at org.python.
at org.python.
at org.python.
at org.python.
at org.python.
at org.python.
at org.python.
at org.python.
at org.python.
at org.python.
at org.python.
at org.python.
at org.python.
at org.python.
at org.python.
at org.python.
at org.python.
at org.python.
at org.python.
at org.python.
at org.python.
at org.python.
at org.python.
at org.python.
at edu.mit.
at edu.mit.
at edu.mit.
java.lang.
Does Sikuli not work with latest Java?
Sorted:
Had to remove Sikuli and java
Then install latest Java 6.0.6001
Reboot machine
Reinstall Sikuli
Works now
Might be able to get away with the Java Update then Sikuli and no reboot.
But happy now as working so can get on and evaluate.