Highlight (Show) Mouse Clicks

Post your working scripts, libraries and tools for AHK v1.1 and older
RussellJ
Posts: 4
Joined: 31 May 2016, 12:50

Highlight (Show) Mouse Clicks

17 Jun 2016, 13:59

When showing someone a screen capture video of some unexpected behavior, it can be helpful to make the mouse clicks visible.

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
to:

Code: Select all

#Persistent
OnExit, ExitSub
return
Now, it works for me.

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

Return to “Scripts and Functions (v1)”

Who is online

Users browsing this forum: gwarble and 55 guests