Jump to content

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


Recommended Posts

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
Link to comment
Share on other sites

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

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