Sign in to follow this  
Followers 0
AoRaToS

GUICtrlGetState Button

3 posts in this topic

I'm trying to get the state of a button enabled/disabled but all I get is numbers, how can I get the state?

I want something like $GUI_DISABLE

The button returns "144" if it's disabled?

I can work with the numbers or with a workaround I thought of but I like the states better...


s!mpL3 LAN Messenger

Current version 2.9.8.8 [30/09/2015]

Download Here

s!mpL3

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

the styles are actually numbers. to check a style, just use BitAnd:

If BitAND(GUICtrlGetState($Control),$GUI_DISABLE)=$GUI_DISABLE Then
Edited by ProgAndy

*GERMAN* [note: you are not allowed to remove author / modified info from my UDFs]My UDFs:[_SetImageBinaryToCtrl] [_TaskDialog] [AutoItObject] [Animated GIF (GDI+)] [ClipPut for Image] [FreeImage] [GDI32 UDFs] [GDIPlus Progressbar] [Hotkey-Selector] [Multiline Inputbox] [MySQL without ODBC] [RichEdit UDFs] [SpeechAPI Example] [WinHTTP]UDFs included in AutoIt: FTP_Ex (as FTPEx), _WinAPI_SetLayeredWindowAttributes

Share this post


Link to post
Share on other sites

Thanks allot ProgAndy, I knew it was simple, I'd used it somewhere before and couldn't find it...

***P.S. fix the DISBALE with DISABLE


s!mpL3 LAN Messenger

Current version 2.9.8.8 [30/09/2015]

Download Here

s!mpL3

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0