AoRaToS Posted May 10, 2009 Posted May 10, 2009 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.9.1 [04/07/2019] s!mpL3 LAN Messenger.zip s!mpL3
ProgAndy Posted May 10, 2009 Posted May 10, 2009 (edited) the styles are actually numbers. to check a style, just use BitAnd: If BitAND(GUICtrlGetState($Control),$GUI_DISABLE)=$GUI_DISABLE Then Edited May 10, 2009 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
AoRaToS Posted May 10, 2009 Author Posted May 10, 2009 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.9.1 [04/07/2019] s!mpL3 LAN Messenger.zip s!mpL3
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now