Jump to content
Sign in to follow this  

Problems with undefined constants

Recommended Posts


Hello everybody!

I'm brand-new to AutoIt and I'm pretty sure that I have a dumb question -- but I haven't been able to figure it out on my own.

I've been downloading a lot of example scripts for educational purposes. A lot of the time, I get errors stating:

C:\Program Files\AutoIt3\helloworld.au3(13,75) : WARNING: $BS_ICON: possibly used before declaration.

So I checked GUIConstants.au3 and GUIConstantsEx.au3. No $BS_ICON there.

FYI: I get the same error when I try to run it from Koda.

Similarly, I had the problem with $WS_EX_TRANSPARENT when I tried using Felix N.'s downloader (http://www.autoitscript.com/forum/index.php?showtopic=16868&st=0&gopid=116844&).

I went through "_Functions.au3" and removed the references to it just so I could see the script work but something is obviously whompy-jawed.

I've upgraded to the latest beta in my attempts to make this problem go away.

Any ideas?



Share this post

Link to post
Share on other sites

The newes Version of autoit has changed the include sysyem.

You need to include "WindowsConstants.au3" and the constants from any controls used


#include <WindowsConstants.au3>
#include <ButtonConstants.au3> ; Contains $BS_ICON

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  


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.