use of com.jacob.com.Variant in project selenium_java by sergueik.
the class AutoItX method winSetTrans.
public boolean winSetTrans(String title, String text, int transparency) {
Variant vTitle = new Variant(title);
Variant vText = new Variant(text);
Variant vTransparency = new Variant(transparency);
Variant[] params = new Variant[] { vTitle, vText, vTransparency };
Variant result = autoItX.invoke("WinSetTrans", params);
return result.getInt() != 0;
}
use of com.jacob.com.Variant in project selenium_java by sergueik.
the class AutoItX method controlVariant.
protected Variant controlVariant(String title, String text, String control, String function) {
Variant vTitle = new Variant(title);
Variant vText = new Variant(text);
Variant vControl = new Variant(control);
Variant[] params = new Variant[] { vTitle, vText, vControl };
return autoItX.invoke(function, params);
}
use of com.jacob.com.Variant in project selenium_java by sergueik.
the class AutoItX method pixelSearch.
public long[] pixelSearch(int left, int top, int right, int bottom, int color, int shadeVariation, int step) {
Variant vLeft = new Variant(left);
Variant vTop = new Variant(top);
Variant vRight = new Variant(right);
Variant vBottom = new Variant(bottom);
Variant vColor = new Variant(color);
Variant vShadeVariation = new Variant(shadeVariation);
Variant vStep = new Variant(step);
Variant[] params = new Variant[] { vLeft, vTop, vRight, vBottom, vColor, vShadeVariation, vStep };
Variant result = autoItX.invoke("PixelSearch", params);
long[] l = new long[2];
if (result.getvt() == 8204) {
l[0] = result.toSafeArray().getLong(0);
l[1] = result.toSafeArray().getLong(1);
}
return l;
}
use of com.jacob.com.Variant in project selenium_java by sergueik.
the class AutoItX method iniRead.
public String iniRead(String filename, String section, String key, String defaultVal) {
Variant vFilename = new Variant(filename);
Variant vSection = new Variant(section);
Variant vKey = new Variant(key);
Variant vDefault = new Variant(defaultVal);
Variant[] params = new Variant[] { vFilename, vSection, vKey, vDefault };
Variant result = autoItX.invoke("IniRead", params);
return result.getString();
}
use of com.jacob.com.Variant in project selenium_java by sergueik.
the class AutoItX method processWait.
public boolean processWait(String process, int timeout) {
Variant vProcess = new Variant(process);
Variant vTimeout = new Variant(timeout);
Variant[] params = new Variant[] { vProcess, vTimeout };
Variant result = autoItX.invoke("ProcessWait", params);
return oneToTrue(result.getInt());
}
Aggregations