Mouse Double Click on Title Bar of a Program

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
alf2314
Posts: 56
Joined: 05 Sep 2022, 13:29

Mouse Double Click on Title Bar of a Program

Post by alf2314 » 05 Sep 2022, 13:44

Greetings, AHK.

____

Please help me to compose a script.

What I need is to double click (as we usually do with mouse) on the Title Bar of a window - to run the script - instead of native "maximize" function.

Image

The formula should look this way:
1) I double click the mouse on the Title Bar of a program / window
2) This triggers the combination

Code: Select all

"ALT + J"
The main problem for me is to work with this script only on Title bar, so that:

- it doesnt conflict with usual double click (when opening docs, folders , etc)
- it "overrides" native Windows 10 function to maximize the window when we perform a double click

____

Would you please share any ideas?
Thanks

Image

skyth540
Posts: 72
Joined: 24 Aug 2022, 10:07

Re: Mouse Double Click on Title Bar of a Program

Post by skyth540 » 29 Sep 2022, 12:20

check out this post, viewtopic.php?t=64149#:~:text=Double%20click%20Right%20mouse%20button,change%20it%20if%20you%20want.

try using either some pixel color search, or if win active as some if statements to tell where you are

https://www.autohotkey.com/docs/commands/_IfWinActive.htm

Post Reply

Return to “Ask for Help (v1)”