How to disable sound when clicking on ahk gui?

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
N_athan
Posts: 40
Joined: 21 Aug 2021, 16:40

How to disable sound when clicking on ahk gui?

Post by N_athan » 17 Jan 2022, 00:26

How i could disable the sound when clicking in the GUI with the flag +0x08000000 WS_DISABLED,
If not possible through ahk code, c++ answer also helps.

Code: Select all

Gui, -Caption +0x08000000 
Gui, Color, 0
Gui, Show, NA w400 h300
Return

Rohwedder
Posts: 7648
Joined: 04 Jun 2014, 08:33
Location: Germany

Re: How to disable sound when clicking on ahk gui?

Post by Rohwedder » 17 Jan 2022, 03:03

Hallo,
perhaps:

Code: Select all

Gui, -Caption +0x08000000 +HwndGui 
Gui, Color, 0
Gui, Show, NA w400 h300
Return
LButton::
DetectHiddenWindows, On
MouseGetPos,,, Win
Click,% (Win = Gui)?0:"Down"
Return
~*LButton Up::Return

Post Reply

Return to “Ask for Help (v1)”