Re: [Sikuli-driver] [Question #464203]: App.open() not working on Windows Server 2012

2017-02-27 Thread RaiMan
Question #464203 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/464203

Status: Open => Answered

RaiMan proposed the following answer:
open() comes back immediately after having triggered the app opening.

run() waits for completion of the given command or command file. In your case 
it will only come back, after the app is closed again. To avoid this effect 
with the run(), you have to use commands, that detach the command processing 
and immediately come back.
An example for a command that does this: start

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.

___
Mailing list: https://launchpad.net/~sikuli-driver
Post to : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp


Re: [Sikuli-driver] [Question #464203]: App.open() not working on Windows Server 2012

2017-02-27 Thread pratik patil
Question #464203 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/464203

Status: Needs information => Open

pratik patil gave more information on the question:
Yes I tried that too ...

App.open() opens command prompt as well as our application and then
debug pointer moves to next step

App.run() opens our application but debug pointer does not move to next
step.

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.

___
Mailing list: https://launchpad.net/~sikuli-driver
Post to : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp


Re: [Sikuli-driver] [Question #464203]: App.open() not working on Windows Server 2012

2017-02-20 Thread pratik patil
Question #464203 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/464203

Status: Answered => Solved

pratik patil confirmed that the question is solved:
Closing this as Issue is resolved.

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.

___
Mailing list: https://launchpad.net/~sikuli-driver
Post to : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp


Re: [Sikuli-driver] [Question #464203]: App.open() not working on Windows Server 2012

2017-02-20 Thread pratik patil
Question #464203 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/464203

pratik patil posted a new comment:
Yes ...

cmd /c 

this worked well with App.run() as well as App.open()

Thank you all.

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.

___
Mailing list: https://launchpad.net/~sikuli-driver
Post to : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp


Re: [Sikuli-driver] [Question #464203]: App.open() not working on Windows Server 2012

2017-02-20 Thread Manfred Hampl
Question #464203 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/464203

Status: Open => Answered

Manfred Hampl proposed the following answer:
Maybe http://stackoverflow.com/a/10558351 helps

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.

___
Mailing list: https://launchpad.net/~sikuli-driver
Post to : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp


Re: [Sikuli-driver] [Question #464203]: App.open() not working on Windows Server 2012

2017-02-20 Thread pratik patil
Question #464203 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/464203

Status: Answered => Open

pratik patil is still having a problem:
Hi,

for 0 and 3, we have code written in Core java and framework already
working smoothly. So we cannot use jython in our code.

1. Tried using App.run() but faced this error:
[error] RunTimeAPI: fatal error: java.io.IOException: Cannot run program 
"C:/Program Files (x86)//xyz.exe": CreateProcess error=740, The requested 
operation requires elevation

Also tried to append r at the beginning of path and still saw above
error.

It seems like error of permission

2. Notepad++ application launched using App.run command

-I have checked notepad++.exe and xyz.exe security tab (permissions) and
both are having same permission

do we have anything similar to os in java as you mentioned above ??

thanks for help till now ..

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.

___
Mailing list: https://launchpad.net/~sikuli-driver
Post to : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp


Re: [Sikuli-driver] [Question #464203]: App.open() not working on Windows Server 2012

2017-02-19 Thread dinev
Question #464203 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/464203

Status: Open => Answered

dinev proposed the following answer:
Some ideas to try:

0. try working within Sikuli IDE
1. try using run() command
2. try runing another application - like Notepad - is it working?
3. try using pure jython

import os
os.system("app_to_run")

4. compose a .bat file that will start your app and then try to run the
bat from sikuli command - run, open, etc..


Just wondering if this may be a permission promblem? Maybe you need
elevated permissions...

Hope this helps

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.

___
Mailing list: https://launchpad.net/~sikuli-driver
Post to : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp


Re: [Sikuli-driver] [Question #464203]: App.open() not working on Windows Server 2012

2017-02-17 Thread pratik patil
Question #464203 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/464203

Status: Needs information => Open

pratik patil gave more information on the question:
I tried with this option too ... but it is saying that

App not found r"C:\Program Files (x86)\\xyz.exe"

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.

___
Mailing list: https://launchpad.net/~sikuli-driver
Post to : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp


Re: [Sikuli-driver] [Question #464203]: App.open() not working on Windows Server 2012

2017-02-17 Thread RaiMan
Question #464203 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/464203

Status: Open => Needs information

RaiMan requested more information:
ok, the intermediate blanks might be the problem:

please try:
xyzPath = r"C:\Program Files (x86)\\xyz.exe"

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.

___
Mailing list: https://launchpad.net/~sikuli-driver
Post to : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp


Re: [Sikuli-driver] [Question #464203]: App.open() not working on Windows Server 2012

2017-02-17 Thread pratik patil
Question #464203 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/464203

pratik patil gave more information on the question:
Sorry, it works as expected on 2008 Windows Server

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.

___
Mailing list: https://launchpad.net/~sikuli-driver
Post to : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp


Re: [Sikuli-driver] [Question #464203]: App.open() not working on Windows Server 2012

2017-02-17 Thread pratik patil
Question #464203 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/464203

Status: Needs information => Open

pratik patil gave more information on the question:
This  is what i tried so far -

1. C:/Program Files (x86)///xyz.exe
2. C:\Program Files (x86)\\\xyz.exe
3. C:/Program Files (x86)//xyz.exe (This is working with 2007 server)

declared xyzPath at the beginning of script and then passing xyzPath
while calling openApp(appPath).

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.

___
Mailing list: https://launchpad.net/~sikuli-driver
Post to : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp


Re: [Sikuli-driver] [Question #464203]: App.open() not working on Windows Server 2012

2017-02-17 Thread RaiMan
Question #464203 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/464203

Status: Open => Needs information

RaiMan requested more information:
ok, misunderstood:
I want to see the offending path string ;-)

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.

___
Mailing list: https://launchpad.net/~sikuli-driver
Post to : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp


Re: [Sikuli-driver] [Question #464203]: App.open() not working on Windows Server 2012

2017-02-17 Thread pratik patil
Question #464203 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/464203

pratik patil gave more information on the question:
public boolean openApp(String appPath)  {
Thread.sleep(2000);
App.open(appPath);
isExecuted = true;
return isExecuted;
}

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.

___
Mailing list: https://launchpad.net/~sikuli-driver
Post to : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp


Re: [Sikuli-driver] [Question #464203]: App.open() not working on Windows Server 2012

2017-02-17 Thread pratik patil
Question #464203 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/464203

Status: Answered => Open

pratik patil is still having a problem:
We have SikuliActions class where all sikuli related actions being kept.

In that we have openApp() method where we are using - App.open(appPath);
code to open Application.

appPath - C:/

I also tried with double backslash and it did not resolve.

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.

___
Mailing list: https://launchpad.net/~sikuli-driver
Post to : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp


Re: [Sikuli-driver] [Question #464203]: App.open() not working on Windows Server 2012

2017-02-17 Thread RaiMan
Question #464203 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/464203

RaiMan requested more information:
please paste your App.open() exactly as used.

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.

___
Mailing list: https://launchpad.net/~sikuli-driver
Post to : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp


Re: [Sikuli-driver] [Question #464203]: App.open() not working on Windows Server 2012

2017-02-17 Thread pratik patil
Question #464203 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/464203

pratik patil posted a new comment:
Hey RaiMan,

All are in same version and that too 1.1.1.

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.

___
Mailing list: https://launchpad.net/~sikuli-driver
Post to : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp


Re: [Sikuli-driver] [Question #464203]: App.open() not working on Windows Server 2012

2017-02-17 Thread RaiMan
Question #464203 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/464203

Status: Open => Answered

RaiMan proposed the following answer:
same SikuliX versions?

might make sense, to try with version 1.1.1 (if it is not already used)

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.

___
Mailing list: https://launchpad.net/~sikuli-driver
Post to : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp


[Sikuli-driver] [Question #464203]: App.open() not working on Windows Server 2012

2017-02-17 Thread pratik patil
New question #464203 on Sikuli:
https://answers.launchpad.net/sikuli/+question/464203

Hi Team,

I already saw all threads regarding App.open() not working. Also i tried all 
possible solution to make it work on Windows Server 2012 but still I am not 
able to get it resolved.

I am getting error on screen as  App.open failed: C:\Our\Product\Path not found.

However same code is working as expected on Windows 2007 Servers. I am not 
getting exact reason behind this problem. 

On both servers same version of java installed. 

Thanks for help.

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.

___
Mailing list: https://launchpad.net/~sikuli-driver
Post to : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp