Search in sources :

Example 21 with Variant

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

the class AutoItX method send.

public void send(String keys, boolean isRaw) {
    Variant vKeys = new Variant(keys);
    Variant vFlag = new Variant(isRaw ? 1 : 0);
    Variant[] params = new Variant[] { vKeys, vFlag };
    autoItX.invoke("Send", params);
}
Also used : Variant(com.jacob.com.Variant)

Example 22 with Variant

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

the class AutoItX method controlSend.

public boolean controlSend(String title, String text, String control, String string, boolean sendRawKeys) {
    Variant vTitle = new Variant(title);
    Variant vText = new Variant(text);
    Variant vControl = new Variant(control);
    Variant vString = new Variant(string);
    int flag = (sendRawKeys) ? 1 : 0;
    Variant vFlag = new Variant(flag);
    Variant[] params = new Variant[] { vTitle, vText, vControl, vString, vFlag };
    Variant result = autoItX.invoke("ControlSend", params);
    return oneToTrue(result.getInt());
}
Also used : Variant(com.jacob.com.Variant)

Example 23 with Variant

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

the class AutoItX method iniWrite.

public Boolean iniWrite(String filename, String section, String key, String value) {
    Variant vFilename = new Variant(filename);
    Variant vSection = new Variant(section);
    Variant vKey = new Variant(key);
    Variant vValue = new Variant(value);
    Variant[] params = new Variant[] { vFilename, vSection, vKey, vValue };
    Variant result = autoItX.invoke("IniWrite", params);
    return oneToTrue(result);
}
Also used : Variant(com.jacob.com.Variant)

Example 24 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, 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("Run", params).getInt();
}
Also used : Variant(com.jacob.com.Variant)

Example 25 with Variant

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

the class AutoItX method mouseMove.

public boolean mouseMove(int x, int y, int speed) {
    Variant vX = new Variant(x);
    Variant vY = new Variant(y);
    Variant vSpeed = new Variant(speed);
    Variant[] params = new Variant[] { vX, vY, vSpeed };
    return oneToTrue(autoItX.invoke("MouseMove", params).getInt());
}
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