Dark12363 Posted June 20, 2012 Share Posted June 20, 2012 Can we make something like custom gui's like not window in autoit? something like this:Not like this:Please help me Q___Q. Link to comment Share on other sites More sharing options...
Moderators JLogan3o13 Posted June 21, 2012 Moderators Share Posted June 21, 2012 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") GUISetState(@SW_SHOW) Do $msg = GUIGetMsg() Until $msg = $GUI_EVENT_CLOSE Exit Func Test() MsgBox(0, "", "You clicked Add!") Exit EndFunc "Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball How to get your question answered on this forum! Link to comment Share on other sites More sharing 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