Shane0000 Posted August 15, 2012 Posted August 15, 2012 (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 August 15, 2012 by Shane0000
BrewManNH Posted August 15, 2012 Posted August 15, 2012 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 GudeHow 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
abberration Posted August 15, 2012 Posted August 15, 2012 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. Easy MP3 | Software Installer | Password Manager
BrewManNH Posted August 15, 2012 Posted August 15, 2012 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. abberration 1 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 GudeHow 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
abberration Posted August 16, 2012 Posted August 16, 2012 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. Easy MP3 | Software Installer | Password Manager
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