Search in sources :

Example 36 with Variant

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

the class AutoItX method controlMove.

public boolean controlMove(String title, String text, String control, int x, int y) {
    Variant vTitle = new Variant(title);
    Variant vText = new Variant(text);
    Variant vControl = new Variant(control);
    Variant vX = new Variant(x);
    Variant vY = new Variant(y);
    Variant[] params = new Variant[] { vTitle, vText, vControl, vX, vY };
    Variant result = autoItX.invoke("ControlMove", params);
    return oneToTrue(result.getInt());
}
Also used : Variant(com.jacob.com.Variant)

Example 37 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) {
    Variant vFilename = new Variant(filename);
    Variant vWorkingDirectory = new Variant(workingDirectory);
    Variant[] params = new Variant[] { vFilename, vWorkingDirectory };
    return autoItX.invoke("RunWait", params).getInt();
}
Also used : Variant(com.jacob.com.Variant)

Example 38 with Variant

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

the class AutoItX method toolTip.

public void toolTip(String text, int x, int y) {
    Variant vText = new Variant(text);
    Variant vX = new Variant(x);
    Variant vY = new Variant(y);
    Variant[] params = new Variant[] { vText, vX, vY };
    autoItX.invoke("ToolTip", params);
}
Also used : Variant(com.jacob.com.Variant)

Example 39 with Variant

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

the class AutoItX method runAsSet.

public int runAsSet(String username, String domain, String password, int options) {
    Variant vUsername = new Variant(username);
    Variant vDomain = new Variant(domain);
    Variant vPassword = new Variant(password);
    Variant vOptions = new Variant(options);
    Variant[] params = new Variant[] { vUsername, vDomain, vPassword, vOptions };
    return autoItX.invoke("RunAsSet", params).getInt();
}
Also used : Variant(com.jacob.com.Variant)

Example 40 with Variant

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

the class AutoItX method controlListViewSelectAll.

public void controlListViewSelectAll(String title, String text, String control, String from) {
    Variant vTitle = new Variant(title);
    Variant vText = new Variant(text);
    Variant vControl = new Variant(control);
    Variant vCommand = new Variant("SelectAll");
    Variant vFrom = new Variant(from);
    Variant[] params = new Variant[] { vTitle, vText, vControl, vCommand, vFrom };
    autoItX.invoke("ControlListView", 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