That's what the 'Mouse Click Special Effects for Presentations/Demos' AutoHotkey script from the The AutoHotkey ARCHIVED FORUMS is supposed to do.
This same script (including the modification suggested by someone else in a reply to that forum post) is at StackExchange's SuperUser site and GitHub Gist.
However, it didn't work for me until I changed its:
Code: Select all
OnExit, ExitSub
Code: Select all
#Persistent
OnExit, ExitSub
return
Since the original script was in the Archived Forums, I thought it might be helpful to include the full code here.
I call it HighlightMouseClicks.ahk:
Code: Select all
DllCall("SystemParametersInfo", UInt, 0x101D, UInt, 0, UInt, 1, UInt, 0)
#Persistent
OnExit, ExitSub
return
ExitSub:
{
DllCall("SystemParametersInfo", UInt, 0x101D, UInt, 0, UInt, 0, UInt, 0)
ExitApp
}
~LButton::
Send {Ctrl}
return
~LButton UP::
Send {Ctrl}
return