Hi,
Just sharing an AutoHotkey (www.autohotkey.com) script to annotate images through ShareX from InfoQube and any other Windows applications.
ShareX is a convenient application aimed at screenshot and image annotation, screencast recording, also working as a hub for sharing files by using Google Drive, Dropbox, FTP, etc.
Download ShareX: https://getsharex.com/
ShareX is very customizable through the GUI, and there are also command line arguments that allows integrating ShareX in many workflows (i.e. this own script): https://getsharex.com/docs/command-line-arguments
ShareX provides many functionalities and settings, that mastering it as a whole demands certain time. A nice place to talk about it is Reddit: https://www.reddit.com/r/sharex/
And here the script with a screencast showing its usage: https://bit.ly/3eHmr7I
The script is triggered by pressing the shortcut Win+PrintScreen.
--------------------------------
#PrintScreen::
Sleep 100 ;; Change the sleep time if the script isn't loading the images as expected.
Send ^c
Sleep 100
IfWinActive, ahk_exe InfoQube.exe
Clipboard := StrReplace(Clipboard, "file:///") ;; Needed to get image from InfoQube.
Run, "C:\Program Files\ShareX\ShareX.exe" -ImageEditor "%Clipboard%" ;; ShareX default installation path. Can be installed portable (recommended).
WinWait, ahk_exe ShareX.exe
winactivate, ahk_exe ShareX.exe
Return
--------------------------------
Cheers,
Carlos
Edited:
2020-06-01 script syntax simplified.
2020-06-03 script syntax copied/pasted directly from VS Code. The syntax highlighting is kept!
Comments