openApp not working and no error either

Asked by Justin

I cannot get the following command to work
openApp("c:\Windows\System32\OSK.EXE")

openApp("cmd.exe") works

and entering "c:\Windows\System32\OSK.EXE" into the run windows opens the app.

any ideas?
oh and there is no error either it just returns.

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
RaiMan (raimund-hocke) said :
#1

you have to write \\ for each \ (see docs ;-)

openApp("c:\\Windows\\System32\\OSK.EXE")

should work as expected.

openApp() should return a 1, if it does not succeed.

try
print openApp("something")

Can you help with this problem?

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

To post a message you must log in.