dreamzboy Posted April 8, 2009 Share Posted April 8, 2009 Please forgive me if this has been discussed. My program has been running fine until I downloaded the latest Autoit from this site. After compiling and trying to run it, an error shows up in my code. Here's my code: GUICtrlCreateTab(40, 50, 310, 300) GUICtrlCreateTabItem("Microsoft") GUICtrlCreateLabel("Version 2.7", 0, 326, 390, 20, $SS_CENTER) GUICtrlSetColor(-1, 0x0000ff) The error is shown: D:\My Documents\Scripts\Robo_Quik 2.7.au3 (30) : ==> Variable used without being declared.: GUICtrlCreateLabel("Version 2.7", 0, 326, 390, 20, $SS_CENTER) GUICtrlCreateLabel("Version 2.7", 0, 326, 390, 20, ^ ERROR >Exit code: 1 Time: 0.412 What did I do? Thanks a bunch for your assistance! Link to comment Share on other sites More sharing options...
picaxe Posted April 8, 2009 Share Posted April 8, 2009 #include <StaticConstants.au3> Link to comment Share on other sites More sharing options...
dreamzboy Posted April 8, 2009 Author Share Posted April 8, 2009 Aahh! This is new. Thanks Picaxe for your quick assistance. I'm now a happy man. Link to comment Share on other sites More sharing options...
picaxe Posted April 8, 2009 Share Posted April 8, 2009 Aahh! This is new. Thanks Picaxe for your quick assistance. I'm now a happy man. Your welcome, there's some utilities in the examples forum to autoadd include constants. I have a shortcut to the AutoIt Includes folder on on desktop that I can use the right click search, containing text option to find which include is required. 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