thenewkid Posted December 21, 2008 Share Posted December 21, 2008 i dont know what it is but when i make a gui it wont run it just retruns a error ivee never had this problom before any one help ? thank you #include <GUIConstants.au3> #Region ### START Koda GUI section ### Form= $Form_main = GUICreate("Encoder/Decoder v0.01", 431, 363, 194, 116, -1, BitOR($WS_EX_TOOLWINDOW,$WS_EX_WINDOWEDGE)) $Edit_encode = GUICtrlCreateEdit("", 0, 0, 425, 297, BitOR($ES_AUTOVSCROLL,$ES_AUTOHSCROLL,$ES_WANTRETURN,$WS_HSCROLL,$WS_VSCROLL,$WS_BORDER), BitOR($WS_EX_CLIENTEDGE,$WS_EX_STATICEDGE)) GUICtrlSetData(-1, "") $Button_Encode = GUICtrlCreateButton("Encode", 336, 312, 83, 33, BitOR($BS_FLAT,$WS_BORDER,$WS_CLIPSIBLINGS), BitOR($WS_EX_CLIENTEDGE,$WS_EX_STATICEDGE)) $Button_Decode = GUICtrlCreateButton("Decode", 176, 312, 83, 33, BitOR($BS_FLAT,$WS_BORDER,$WS_CLIPSIBLINGS), BitOR($WS_EX_CLIENTEDGE,$WS_EX_STATICEDGE)) $Button_Exit = GUICtrlCreateButton("Exit", 8, 312, 83, 33, BitOR($BS_FLAT,$WS_BORDER,$WS_CLIPSIBLINGS), BitOR($WS_EX_CLIENTEDGE,$WS_EX_STATICEDGE)) GUISetState(@SW_SHOW) #EndRegion ### END Koda GUI section ### While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit EndSwitch WEnd some of my scripts check them out and give feedback so i can learn from them :)autoclicker a autoclickernote taker a script to take notes with Link to comment Share on other sites More sharing options...
BrettF Posted December 21, 2008 Share Posted December 21, 2008 Needed to have the correct includes. Do you have a copy of the latest SciTE and AutoIt? If not you should update (SciTE Full version) #include <GUIConstantsEx.au3> #include <WindowsConstants.au3> #include <EditConstants.au3> #include <ButtonConstants.au3> #Region ### START Koda GUI section ### Form= $Form_main = GUICreate("Encoder/Decoder v0.01", 431, 363, 194, 116, -1, BitOR($WS_EX_TOOLWINDOW,$WS_EX_WINDOWEDGE)) $Edit_encode = GUICtrlCreateEdit("", 0, 0, 425, 297, BitOR($ES_AUTOVSCROLL,$ES_AUTOHSCROLL,$ES_WANTRETURN,$WS_HSCROLL,$WS_VSCROLL,$WS_BORDER), BitOR($WS_EX_CLIENTEDGE,$WS_EX_STATICEDGE)) GUICtrlSetData(-1, "") $Button_Encode = GUICtrlCreateButton("Encode", 336, 312, 83, 33, BitOR($BS_FLAT,$WS_BORDER,$WS_CLIPSIBLINGS), BitOR($WS_EX_CLIENTEDGE,$WS_EX_STATICEDGE)) $Button_Decode = GUICtrlCreateButton("Decode", 176, 312, 83, 33, BitOR($BS_FLAT,$WS_BORDER,$WS_CLIPSIBLINGS), BitOR($WS_EX_CLIENTEDGE,$WS_EX_STATICEDGE)) $Button_Exit = GUICtrlCreateButton("Exit", 8, 312, 83, 33, BitOR($BS_FLAT,$WS_BORDER,$WS_CLIPSIBLINGS), BitOR($WS_EX_CLIENTEDGE,$WS_EX_STATICEDGE)) GUISetState(@SW_SHOW) #EndRegion ### END Koda GUI section ### While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit EndSwitch WEnd Vist my blog!UDFs: Opens The Default Mail Client | _LoginBox | Convert Reg to AU3 | BASS.au3 (BASS.dll) (Includes various BASS Libraries) | MultiLang.au3 (Multi-Language GUIs!)Example Scripts: Computer Info Telnet Server | "Secure" HTTP Server (Based on Manadar's Server)Software: AAMP- Advanced AutoIt Media Player | WorldCam | AYTU - Youtube Uploader Tutorials: Learning to Script with AutoIt V3Projects (Hardware + AutoIt): ArduinoUseful Links: AutoIt 1-2-3 | The AutoIt Downloads Section: | SciTE4AutoIt3 Full Version! Link to comment Share on other sites More sharing options...
thenewkid Posted December 21, 2008 Author Share Posted December 21, 2008 (edited) it started to happon after i updated autoit thank you Edited December 21, 2008 by thenewkid some of my scripts check them out and give feedback so i can learn from them :)autoclicker a autoclickernote taker a script to take notes with Link to comment Share on other sites More sharing options...
GEOSoft Posted December 21, 2008 Share Posted December 21, 2008 (edited) it started to happon after i updated autoitthank youIt had nothing to do with updating AutoIt unless you were updating from a very old version where the Constants were all in one file. As Brett pointed out, you did not have the required files #included.See the Script breaking changes in my sig Edited December 21, 2008 by GEOSoft 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