Sign in to follow this  
Followers 0
thenewkid

haveing a problom with guis

4 posts in this topic

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

Share this post


Link to post
Share on other sites



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

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

it started to happon after i updated autoit

thank you

Edited 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

Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

it started to happon after i updated autoit

thank you

It 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 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!"

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