Highlighting Mouse Clicks with Control Click

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
Godfthr
Posts: 13
Joined: 28 Jul 2021, 11:43

Highlighting Mouse Clicks with Control Click

28 Jul 2021, 11:49

Sometimes when I attempt to attempt to create a script with control click, I'd like to see where the mouse is actually clicking on a page because window spy doesn't always provide accurate coordinates.

I found this code that does so for normal left clicks, and it works fine. But I would like it to do the same for control click. Is there anyway to achieve this?

Thank you.

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
User avatar
mikeyww
Posts: 26859
Joined: 09 Sep 2014, 18:38

Re: Highlighting Mouse Clicks with Control Click

28 Jul 2021, 17:51

I'm not sure, but I'm writing because I think that readers will be interested in knowing when Window Spy is inaccurate. Please help by providing your example of that.
Micahs
Posts: 1
Joined: 26 Mar 2019, 20:29

Re: Highlighting Mouse Clicks with Control Click

05 Aug 2021, 15:48

This is a good example:
Image
Maybe OP's using the old one...

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: mikeyww, mmflume, roysubs, scriptor2016, ShatterCoder and 105 guests