Search in sources :

Example 31 with Variant

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

Example 32 with Variant

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

Example 33 with Variant

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

Example 34 with Variant

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

Example 35 with Variant

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);
}
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