-
-
Save DDRBoxman/e38603bf090e188de76b2fe8ae37b3b0 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