← Back to team overview

sikuli-driver team mailing list archive

[Question #168895]: How to click on windows desktop icon?

 

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

I am trying to use the demo program to click on a windows desktop icon. 

import org.sikuli.script.*;

public class TestSikuli {

        public static void main(String[] args) {
                Screen s = new Screen();
                try{
                        s.click("imgs/spotlight.png", 0);
                        s.wait("imgs/spotlight-input.png");
                        s.type(null, "hello world\n", 0);
                }
                catch(FindFailed e){
                        e.printStackTrace();
                }

        }

}

Two issues:
1. The icons on windows desktop are not png files but .lnk files which sikuli does not understand
2. If I doubleClick on a saved icon image, it just brings up the icon in windows image viewer

Appreciate all the help!!!

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