Sign in to follow this  
Followers 0
Shane0000

Revisiting Old Script, Error for styles on gui

6 posts in this topic

#1 ·  Posted (edited)

I have revisited an old script and had to update a few includes (ie: GuiList.au3->GuiListBox.au3).

When I try to run the script Im getting alot of errors for the style constants (ie: $ES_AUTOHSCROLL, $ES_UPPERCASE)

This program previously executed. circa 08/2008

I checked the format and it still looks valid, am I missing something?

Thanks

#include <GUIConstantsEx.au3>
$Site_Num = GUICtrlCreateInput ("", $intCol_1,$intRow+int($intRow_Gap*0), $intFieldWidth, $intFieldHeight,BitOR($ES_UPPERCASE,$ES_AUTOHSCROLL,$WS_GROUP))
WARNING: $ES_AUTOHSCROLL: possibly used before declaration.
Edited by Shane0000

Share this post


Link to post
Share on other sites



Add this line to the top of your script.

#AutoIt3Wrapper_Add_Constants=y

This will automatically add the missing #includes needed for any standard constants you have in your script, it will also automatically change itself to =n after running.


If I posted any code, assume that code was written using the latest release version unless stated otherwise. Also, if it doesn't work on XP I can't help with that because I don't have access to XP, and I'm not going to.
Give a programmer the correct code and he can do his work for a day. Teach a programmer to debug and he can do his work for a lifetime - by Chirag Gude
How to ask questions the smart way!

I hereby grant any person the right to use any code I post, that I am the original author of, on the autoitscript.com forums, unless I've specifically stated otherwise in the code or the thread post. If you do use my code all I ask, as a courtesy, is to make note of where you got it from.

Back up and restore Windows user files _Array.au3 - Modified array functions that include support for 2D arrays.  -  ColorChooser - An add-on for SciTE that pops up a color dialog so you can select and paste a color code into a script.  -  Customizable Splashscreen GUI w/Progress Bar - Create a custom "splash screen" GUI with a progress bar and custom label.  -  _FileGetProperty - Retrieve the properties of a file  -  SciTE Toolbar - A toolbar demo for use with the SciTE editor  -  GUIRegisterMsg demo - Demo script to show how to use the Windows messages to interact with controls and your GUI.  -   Latin Square password generator

Share this post


Link to post
Share on other sites

I just want to jump in and mention that I have tried the #AutoIt3Wrapper_Add_Constants=y trick myself in the past, but I didn't get it to work. I figured it out after you mentioned it here, BrewManNH. You have to run the script by going to menu > Tools > Beta Run (or use ALT+F5). Just thought it should be mentioned because I don't think that little tidbit of knowledge is intuitive. Maybe this should be mentioned when telling others about this wrapper.


RAID Calculator | Software Installer

The truth has been suppressed since the dawn of time.

Share this post


Link to post
Share on other sites

Thanks, That fixed it up!

Share this post


Link to post
Share on other sites

I just want to jump in and mention that I have tried the #AutoIt3Wrapper_Add_Constants=y trick myself in the past, but I didn't get it to work. I figured it out after you mentioned it here, BrewManNH. You have to run the script by going to menu > Tools > Beta Run (or use ALT+F5). Just thought it should be mentioned because I don't think that little tidbit of knowledge is intuitive. Maybe this should be mentioned when telling others about this wrapper.

No , you don't have to run it with just the beta version, unless you're using a very old version. You can Run the script (F5), or run Au3Check (CTRL-F5), or run it with the Beta version. But it isn't something new, it's been in the language for a while now.
1 person likes this

If I posted any code, assume that code was written using the latest release version unless stated otherwise. Also, if it doesn't work on XP I can't help with that because I don't have access to XP, and I'm not going to.
Give a programmer the correct code and he can do his work for a day. Teach a programmer to debug and he can do his work for a lifetime - by Chirag Gude
How to ask questions the smart way!

I hereby grant any person the right to use any code I post, that I am the original author of, on the autoitscript.com forums, unless I've specifically stated otherwise in the code or the thread post. If you do use my code all I ask, as a courtesy, is to make note of where you got it from.

Back up and restore Windows user files _Array.au3 - Modified array functions that include support for 2D arrays.  -  ColorChooser - An add-on for SciTE that pops up a color dialog so you can select and paste a color code into a script.  -  Customizable Splashscreen GUI w/Progress Bar - Create a custom "splash screen" GUI with a progress bar and custom label.  -  _FileGetProperty - Retrieve the properties of a file  -  SciTE Toolbar - A toolbar demo for use with the SciTE editor  -  GUIRegisterMsg demo - Demo script to show how to use the Windows messages to interact with controls and your GUI.  -   Latin Square password generator

Share this post


Link to post
Share on other sites

No , you don't have to run it with just the beta version, unless you're using a very old version. You can Run the script (F5), or run Au3Check (CTRL-F5), or run it with the Beta version. But it isn't something new, it's been in the language for a while now.

OK, that makes sense. I just know that running the script like regular did not work. I'm glad you cleared it up for me. Thank you.


RAID Calculator | Software Installer

The truth has been suppressed since the dawn of time.

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