Page 1 of 1

Run clipboard onto Run window

Posted: Nov 16th, ’17, 21:26
by prisoner107
New user and I love what the out of the box Alt+G can do with "Google Search text" on the Shortcuts Module.
I would like to bring that same functionality to the "Run" windows (WinKey+R).
My goal is to Open the Run window, paste the clipboard info and run it.

Was hoping this would work below, unfortunately, all it does is open the "Run" window, nothing else.
Can anyone point me in the right direction? Thanks.

Code: Select all

SaveClip := ClipboardAll
Clipboard := ""
Send ^{vk43} ;Ctrl C
ClipWait 1
Word := RegExReplace(Clipboard, "[^\w\s]")
Clipboard := SaveClip
SaveClip := ""
Run explorer.exe shell:::{2559a1f3-21d7-11d4-bdaf-00c04f60b9f0}

Re: Run clipboard onto Run window

Posted: Nov 17th, ’17, 10:25
by Marko
Set a shortcut (Type: Command):

Code: Select all

Send ^c ;Copy to clipboard
sleep 100
Send #r ;Win+R
sleep 100
Send ^v ;Paste
Send {Enter}
In case of trouble you can increase the sleeps.

Re: Run clipboard onto Run window

Posted: Nov 17th, ’17, 12:30
by prisoner107
Awesome, that worked!! thank you.