The Wiki for Tale 5 is in read-only mode and is available for archival and reference purposes only. Please visit the current Tale 11 Wiki in the meantime.
If you have any issues with this Wiki, please post in #wiki-editing on Discord or contact Brad in-game.
Difference between revisions of "VeggieTales/srKeyEvent"
From ATITD5
Jump to navigationJump to search (Created page with " void srKeyEvent(const char *s) Sends a character or sequence of characters to the captured window. Example: <pre> loadfile("luaScripts/screen_reader_common.inc")(); functio...") |
|||
Line 17: | Line 17: | ||
</pre> | </pre> | ||
− | This will send the string "username" followed by a tab (\t) and then the string "password" and then | + | This will send the string "username" followed by a tab (\t) and then the string "password" and then enter (\n). |
Latest revision as of 05:55, 15 December 2010
void srKeyEvent(const char *s)
Sends a character or sequence of characters to the captured window. Example:
loadfile("luaScripts/screen_reader_common.inc")(); function doit() askForWindow(); lsSleep(250); -- wait for shift release to make it to the window srKeyEvent('username\tpassword'); lsSleep(250); -- wait a moment before submitting so we can see it work, that's more fun! srKeyEvent('\n'); end
This will send the string "username" followed by a tab (\t) and then the string "password" and then enter (\n).