Jump to content

Background image too much for AutoIt?


Excalibur
 Share

Recommended Posts

; 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 by Excalibur
Ooo Ëxçã¿îbúr ooO"Information Is Not Knowledge." ~Albert Einstein
Link to comment
Share on other sites

  • Moderators

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

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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...