Created
February 18, 2021 16:46
-
-
Save ericlaw1979/fa34e112a7f04c10ae57bfd5e29a4dc3 to your computer and use it in GitHub Desktop.
Types the contents of the clipboard to the focused text area three seconds after invocation (useful for using sites/apps that block CTRL+V paste). Useful as a script launched from [SlickRun](https://bayden.com/slickrun)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set WshShell = WScript.CreateObject("WScript.Shell") | |
WScript.Sleep 3000 | |
'Hackery to get the clipboard's contents | |
Set objHTML = CreateObject("htmlfile") | |
text = objHTML.ParentWindow.ClipboardData.GetData("text") | |
WshShell.SendKeys text |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment