Jump to content
Sign in to follow this  
BlueDuckYT

GUI_EVENT_CLOSE not Declared error

Recommended Posts

Whenever I try to run a Koda Designed GUI script the same error occurs.

 

"Variable used without being declared"

 

It always says one of the GUI_EVENT_-----

 

Here is my script, please help me and tell me what I did wrong.

 

GUICtrlSetOnEvent(-1, "VegansClick")
$DASDAS = GUICtrlCreateMenu("DASDAS")
GUICtrlSetOnEvent(-1, "DASDASClick")
GUISetIcon("C:\Users\Max\Downloads\RobloxPlayerLauncher.exe", -1)
GUISetOnEvent($GUI_EVENT_CLOSE, "VeganClose")
GUISetOnEvent($GUI_EVENT_MINIMIZE, "VeganMinimize")
GUISetOnEvent($GUI_EVENT_MAXIMIZE, "VeganMaximize")
GUISetOnEvent($GUI_EVENT_RESTORE, "VeganRestore")
$GENDERBUTTON = GUICtrlCreateButton("CLIK ME", 184, 112, 233, 129)
GUICtrlSetFont(-1, 24, 400, 0, "Comic Sans MS")
GUICtrlSetColor(-1, 0x0066CC)
GUICtrlSetOnEvent(-1, "Button1Click")
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###

While 1
    Sleep(100)
WEnd

Func Button1Click()

EndFunc
Func DASDASClick()

EndFunc
Func VeganClose()

EndFunc
Func VeganMaximize()

EndFunc
Func VeganMinimize()

EndFunc
Func VeganRestore()

EndFunc
Func VegansClick()

EndFunc

Share this post


Link to post
Share on other sites

Whenever I try to run a Koda Designed GUI script the same error occurs.

 

"Variable used without being declared"

 

It always says one of the GUI_EVENT_-----

 

Here is my script, please help me and tell me what I did wrong.

 

Edited by JLogan3o13

Share this post


Link to post
Share on other sites

@BlueDuckYT based on your code it looks like you are automating a game. Please review the forum rules, especially the part on game automation, before posting again. See you soon with a legitimate question hopefully.


"Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball

How to get your question answered on this forum!

Share this post


Link to post
Share on other sites

Did Koda include these at the top of the generated code?

#include <GUIConstantsEx.au3>
#include <WindowConstants.au3>

 


A cross-platform implementation of the AutoIt language

My contributions to the AutoIt Community ##AutoIt at freenode, real-time chat

3fHNZJ.gif

Spoiler

If I have hurt or offended you in anyway, Please accept my apologies, I never (regardless of the situation) intend to do that to anybody.

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...