Sign in to follow this  
Followers 0
cjconstantine

$SS_SUNKEN: undeclared global variable

5 posts in this topic

Ok, here's the code:

#include <GUIConstants.au3>

$hGUI_Main = GUICreate('Profile Mover', 400, 300)
GUICtrlCreateLabel('Old Profile', 10, 10)
GUICtrlCreateLabel('', 10, 28, 260, 18, $SS_SUNKEN)

GUISetState(@SW_SHOW, $hGUI_Main)

Do
    $msg = GUIGetMsg()
Until $msg = $GUI_EVENT_CLOSE

I just installed the latest version of AutoIt, AutoIt beta, and Scite ... and when I run the program I get the follow errors:

D:\Documents and Settings\xcs1621a\Desktop\Scripts\Profile Move.au3(5,51) : WARNING: $SS_SUNKEN: possibly used before declaration.
GUICtrlCreateLabel('', 10, 28, 260, 18, $SS_SUNKEN)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
D:\Documents and Settings\xcs1621a\Desktop\Scripts\Profile Move.au3(5,51) : ERROR: $SS_SUNKEN: undeclared global variable.
GUICtrlCreateLabel('', 10, 28, 260, 18, $SS_SUNKEN)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
D:\Documents and Settings\xcs1621a\Desktop\Scripts\Profile Move.au3 - 1 error(s), 1 warning(s)

Any ideas? Have I just totally lost it??

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

Hard to say when you dont say if you use stable or beta but i would try:

#include <StaticConstants.au3>

Edit:Also I recommend that you switch to GUIConstantsEx.au3 instead of GUIConstants.au3

Edited by AdmiralAlkex

Share this post


Link to post
Share on other sites

Thanks much! When did that change?

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  
Followers 0