Added back ValueProperty, renamed config properties
uiabridge will display ValueProperty if element supports it. if uiabridge is disabled in synthuse.properties the native library will not be loaded. Added Trigger hot key Ctrl+Shift+` Added hotkey configurations in synthuse.properties
This commit is contained in:
@@ -11,8 +11,10 @@ public class Config extends PropertiesSerializer {
|
||||
|
||||
public static String DEFAULT_PROP_FILENAME = "synthuse.properties";
|
||||
|
||||
public String disableWpf = "false";
|
||||
public String disableFiltersWpf = "false";
|
||||
public String disableUiaBridge = "false";
|
||||
public String disableFiltersUia = "false";
|
||||
public String refreshKey = "3";
|
||||
public String targetKey = "`";
|
||||
public String urlList = "";
|
||||
public String xpathList = "";
|
||||
public String xpathHightlight = ".*process=\"([^\"]*)\".*";
|
||||
@@ -27,17 +29,41 @@ public class Config extends PropertiesSerializer {
|
||||
load(propertyFilename);
|
||||
}
|
||||
|
||||
public boolean isWpfBridgeDisabled()
|
||||
public boolean isUiaBridgeDisabled()
|
||||
{
|
||||
if (disableWpf == null)
|
||||
if (disableUiaBridge == null)
|
||||
return false;
|
||||
return disableWpf.equals("true") || disableWpf.equals("True");
|
||||
return disableUiaBridge.equals("true") || disableUiaBridge.equals("True");
|
||||
}
|
||||
|
||||
public boolean isFilterWpfDisabled()
|
||||
public boolean isFilterUiaDisabled()
|
||||
{
|
||||
if (disableFiltersWpf == null)
|
||||
if (disableFiltersUia == null)
|
||||
return false;
|
||||
return disableFiltersWpf.equals("true") || disableFiltersWpf.equals("True");
|
||||
return disableFiltersUia.equals("true") || disableFiltersUia.equals("True");
|
||||
}
|
||||
|
||||
public int getRefreshKeyCode()
|
||||
{
|
||||
String keyStr = "";
|
||||
if (this.refreshKey == null)
|
||||
keyStr = new Config().refreshKey; //use default value
|
||||
else if (this.refreshKey.isEmpty())
|
||||
keyStr = new Config().refreshKey; //use default value
|
||||
else
|
||||
keyStr = this.refreshKey;
|
||||
return RobotMacro.getKeyCode(keyStr.charAt(0))[0];
|
||||
}
|
||||
|
||||
public int getTargetKeyCode()
|
||||
{
|
||||
String keyStr = "";
|
||||
if (this.targetKey == null)
|
||||
keyStr = new Config().targetKey; //use default value
|
||||
else if (this.targetKey.isEmpty())
|
||||
keyStr = new Config().targetKey; //use default value
|
||||
else
|
||||
keyStr = this.targetKey;
|
||||
return RobotMacro.getKeyCode(keyStr.charAt(0))[0];
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user