← Back to team overview

sikuli-driver team mailing list archive

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

 

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

    Status: Open => Answered

RaiMan proposed the following answer:
sorry, I am not that Java expert.

This is the Settings class partly:

public class Settings {
   public static float WaitScanRate = 3f; // frames per second
...
   public static float MoveMouseDelay = 0.5f; // in seconds
...
}

It seems, that on the Java level, the Settings.Attributes are readonly and cannot be changed by a simple
Settings.Attribute = value (what is possible on the Python/Jython script level - which is conform to the Python definition, that does not know read-only class attributes).

It seems that a public setter method for each attribute is needed in
class Settings to be able to change the value from Java code.

You should post a request bug.

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