BlueDuckYT

GUI_EVENT_CLOSE not Declared error

5 posts in this topic

#1 ·  Posted

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



#2 ·  Posted (edited)

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

#3 ·  Posted

It somehow duplicated, sorry.  Unintentional.

Share this post


Link to post
Share on other sites

#4 ·  Posted

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


√-1 2^3 ∑ π, and it was delicious!

Share this post


Link to post
Share on other sites

#5 ·  Posted

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

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

 


AutoIt.4.Life Clubrooms - Life is like a Donut (secret key)

Spoiler

My contributions to the AutoIt Community

Some messages & Apologizes:

If I hurt you, Please accept my apologies, I never (regardless of the situation) mean to hurt anybody!!!

Also, I am very busy with my project so I will appear in the last row of the online list, if you want to contact me: Email@TheDcoder.xyz

Or you can have a nice chat with me in freenode, I use the same nick on freenode too!

3fHNZJ.gif

PLEASE JOIN ##AutoIt AND HELP THE IRC AUTOIT COMMUNITY!

Share this post


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