Laurynelis Posted December 19, 2016 Posted December 19, 2016 I have couple of buttons that are on an image, and they can't be clicked. Example: Button1 is clickable Button2 is half-clickable Button3 is unclickable at all. Any ideas how to make Button3 clickable? #include <ButtonConstants.au3> #include <GUIConstantsEx.au3> #include <StaticConstants.au3> #include <WindowsConstants.au3> #Region ### START Koda GUI section ### Form= $Form2 = GUICreate("Form1", 405, 293, 453, 273) $Pic1 = GUICtrlCreatePic("Untitled.jpg", 24, 24, 252, 156) $Button1 = GUICtrlCreateButton("Button1", 304, 96, 75, 25) $Button2 = GUICtrlCreateButton("Button2", 240, 136, 75, 25) $Button3 = GUICtrlCreateButton("Button3", 88, 136, 75, 25) GUISetState(@SW_SHOW) #EndRegion ### END Koda GUI section ### While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit EndSwitch WEnd test.au3
Joboy2k Posted December 19, 2016 Posted December 19, 2016 use GUICtrlSetState($Pic1, $GUI_DISABLE) Laurynelis 1
InunoTaishou Posted December 20, 2016 Posted December 20, 2016 Check out It's the closest thing to an IDE for AutoIt and it has a built in form creator. The creator is a bit more bulky than Koda but there's a lot more options.
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