Jump to content

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

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
Link to post
Share on other sites
  • Moderators

@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!

Link to post
Share on other sites
Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...