2001
Post New Requests Here / Re: IDEA: Long left click as Right Click
« Last post by 4wd on March 03, 2015, 05:25 PM »The more I thought about the more it would seem like you'd need to practically install another handler which would cater for all conditions, (ClickLock, other program handlers, etc) ... and my brain can't cope with that 
However, the Chrome, IE, and Explorer should be doable by checking for the window class under the mouse at the time of clicking and subverting the normal mouse handling for the timeout period.
ie. Instead of allowing the click to happen immediately the button is pressed, delay it until the button is released for periods less than the timeout. For periods longer than the timeout, block the primary click and send a secondary click.
You could probably make it window configurable by adding window class entries to the ini.
The current code (which includes lots of comments, something that's totally against my normal modus operandi
):
See above.
Archive contains everything required to build, (except MouseOnEvent UDF) - download from here MouseOnEvent UDF.

However, the Chrome, IE, and Explorer should be doable by checking for the window class under the mouse at the time of clicking and subverting the normal mouse handling for the timeout period.
ie. Instead of allowing the click to happen immediately the button is pressed, delay it until the button is released for periods less than the timeout. For periods longer than the timeout, block the primary click and send a secondary click.
You could probably make it window configurable by adding window class entries to the ini.
The current code (which includes lots of comments, something that's totally against my normal modus operandi
):See above.
Archive contains everything required to build, (except MouseOnEvent UDF) - download from here MouseOnEvent UDF.

Recent Posts



