Excalibur Posted December 3, 2005 Share Posted December 3, 2005 (edited) expandcollapse popup; Script generated by GUIBuilder 9 #include <GuiConstants.au3> GuiCreate("Capture Master V3.0", 271, 500,(@DesktopWidth-271)/2, (@DesktopHeight-501)/2) $Background = GuiCtrlCreatePic("CaptureMaster ConfigPanel 01.jpg", 0, 0, 271, 500) $Configuration_Panel_Label = GuiCtrlCreateLabel("Configuration Panel", 0, 80, 270, 20, $SS_CENTER) GUICtrlSetColor( $Configuration_Panel_Label, 0xEEEEEE); GUICtrlSetFont( $Configuration_Panel_Label, 12, 500, 0, "Candy Sniper"); $Save_Path_Label = GuiCtrlCreateLabel("Save Path: ", 10, 112, 80, 20 ) $Save_Path_Input = GuiCtrlCreateInput("", 100, 110, 160, 20) GUICtrlSetColor( $Save_Path_Label, 0xEEEEEE); GUICtrlSetFont( $Save_Path_Label, 10, 500, 0, "Candy Sniper"); $Count_Seed_Label = GuiCtrlCreateLabel("Start Count: ", 10, 142, 80, 20) $Count_Seed_Input = GuiCtrlCreateInput("", 100, 140, 160, 20) GUICtrlSetColor( $Count_Seed_Label, 0xEEEEEE); GUICtrlSetFont( $Count_Seed_Label, 10, 500, 0, "Candy Sniper"); $File_Prefix_Label = GuiCtrlCreateLabel("File Prefix: ", 10, 172, 80, 20) $File_Prefix_Input = GuiCtrlCreateInput("", 100, 170, 160, 20) GUICtrlSetColor( $File_Prefix_Label, 0xEEEEEE); GUICtrlSetFont( $File_Prefix_Label, 10, 500, 0, "Candy Sniper"); $Save_Config_Button = GUICtrlCreateButton("Save Configuration", ((271-100)/2), ((500-20)/2), 100, 20, $SS_CENTER) GuiSetState() While 1 $msg = GuiGetMsg() Select Case $msg = $Save_Config_Button MsgBox(1, "b", "hannah") Case $msg = $GUI_EVENT_CLOSE ExitLoop Case Else ;;; EndSelect WEnd The background image is loaded aswell. The problem: you cant click any of the controls i have on the GUI. What i believe the problem is, is that the image i have thats supposed to be the background is somehow ontop of my controls, and its getting the clicks. Am i just trying to do too much with AutoIt? Any help would be greatly appreciated. :-) Edit: i just added the following: Case $msg = $Background MsgBox(1, "b", "hannah is great") It proves my theory. Any way to make the background go to the back? Edited December 3, 2005 by Excalibur Ooo Ëxçã¿îbúr ooO"Information Is Not Knowledge." ~Albert Einstein Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted December 3, 2005 Moderators Share Posted December 3, 2005 Answered in the other post too: $Background = GuiCtrlCreatePic("CaptureMaster ConfigPanel 01.jpg", 0, 0, 271, 500) GUICtrlSetState($Background, $GUI_DISABLE) Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer. 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