Run clipboard onto Run window

Share your favorite FastKeys commands
Post Reply
prisoner107
Posts: 9
Joined: Nov 16th, ’17, 21:18

Post by prisoner107 » Nov 16th, ’17, 21:26

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}
User avatar
Marko
Posts: 1719
Joined: Mar 2nd, ’13, 21:02

Post by Marko » Nov 17th, ’17, 10:25

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.
prisoner107
Posts: 9
Joined: Nov 16th, ’17, 21:18

Post by prisoner107 » Nov 17th, ’17, 12:30

Awesome, that worked!! thank you.
Post Reply