AutoHotkey Webinar- 12/2019 Working Session

Blue keyboard key labeled Webinar on a white keyboard, next to Ctrl and Menu keysIn this webinar we worked on a script from Skrommel’s 1-hour software

Video Hour 1: High-level overview: Hour 1
Video Hour 2: Q&A: Hour 2

Here’s the version that Maestrith (author of AHK Studio) wrote but we tweaked.  Granted, it does less than the original code but it is also 9 lines instead of ~400.   I’d probably add a few more lines to limit what program it works in…

#SingleInstance,Force
~LButton Up:: ;Watch for mouse-up but don't "absorb" it
Clipboard:="" ;Clear clipboard
while(Clipboard) ;Wait until clipboard is blank
  Sleep,10
Send,^c ;Send selection to clipboard
ClipWait,1 ;Wait for up to 1 second for clipboard to have content
if (clipboard)
  MsgBox % Clipboard

Sign up for future webinars here

See past AutoHotkey webinars here

Joe Glines

Joe Glines spent 20 years as a corporate data scientist before going all in on automation. He now uses AI to build automation in AutoHotkey, Python and Rust, has made 1,500+ tutorials, and runs the-Automator with a small team that has shipped 450+ time-saving tools.

Comments are closed.