Home > Language Reference > Windows Management Functions > SendKeysEncrypted

SendKeysEncrypted

The SendKeysEncrypted function sends encrypted keystrokes to the current window.

Usage

Used to simulate encrypted keystrokes being typed into an application. A string of characters can be encrypted using Insert/Encrypted string menu option in WinTask x64 Editor window. It will generate the encrypted string from the string you type and this encrypted string can then be used in SendKeysEncrypted function.

Syntax

ret=SendKeysEncrypted(<encrypted_key_list> [, Noactivate])

Parameters

<encrypted_key_list>, string, encrypted keystrokes to send.

Noactivate, optional keyword. If used, it sends the encrypted keys to the window which has the focus without checking that it's the one defined in the most recent UseWindow.

Return value

ret, optional numeric return value. If the function succeeds, the return value is 0. If the function fails, the return value is a nonzero value (see Window Functions Error Codes).

See also

SendKeys

Example

'Generate first the encrypted string using Insert/Encrypted string menu option (or use Encrypt function), then you can use the generated string in SendKeysEncrytped:
Shell("notepad")
Pause 1
UseWindow(focus$())
SendKeysEncrypted("H9hfSsHbGkkF1qj")   'test word is typed, encrypted string within the script
SendKeys("<Enter>")