← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #690050]: Sikuli 2.0.4 support for windows 2019 server 64 bit

 

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

    Status: Open => Answered

RaiMan proposed the following answer:
--- use
 scr.click(); //clicks the last match on scr

--- or
 scr.click(mat); //clicks the match

--- instead off
 scr.click(Inner);

... but if it does not really do the click it might be needed to run as
administrator, because the app is blocking non-manual clicks

BTW: String Inner=sImagepath+"\\\\AppDesignerCommon\\\\selva.PNG" ;
results in <content-sImagepath>\\ AppDesignerCommon\\selva.PNG which is surely not what you want

this works also:
String Inner=sImagepath+"/AppDesignerCommon/selva.PNG" ;

... and this is safer:
File imageFolder = new File(sImagepath, "AppDesignerCommon")

and then:
Match mat=scr.exists(new File(imageFolder, "selva.PNG").getAbsolutePath());

or simply use the ImagePath feature:
ImagePath.add(imageFolder)

and then
Match mat=scr.exists("selva");

... since .png is added automatically if omitted.

BTW: on Windows in filenames uppercase/lowercase is not distinguishing -
it is all the same

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