Jump to content
Sign in to follow this  

Custom Gui's?

Recommended Posts


Can we make something like custom gui's like not window in autoit? something like this:

Posted Image

Not like this:

Posted Image

Please help me Q___Q.

Share this post

Link to post
Share on other sites

Hi, Dark12363. You are somewhat limited in the look and feel of the controls you create for your GUI. You can always overlay an image on the GUI itself or a button, to get the effect you would like. Here is a quick and dirty script to point you in that direction. I saved the pic you have above as a JPG, and a picture of the Add Item as a BMP. I'm sure someone who is much better at GUIs will wander by eventually, but this will get you started.

#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#include <ButtonConstants.au3>

Opt("GUIOnEventMode", 1)

$var = GUICreate( "Test GUI Background", 800, 600, -1)
$pic = GUICtrlCreatePic(@DesktopDir & '1.jpg', 0, 0, 800, 600)
GUICtrlSetState($pic, $GUI_DISABLE)
GUICtrlCreateButton("", 336, 219, 109, 30, $BS_BITMAP)
GUICtrlSetImage(-1, @DesktopDir & "Add Item.bmp")
GUICtrlSetOnEvent(-1, "Test")

        $msg = GUIGetMsg()
    Until $msg = $GUI_EVENT_CLOSE

Func Test()
MsgBox(0, "", "You clicked Add!")

√-1 2^3 ∑ π, and it was delicious!

How to get your question answered on this forum!

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