Search in sources :

Example 16 with Variant

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

the class AutoItX method pixelChecksum.

public double pixelChecksum(int left, int top, int right, int bottom, int step) {
    Variant vLeft = new Variant(left);
    Variant vTop = new Variant(top);
    Variant vRight = new Variant(right);
    Variant vBottom = new Variant(bottom);
    Variant vStep = new Variant(step);
    Variant[] params = new Variant[] { vLeft, vTop, vRight, vBottom, vStep };
    Variant result = autoItX.invoke("PixelChecksum", params);
    return result.getDouble();
}
Also used : Variant(com.jacob.com.Variant)

Example 17 with Variant

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

the class AutoItX method run.

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

Example 18 with Variant

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

the class AutoItX method processWaitClose.

public boolean processWaitClose(String process, int timeout) {
    Variant vProcess = new Variant(process);
    Variant vTimeout = new Variant(timeout);
    Variant[] params = new Variant[] { vProcess, vTimeout };
    Variant result = autoItX.invoke("ProcessWaitClose", params);
    return oneToTrue(result.getInt());
}
Also used : Variant(com.jacob.com.Variant)

Example 19 with Variant

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

the class AutoItX method ControlSetText.

public boolean ControlSetText(String title, String text, String control, String string) {
    Variant vTitle = new Variant(title);
    Variant vText = new Variant(text);
    Variant vControl = new Variant(control);
    Variant vString = new Variant(string);
    Variant[] params = new Variant[] { vTitle, vText, vControl, vString };
    Variant result = autoItX.invoke("ControlSetText", params);
    return oneToTrue(result.getInt());
}
Also used : Variant(com.jacob.com.Variant)

Example 20 with Variant

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

the class AutoItX method winSetOnTop.

public void winSetOnTop(String title, String text, boolean isTopMost) {
    Variant vTitle = new Variant(title);
    Variant vText = new Variant(text);
    int flag = 0;
    if (isTopMost) {
        flag = 1;
    }
    Variant vFlag = new Variant(flag);
    Variant[] params = new Variant[] { vTitle, vText, vFlag };
    autoItX.invoke("WinSetOnTop", 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