Jump to content
Sign in to follow this  

How to make buttons "disabled"

Recommended Posts


How do i make a button "disabled" (so I can't press it)

I want it for my IE script...

Its because the script chash when press back or forward without have vist a hompage first.

Thank you :P

Edited by Mr. Zero

Share this post

Link to post
Share on other sites

Search the helpfile please... :P

#include <GUIConstants.au3>

GUICreate("My GUI state")  ; will create a dialog box that when displayed is centered

GUICtrlCreateLabel ("my disable label", 10,20)
GUICtrlSetState(-1,$GUI_DISABLE)    ; the label is in disable state
GUISetState ()
While 1
    $msg = GUIGetMsg()
    If $msg = $GUI_EVENT_CLOSE Then ExitLoop

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  


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.