BlueDuckYT Posted July 12, 2017 Share Posted July 12, 2017 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 comment Share on other sites More sharing options...
BlueDuckYT Posted July 12, 2017 Author Share Posted July 12, 2017 (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 July 12, 2017 by JLogan3o13 Link to comment Share on other sites More sharing options...
BlueDuckYT Posted July 12, 2017 Author Share Posted July 12, 2017 It somehow duplicated, sorry. Unintentional. Link to comment Share on other sites More sharing options...
Moderators JLogan3o13 Posted July 12, 2017 Moderators Share Posted July 12, 2017 @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 comment Share on other sites More sharing options...
TheDcoder Posted July 12, 2017 Share Posted July 12, 2017 Did Koda include these at the top of the generated code? #include <GUIConstantsEx.au3> #include <WindowConstants.au3> EasyCodeIt - A cross-platform AutoIt implementation - Fund the development! (GitHub will double your donations for a limited time) DcodingTheWeb Forum - Follow for updates and Join for discussion Link to comment Share on other sites More sharing options...
Recommended Posts