use of com.jacob.com.Variant in project selenium_java by sergueik.
the class AutoItX method controlEnable.
public boolean controlEnable(String title, String text, String control) {
Variant vTitle = new Variant(title);
Variant vText = new Variant(text);
Variant vControl = new Variant(control);
Variant[] params = new Variant[] { vTitle, vText, vControl };
Variant result = autoItX.invoke("ControlEnable", params);
return oneToTrue(result.getInt());
}
use of com.jacob.com.Variant in project selenium_java by sergueik.
the class AutoItX method driveMapAdd.
public boolean driveMapAdd(String device, String remote, int flags, String username, String password) {
Variant vDevice = new Variant(device);
Variant vRemote = new Variant(remote);
Variant vFlags = new Variant(flags);
Variant vUsername = new Variant(username);
Variant vPassword = new Variant(password);
Variant[] params = new Variant[] { vDevice, vRemote, vFlags, vUsername, vPassword };
Variant result = autoItX.invoke("DriveMapAdd", params);
if (result.getvt() == Variant.VariantString) {
return oneToTrue(Integer.parseInt(result.getString()));
}
return oneToTrue(result.getInt());
}
use of com.jacob.com.Variant in project selenium_java by sergueik.
the class AutoItX method controlClick.
public boolean controlClick(String title, String text, String controlID, String button, int clicks, int x, int y) {
Variant vTitle = new Variant(title);
Variant vText = new Variant(text);
Variant vControlID = new Variant(controlID);
Variant vButton = new Variant(button);
Variant vClicks = new Variant(clicks);
Variant vX = new Variant(x);
Variant vY = new Variant(y);
Variant[] params = new Variant[] { vTitle, vText, vControlID, vButton, vClicks, vX, vY };
Variant result = autoItX.invoke("ControlClick", params);
return oneToTrue(result.getInt());
}
use of com.jacob.com.Variant in project selenium_java by sergueik.
the class AutoItX method regWrite.
public boolean regWrite(String keyname, String valueName, String type, String value) {
Variant vKeyname = new Variant(keyname);
Variant vValueName = new Variant(valueName);
Variant vType = new Variant(type);
Variant vValue = new Variant(value);
Variant[] params = new Variant[] { vKeyname, vValueName, vType, vValue };
Variant result = autoItX.invoke("RegWrite", params);
return oneToTrue(result.getInt());
}
use of com.jacob.com.Variant in project selenium_java by sergueik.
the class AutoItX method cdTray.
public boolean cdTray(String drive, String status) {
Variant vDrive = new Variant(drive);
Variant vStatus = new Variant(status);
Variant[] params = new Variant[] { vDrive, vStatus };
Variant result = autoItX.invoke("CDTray", params);
return oneToTrue(result);
}
Aggregations