Search in sources :

Example 81 with Variant

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;
}
Also used : Variant(com.jacob.com.Variant)

Example 82 with Variant

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);
}
Also used : Variant(com.jacob.com.Variant)

Example 83 with Variant

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;
}
Also used : Variant(com.jacob.com.Variant)

Example 84 with Variant

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();
}
Also used : Variant(com.jacob.com.Variant)

Example 85 with Variant

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());
}
Also used : Variant(com.jacob.com.Variant)

Aggregations

Variant (com.jacob.com.Variant)100 Dispatch (com.jacob.com.Dispatch)45 ActiveXComponent (com.jacob.activeX.ActiveXComponent)18 ComFailException (com.jacob.com.ComFailException)17 Message (de.janrufmonitor.exception.Message)13 ICallerList (de.janrufmonitor.framework.ICallerList)13 ZipArchiveException (de.janrufmonitor.repository.zip.ZipArchiveException)13 SQLException (java.sql.SQLException)13 ArrayList (java.util.ArrayList)13 List (java.util.List)13 IAttribute (de.janrufmonitor.framework.IAttribute)6 SimpleDateFormat (java.text.SimpleDateFormat)2 Date (java.util.Date)2 SafeArray (com.jacob.com.SafeArray)1 ICaller (de.janrufmonitor.framework.ICaller)1 IMultiPhoneCaller (de.janrufmonitor.framework.IMultiPhoneCaller)1 IPhonenumber (de.janrufmonitor.framework.IPhonenumber)1 UUID (de.janrufmonitor.util.uuid.UUID)1 Properties (java.util.Properties)1