Search in sources :

Example 11 with Variant

use of com.jacob.com.Variant in project selenium_java by sergueik.

the class AutoItX method winMenuSelectItem.

public boolean winMenuSelectItem(String title, String text, String item, String item2) {
    Variant vTitle = new Variant(title);
    Variant vText = new Variant(text);
    Variant vItem = new Variant(item);
    Variant vItem2 = new Variant(item2);
    Variant[] params = new Variant[] { vTitle, vText, vItem, vItem2 };
    Variant result = autoItX.invoke("WinMenuSelectItem", params);
    return oneToTrue(result.getInt());
}
Also used : Variant(com.jacob.com.Variant)

Example 12 with Variant

use of com.jacob.com.Variant in project selenium_java by sergueik.

the class AutoItX method winList.

public String[][] winList(String title, String text) {
    Variant result = winVariant(title, text, "WinList");
    SafeArray arr = result.toSafeArray();
    int entries = arr.getInt(0, 0);
    String[][] resultArr = new String[2][entries + 1];
    for (int i = 0; i <= entries; i++) {
        resultArr[0][i] = arr.getString(0, i);
        resultArr[1][i] = arr.getString(1, i);
    }
    return resultArr;
}
Also used : Variant(com.jacob.com.Variant) SafeArray(com.jacob.com.SafeArray)

Example 13 with Variant

use of com.jacob.com.Variant in project selenium_java by sergueik.

the class AutoItX method controlGetFocus.

public String controlGetFocus(String title, String text) {
    Variant vTitle = new Variant(title);
    Variant vText = new Variant(text);
    Variant[] params = new Variant[] { vTitle, vText };
    return autoItX.invoke("ControlGetFocus", params).getString();
}
Also used : Variant(com.jacob.com.Variant)

Example 14 with Variant

use of com.jacob.com.Variant in project selenium_java by sergueik.

the class AutoItX method winSetTitle.

public void winSetTitle(String title, String text, String newtitle) {
    Variant vTitle = new Variant(title);
    Variant vText = new Variant(text);
    Variant vNewtitle = new Variant(newtitle);
    Variant[] params = new Variant[] { vTitle, vText, vNewtitle };
    autoItX.invoke("WinSetTitle", params);
}
Also used : Variant(com.jacob.com.Variant)

Example 15 with Variant

use of com.jacob.com.Variant in project selenium_java by sergueik.

the class AutoItX method regRead.

public String regRead(String keyname, String valueName) {
    Variant vKeyname = new Variant(keyname);
    Variant vValueName = new Variant(valueName);
    Variant[] params = new Variant[] { vKeyname, vValueName };
    Variant result = autoItX.invoke("RegRead", params);
    if (result.getvt() == Variant.VariantInt) {
        return String.valueOf(result.getInt());
    }
    if (result.getvt() == Variant.VariantString) {
        return result.getString();
    }
    return "";
}
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