Submitted by carloscadu on 2020/06/01 11:09
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

Thanks for that Carlos.  I've been using ShareX for a long time now, it's great!  I need to try out the screencast.  I've had trouble with Scrolling Capture, haven't had much luck getting it to do with I want.  After a little Googling I found an alternative for Scrolling Capture - it's built into Firefox to capture an image of the whole page, which I can just edit afterwards.
 

carloscadu

2020/06/03 17:16

In reply to by jimspoon

Hi jimspoon,
Very few times I had the ShareX's scrolling capture not working as expected.
Eventually, tweaking the scrolling methods and delays may provide a better result.
 
 
 

jimspoon

2020/06/03 18:39

In reply to by carloscadu

 Thanks Carlos, I'll try some more!