← Back to team overview

sikuli-driver team mailing list archive

[Question #151274]: [Java] How to access the Settings class ?

 

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

Hi,

I am coding Sikuli scripts under Java and I would like to change some parameters normally available through the Settings class such as ObserveScanRate, SlowMotionDelay and MoveMouseDelay.
Looking at your examples It seems pretty simple to be done under Python but I am struggling to do the same under Java.

Digging into the javadoc I haven't found any members method of the class Settings to update the parameters value, for example I would have expected a function like Settings.update("Parameter name", "new value")
So I have tried instead to instanciate a new Settings object and to access directly the members variables to affect them a new value but it does not work:

       public static Settings Stgs = new Settings() ;
       Settings.MoveMouseDelay = 3 ;
 
Then I get the compilation error: <identifier expected>

Could you please tell me what I should do to change the value of these parameters ?

Thanks for your great work on Sikuli guys !

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