Fullerene Posted August 27, 2009 Share Posted August 27, 2009 I have a novice question.When using KODA editor, it generated the following code:#include <GUIConstants.au3>#Region ### START Koda GUI section ### Form=$Form1 = GUICreate("Form1", 542, 319, 209, 110, $WS_POPUP, 0)$no = GUICtrlCreateEdit("", 56, 16, 433, 241)GUICtrlSetData(-1, "no")GUISetState(@SW_SHOW)#EndRegion ### END Koda GUI section ###While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit Case $Form1 EndSwitchWEndI tried to run this piece of code but experience an error:How can one fix the problem? Should any one file except <GUIConstants.au3> be included?Thanks. Link to comment Share on other sites More sharing options...
Authenticity Posted August 27, 2009 Share Posted August 27, 2009 (edited) You need to include WindowsConstants.au3 for that constant. A nice trick which is visibly available when you compile your script is to let AutoIt to automatically include that files by examine any not defined constant or variable. You can of-course just add it at the header and run Ctrl+F5 or just F5: #AutoIt3Wrapper_Add_Constants=y Edited August 27, 2009 by Authenticity Link to comment Share on other sites More sharing options...
Fullerene Posted August 27, 2009 Author Share Posted August 27, 2009 You need to include WindowsConstants.au3 for that constant. A nice trick which is visibly available when you compile your script is to let AutoIt to automatically include that files by examine any not defined constant or variable. You can of-course just add it at the header and run Ctrl+F5 or just F5: Thanks. The header works fine. I also tried to add #AutoIt3Wrapper_Add_Constants=y to the script but it gives the same error after compilation. Please let me know where I'm wrong here. Link to comment Share on other sites More sharing options...
martin Posted August 27, 2009 Share Posted August 27, 2009 I think you need to update your versions of Koda and SciTE. Serial port communications UDF Includes functions for binary transmission and reception.printing UDF Useful for graphs, forms, labels, reports etc.Add User Call Tips to SciTE for functions in UDFs not included with AutoIt and for your own scripts.Functions with parameters in OnEvent mode and for Hot Keys One function replaces GuiSetOnEvent, GuiCtrlSetOnEvent and HotKeySet.UDF IsConnected2 for notification of status of connected state of many urls or IPs, without slowing the script. Link to comment Share on other sites More sharing options...
Developers Jos Posted August 27, 2009 Developers Share Posted August 27, 2009 Thanks. The header works fine. I also tried to add #AutoIt3Wrapper_Add_Constants=y to the script but it gives the same error after compilation. Please let me know where I'm wrong here. You need to have the full SciTE4AutoIt3 version installed for this to work. Jos SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
Fullerene Posted August 27, 2009 Author Share Posted August 27, 2009 You need to have the full SciTE4AutoIt3 version installed for this to work.JosThanks, now everything is pretty clear. Link to comment Share on other sites More sharing options...
Fullerene Posted August 27, 2009 Author Share Posted August 27, 2009 I think you need to update your versions of Koda and SciTE.I currently use KODA of version 1.7.0.1. Do you mean it's better to switch to theLatest beta version (from 2008-10-03) ?I will try. Link to comment Share on other sites More sharing options...
Zedna Posted August 27, 2009 Share Posted August 27, 2009 (edited) I currently use KODA of version 1.7.0.1. Do you mean it's better to switch to the ?I will try.Don't hesitate and use latest Beta version, currently it's version 1.7.2.1links to latest Koda:http://www.autoitscript.com/forum/index.php?showtopic=32299http://koda.darkhost.ru/page.php?id=downloadhttp://koda.darkhost.ru/page.php?id=history Edited August 27, 2009 by Zedna Resources UDF ResourcesEx UDF AutoIt Forum Search Link to comment Share on other sites More sharing options...
Fullerene Posted August 28, 2009 Author Share Posted August 28, 2009 Don't hesitate and use latest Beta version, currently it's version 1.7.2.1links to latest Koda:http://www.autoitscript.com/forum/index.php?showtopic=32299http://koda.darkhost.ru/page.php?id=downloadhttp://koda.darkhost.ru/page.php?id=historyOK, you persuaded me. 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