Thornhunt Posted June 28, 2009 Share Posted June 28, 2009 ok its probially a simple mistake so i am sorry if it is. but while testing this section i set up a button that would exit the program. so i can get it closed but when its al loaded the mouse click does not effec the button. yet space bar still does. im guesing it is due to the picture over lapping some how. but it really has confused me and i can think of a way to solve it.. maybe due to that lack of sleep past nights but, thankyou in advance #include <WindowsConstants.au3> #include <GUIConstantsEx.au3> $screenresX = @DesktopWidth $screenresY = @DesktopHeight $BGlocation = "\B\Wallpapers\5a8e4ed25b9762957d2f659ab7b06a83.jpg" MsgBox("","x,Y", $screenresX & " = Width" & @CRLF & $screenresY & " = height") $hGUI = GUICreate("Test", $screenresX, $screenresY, 0, 0, $WS_POPUP) $hBG = GUICtrlCreatePic( @UserProfileDir & $BGlocation, 0, 0, $screenresX, $screenresY) $hButton = GUICtrlCreateButton("Exit", 10, 10, 80, 30) GUISetState() While 1 Switch GUIGetMsg() Case $hButton Exit EndSwitch WEnd Budweiser + room = warm beerwarm beer + fridge = too long!warm beer + CO2 fire extinguisher = Perfect![quote]Protect the easly offended ... BAN EVERYTHING[/quote]^^ hmm works for me :D Link to comment Share on other sites More sharing options...
Yashied Posted June 28, 2009 Share Posted June 28, 2009 ok its probially a simple mistake so i am sorry if it is. but while testing this section i set up a button that would exit the program. so i can get it closed but when its al loaded the mouse click does not effec the button. yet space bar still does. im guesing it is due to the picture over lapping some how. but it really has confused me and i can think of a way to solve it.. maybe due to that lack of sleep past nights but, thankyou in advance #include <WindowsConstants.au3> #include <GUIConstantsEx.au3> $screenresX = @DesktopWidth $screenresY = @DesktopHeight $BGlocation = "\B\Wallpapers\5a8e4ed25b9762957d2f659ab7b06a83.jpg" MsgBox("","x,Y", $screenresX & " = Width" & @CRLF & $screenresY & " = height") $hGUI = GUICreate("Test", $screenresX, $screenresY, 0, 0, $WS_POPUP) $hBG = GUICtrlCreatePic( @UserProfileDir & $BGlocation, 0, 0, $screenresX, $screenresY) $hButton = GUICtrlCreateButton("Exit", 10, 10, 80, 30) GUISetState() While 1 Switch GUIGetMsg() Case $hButton Exit EndSwitch WEndGUICtrlSetState($hBG, $GUI_DISABLE) My UDFs: iKey | FTP Uploader | Battery Checker | Boot Manager | Font Viewer | UDF Keyword Manager | Run Dialog Replacement | USBProtect | 3D Axis | Calculator | Sleep | iSwitcher | TM | NetHelper | File Types Manager | Control Viewer | SynFolders | DLL Helper Animated Tray Icons UDF Library | Hotkeys UDF Library | Hotkeys Input Control UDF Library | Caret Shape UDF Library | Context Help UDF Library | Most Recently Used List UDF Library | Icons UDF Library | FTP UDF Library | Script Communications UDF Library | Color Chooser UDF Library | Color Picker Control UDF Library | IPHelper (Vista/7) UDF Library | WinAPI Extended UDF Library | WinAPIVhd UDF Library | Icon Chooser UDF Library | Copy UDF Library | Restart UDF Library | Event Log UDF Library | NotifyBox UDF Library | Pop-up Windows UDF Library | TVExplorer UDF Library | GuiHotKey UDF Library | GuiSysLink UDF Library | Package UDF Library | Skin UDF Library | AITray UDF Library | RDC UDF Library Appropriate path | Button text color | Gaussian random numbers | Header's styles (Vista/7) | ICON resource enumeration | Menu & INI | Tabbed string size | Tab's skin | Pop-up circular menu | Progress Bar without animation (Vista/7) | Registry export | Registry path jumping | Unique hardware ID | Windows alignment More... Link to comment Share on other sites More sharing options...
Thornhunt Posted June 28, 2009 Author Share Posted June 28, 2009 whoop whoop whoop than kyou very much Budweiser + room = warm beerwarm beer + fridge = too long!warm beer + CO2 fire extinguisher = Perfect![quote]Protect the easly offended ... BAN EVERYTHING[/quote]^^ hmm works for me :D 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