amakrkr Posted April 29, 2011 Share Posted April 29, 2011 Hello all, i have an interesting problem. Till recently i was using very old autoit compiler (3.2.9.4) and every script in it works fine without any errors. After i got my self a new PC and OS i tried with the latest compiler and it reproduces a number of errors which i can not solve by my own. 1st error is: Can not find GuiCombo.au3 - but this is managable. 2nd error is: with WM_COMMAND (error description is: Can not redeclare a constant!) 3rd error is: Function name does not exist: _GUICtrlListViewSetColumnWidth 4th error is: Function name does not exist: _GUICtrlComboSetCurSel Anyway ... ihope you can give me a hand how to make this work. Thanks for your input! autoit]#include <GUIConstants.au3> #include <ComboConstants.au3> #Include <GuiCombo.au3> #Include <GuiListView.au3> #include <WindowsConstants.au3> #include <String.au3> #include <Array.au3> #include <File.au3> #include <Winpcap.au3> Global Const $WM_COMMAND = 0x0111 [/autoit] Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted April 29, 2011 Moderators Share Posted April 29, 2011 amakrkr,There were huge changes in how AutoIt dealt with include files in v3.2.12.0 - your old scripts are running foul of that. There were also many changes to the names of the include files and various functions within them - for example, GuiCombo.au3 became GuiComboBox.au3. mMny contants were added to the new includes - $WM_COMMAND is already in WindowsConstants.au3 and so no longer needs to be delared separately (which causes the error you point out).I suggest you look at this thread explaining the differences. You are in for a complete rewrite of all your scripts I am afraid, replacing all the include filenames and function names and omitting double declared constants. But it will be worth the effort as the newer versions of AutoIt are much more powerful and have many added features. Just do not leave it aso long to upgrade next time! Good luck! M23 Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind Open spoiler to see my UDFs: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area Link to comment Share on other sites More sharing options...
amakrkr Posted April 29, 2011 Author Share Posted April 29, 2011 awww thats what i was afraid of >.< Ok then for the answer i ll look at the link posted. Have a nice day! Link to comment Share on other sites More sharing options...
GEOSoft Posted April 29, 2011 Share Posted April 29, 2011 It's not that difficult to change them considering you only have 4 Errors. Replace #Include <GUIConstants.au3> with #Include <GUIConstantsEx.au3> #Include <GuiComboBox.au3> replaces #Include <GuiCombo.au3> _GUICtrlListView_SetColumnWidth() replaces _GUICtrlListViewSetColumnWidth() ;; Check for a change of parameters here _GUICtrlComboBox_SetCurSel($hWnd[, $iIndex = -1]) replaces _GUICtrlComboSetCurSel() ;; Again check for a change of parameters Remove the Global Const $WM_COMMAND = 0x0111 line. It's already declared in WindowsConstants.au3You may also have to add the line #Include<StaticConstants.au3> but that depends on your script. That should handle all the errors you are getting now but there may be more that show up later. For many (not all) of the control changes in the link M23 provided you can write a simple script to do them for you. I had one but I disposed of it a long time ago. George Question about decompiling code? Read the decompiling FAQ and don't bother posting the question in the forums.Be sure to read and follow the forum rules. -AKA the AutoIt Reading and Comprehension Skills test.*** The PCRE (Regular Expression) ToolKit for AutoIT - (Updated Oct 20, 2011 ver:3.0.1.13) - Please update your current version before filing any bug reports. The installer now includes both 32 and 64 bit versions. No change in version number. Visit my Blog .. currently not active but it will soon be resplendent with news and views. Also please remove any links you may have to my website. it is soon to be closed and replaced with something else. "Old age and treachery will always overcome youth and skill!" 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