← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #243428]: Click button in JAVA swing app to start sikuli

 

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

    Status: Answered => Open

Jeremy is still having a problem:
Sikuli isn't acting on the GUI. It is acting on another program.

This is how I have Sikuli setup in my program:
[code]
package com.main;
import org.sikuli.script.*;


public class GameReboot implements Runnable {
	SikuliGameLibrary m_sikulilibrary;
	
	public GameReboot()
	{
		m_sikulilibrary = new SikuliGameLibrary();
		
	}
	
	public void RunProcess() throws FindFailed
	{
        Screen s = new Screen();
        s.click(.....
[/code]

This is how I call it:
[code]
	@Override
	public void actionPerformed(ActionEvent arg0) {
		if (m_viewlistiner != null)
		{
			m_viewlistiner.ViewChanged(true);
		}	
		
		try {
	        

			
		GameReboot m_test = new GameReboot();
			m_test.RunProcess();
		} catch (FindFailed e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}

	}
[/code]

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