Search in sources :

Example 91 with Variant

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

the class AutoItX method winGetClassList.

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

Example 92 with Variant

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

the class AutoItX method controlTreeViewGetSelectedItemIndex.

public int controlTreeViewGetSelectedItemIndex(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(1);
    Variant[] params = new Variant[] { vTitle, vText, vControl, vCommand, vIndex };
    return autoItX.invoke("ControlTreeView", params).getInt();
}
Also used : Variant(com.jacob.com.Variant)

Example 93 with Variant

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

the class AutoItX method mouseClickDrag.

public void mouseClickDrag(String button, int x, int y, int x2, int y2, int speed) {
    Variant vButton = new Variant(button);
    Variant vX = new Variant(x);
    Variant vY = new Variant(y);
    Variant vX2 = new Variant(x2);
    Variant vY2 = new Variant(y2);
    Variant vSpeed = new Variant(speed);
    Variant[] params = new Variant[] { vButton, vX, vY, vX2, vY2, vSpeed };
    autoItX.invoke("MouseClickDrag", params);
}
Also used : Variant(com.jacob.com.Variant)

Example 94 with Variant

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

the class AutoItX method runWait.

public int runWait(String filename, String workingDirectory, int flag) {
    Variant vFilename = new Variant(filename);
    Variant vWorkingDirectory = new Variant(workingDirectory);
    Variant vFlag = new Variant(flag);
    Variant[] params = new Variant[] { vFilename, vWorkingDirectory, vFlag };
    return autoItX.invoke("RunWait", params).getInt();
}
Also used : Variant(com.jacob.com.Variant)

Example 95 with Variant

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

the class AutoItX method statusbarGetText.

public String statusbarGetText(String title, String text, int part) {
    Variant vTitle = new Variant(title);
    Variant vText = new Variant(text);
    Variant vPart = new Variant(part);
    Variant[] params = new Variant[] { vTitle, vText, vPart };
    return autoItX.invoke("StatusbarGetText", params).getString();
}
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