Unable to enable/disable GUI button

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
Ryder
Posts: 61
Joined: 28 Apr 2022, 18:49

Unable to enable/disable GUI button

Post by Ryder » 17 Aug 2022, 18:58

Hi All...

I have been able to enable and disable buttons using a variable method like this:

Code: Select all

Gui, Add, Button, gok7  x328 y368  w72  h22 vPrintOK
GuiControl, Disable, PrintOK
However, buttons made thusly:

Code: Select all

Gui, Add, Button,      x9    y582  w306 h440 HWNDhScrolla
I have found no way to disable... I assume it is because I don't know how to specify HWNDhScrolla properly.

Many thanks for your kind help in this...

R

User avatar
mikeyww
Posts: 26885
Joined: 09 Sep 2014, 18:38

Re: Unable to enable/disable GUI button

Post by mikeyww » 17 Aug 2022, 19:48

Code: Select all

Gui, Font, s10
Gui, Add, Button, HWNDhScrolla, Test
Gui, Show
GuiControl, Disable, %hScrolla%

Ryder
Posts: 61
Joined: 28 Apr 2022, 18:49

Re: Unable to enable/disable GUI button

Post by Ryder » 18 Aug 2022, 10:55

I could have sworn I tried that... but thank you! (I may have left out the "h")

R

Post Reply

Return to “Ask for Help (v1)”