SLK001 Posted May 3, 2006 Share Posted May 3, 2006 This code works (just puts a small pic on the GUI).#include <GuiConstants.au3> GuiCreate("MyGUI", 392, 323,-1, -1, $WS_SYSMENU) $Pic_1 = GUICtrlCreatePic("BIG_COMP.BMP", 100, 100, 32, 32) GuiSetState() While 1 $msg = GuiGetMsg() Select Case $msg = $GUI_EVENT_CLOSE ExitLoop Case Else ;;; EndSelect WEnd ExitWith the exception of the TITLE and SIZE, this code is identical to the above. However, it does NOT work!Any clues as to why not?#include <GuiConstants.au3> GuiCreate("Shut Down BartPE Session", 410, 265,-1,-1,$WS_SYSMENU) $Pic_1 = GUICtrlCreatePic("BIG_COMP.BMP", 100, 100, 32, 32) GuiSetState() While 1 $msg = GuiGetMsg() Select Case $msg = $GUI_EVENT_CLOSE ExitLoop Case Else ;;; EndSelect WEnd Exit Link to comment Share on other sites More sharing options...
Don N Posted May 3, 2006 Share Posted May 3, 2006 The second script works fine for me, if you have any errors post them, ittl help solve the problem....are you sure you have BIG_COMP.BMP in the same dir as ur script??? _____________________________________________________"some people live for the rules, I live for exceptions"Wallpaper Changer - Easily Change Your Windows Wallpaper Link to comment Share on other sites More sharing options...
SLK001 Posted May 3, 2006 Author Share Posted May 3, 2006 Duh!! Assuming that the two scripts were in the same directory was a brain dead mistake on my part! Don, you nailed it (boy do I feel stupid!). Link to comment Share on other sites More sharing options...
Don N Posted May 3, 2006 Share Posted May 3, 2006 lol im sure everyones done something liek this before :"> glad its working now _____________________________________________________"some people live for the rules, I live for exceptions"Wallpaper Changer - Easily Change Your Windows Wallpaper 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