← Back to team overview

sikuli-driver team mailing list archive

[Question #451299]: Problem running application is foreground

 

New question #451299 on Sikuli:
https://answers.launchpad.net/sikuli/+question/451299

Hi there,

I am trying to open an application using App.open(). It does run the app but in background. I tried to set focus but it didn't help. Here is my code. I am running my code in Eclipse.  Can anyone help please. I want the application to launch in foreground to automate it further.

            String path = "\"C:\\Users\\user1\\Programs\\Application\\Install.exe\"";
	    App pub = new App(path);
	    pub.open();
	    pub.waitForWindow();
	    pub.focus();



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