Jump to content
Sign in to follow this  
SLK001

Two Identical Scripts, One Works, One Doesn't!

Recommended Posts

SLK001

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
Exit

With 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

Share this post


Link to post
Share on other sites
Don N

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

Share this post


Link to post
Share on other sites
SLK001

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!).

Share this post


Link to post
Share on other sites
Don N

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

Share this post


Link to post
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
Sign in to follow this  

×