use of com.jacob.com.Variant in project selenium_java by sergueik.
the class AutoItX method autoItSetOption.
public String autoItSetOption(String option, String param) {
Variant vOption = new Variant(option);
Variant vParam = new Variant(param);
Variant[] params = new Variant[] { vOption, vParam };
Variant result = autoItX.invoke("AutoItSetOption", params);
if (result.getvt() == Variant.VariantInt) {
return String.valueOf(result.getInt());
}
return result.getString();
}
use of com.jacob.com.Variant in project selenium_java by sergueik.
the class AutoItX method winVariantBool.
private boolean winVariantBool(String title, String text, String function) {
Variant vTitle = new Variant(title);
Variant vText = new Variant(text);
Variant[] params = new Variant[] { vTitle, vText };
Variant result = autoItX.invoke(function, params);
return oneToTrue(result.getInt());
}
use of com.jacob.com.Variant in project selenium_java by sergueik.
the class AutoItX method pixelGetColor.
public float pixelGetColor(int x, int y) {
Variant vX = new Variant(x);
Variant vY = new Variant(y);
Variant[] params = new Variant[] { vX, vY };
Variant result = autoItX.invoke("PixelGetColor", params);
return result.getInt();
}
use of com.jacob.com.Variant in project selenium_java by sergueik.
the class AutoItX method controlTreeViewGetSelectedItemText.
public String controlTreeViewGetSelectedItemText(String title, String text, String control) {
Variant vTitle = new Variant(title);
Variant vText = new Variant(text);
Variant vControl = new Variant(control);
Variant vCommand = new Variant("GetSelected");
Variant vIndex = new Variant(0);
Variant[] params = new Variant[] { vTitle, vText, vControl, vCommand, vIndex };
return autoItX.invoke("ControlTreeView", params).getString();
}
use of com.jacob.com.Variant in project selenium_java by sergueik.
the class AutoItX method mouseClick.
public void mouseClick(String button, int clicks, int speed) {
Variant vButton = new Variant(button);
Variant vClicks = new Variant(clicks);
Variant vSpeed = new Variant(speed);
Variant[] params = new Variant[] { vButton, vClicks, vSpeed };
autoItX.invoke("MouseClick", params);
}
Aggregations