Laurynelis

Can't click buttons that are on image

4 posts in this topic

I have couple of buttons that are on an image, and they can't be clicked. Example: example.jpg

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

Untitled.jpg

Share this post


Link to post
Share on other sites



Works!

You're the man!

Share this post


Link to post
Share on other sites

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.

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