SendKeysEncrypted
Windows management function.
The SendKeysEncrypted function sends encrypted keyboard characters to the window specified by the most recent UseWindow (Not available in WinTask Lite).
Usage
SendKeysEncrypted function is used to simulate encrypted keystrokes being typed into an application. A set of characters can be encrypted using menu option Insert/Encrypted string. It will generate the encrypted string from the string you type and this encrypted string is then use in SendKeysEncrypted function. Before the SendKeysEncrypted line, a UseWindow statement would specify the window where the keystrokes have to be sent.
Syntax
SendKeysEncrypted(<encrypted_keys> [,NoActivate])
or
ret=SendKeysEncrypted(<encrypted_keys> [,NoActivate])Parameters
<encrypted_keys>, string of encrypted characters. If no active Window is found or if an error is found in <encrypted_keys>, an error message is displayed and all the scripts are stopped (depending on #IgnoreErrors value, see Error handling).
Noactivate : optional keyword. It is used for sending 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, numeric return code. When SendKeysEncrytped is successful, the function returns 0, otherwise use this return code for Error Handling.
Remarks
The variable #SendKeysDelay (set to 0 by default) slows down the typing of characters. A small delay is added between each typed scan code (for "a<Ctrl A>, there will be a delay between a, Ctrl and A).
See also
Examples
Generate first the encrypted string using Insert/Encrypted string menu option (or use Encrypt statement), then you can use the generated string in SendKeysEncrytped:
UseWindow(focus$())
SendKeysEncrypted("H9hfSsHbGkkF1qj")SendKeys("<Enter>")
Variables can be used:
UseWindow(focus$())
a$="H9hfSsHbGkkF1qj"
SendKeysEncrypted(a$)