Was this page helpful?

SendKeyCombination()

     

    Void SendKeyCombination(Keysas String)

    Description

    This function simulates a user keyboard action. It allows a complex combination of keystroke which is not manageable with function SendKey().

    Note: the syntaxe of keystokes sequences is different from that of SendKey().

    The sequences in parenthesis is considered as key actions with the prefix sequence holding down (e.g. case 2)

    Parameter(s)

    Keys  - a string giving the name of the keystroke to be simulated and sent to the desktop

    Special keys :

    BACKSPACE,DOWN,UP,LEFT,RIGHT,TAB,
    NUMPAD0,NUMPAD1,NUMPAD2,NUMPAD3,
    NUMPAD4,NUMPAD5,NUMPAD6,NUMPAD7,
    NUMPAD8,NUMPAD9,NUMPAD*,NUMPAD+,NUMPAD-,
    NUMPAD.,NUMPAD/,CONTROL,SHIFT,ALT,PGUP,PGDN,
    BREAK,CLEAR,DELETE,END,ENTER,ESC,HELP,HOME,INSERT,
    PRTSC,F1,F2,F3,F4,F5,F6,F7,F8,F9,F10,F11,F12,
    F13,F14,F15,F16,F17,F18,F19,F20,F21,F22,F23,F24,
    CANCEL,PAUSE,SELECT,EXECUTE,SNAPSHOT,SCROLL,
    LWIN,RWIN,APPS,NUMLOCK,CAPSLOCK,SPACE,RMENU

     

    Example(s)

    Case 1: Send simple string

    String to send: ip-label

    reference to undefined name 'syntax' Une exception de type 'MindTouch.Deki.Script.Runtime.DekiScriptUndefinedNameException' a été levée. (click for details)
    Case 2: Send uppercase string with SHIFT holding

    String to send: IP-LABEL

    reference to undefined name 'syntax' Une exception de type 'MindTouch.Deki.Script.Runtime.DekiScriptUndefinedNameException' a été levée. (click for details)
    Case 3: Send chars as a pure string

    String to send: {SHIFT}(ip-label)

    reference to undefined name 'syntax' Une exception de type 'MindTouch.Deki.Script.Runtime.DekiScriptUndefinedNameException' a été levée. (click for details)
    Case 4: Send chars with unicode number

    String to send: ip-labelÆ

    reference to undefined name 'syntax' Une exception de type 'MindTouch.Deki.Script.Runtime.DekiScriptUndefinedNameException' a été levée. (click for details)
    Case5: Send a windows key combination

    Combination: Windows + d // this is the shortcut to show desktop

    reference to undefined name 'syntax' Une exception de type 'MindTouch.Deki.Script.Runtime.DekiScriptUndefinedNameException' a été levée. (click for details)

    or

    reference to undefined name 'syntax' Une exception de type 'MindTouch.Deki.Script.Runtime.DekiScriptUndefinedNameException' a été levée. (click for details)
    Case 6: Send chars with delay

    String to send: ip-label

    add a delay of 1s between "-" and "l"

    reference to undefined name 'syntax' Une exception de type 'MindTouch.Deki.Script.Runtime.DekiScriptUndefinedNameException' a été levée. (click for details)
    Case 7: Send a key com bination with a delay while holding one key

    Combination: CTRL + TAB + TAB + TAB with a delay of 500 millisecond

    reference to undefined name 'syntax' Une exception de type 'MindTouch.Deki.Script.Runtime.DekiScriptUndefinedNameException' a été levée. (click for details)

     

    See also

     

    Was this page helpful?
    Tag page (Edit tags)
    • No tags
    Page statistics
    1013 view(s), 7 edit(s) and 3171 character(s)

    Comments

    You must login to post a comment.

    Attach file

    Attachments