Jump to content
Sign in to follow this  
dufran3

More Script help

Recommended Posts

I get an error message when clicking the exit button on my GUI, it still closes, but give this error every time. Help anyone?

Line 0 (File "H:\file.exe"):

GUISetOnExecnt($GUI_EVENT_CLOSE, $main1)

Error:Unknown function name

Here is a snippet.

$exit1 = XSkinButton("Exit",315,360,75,25,"ExitButton")

GuiCtrlSetOnEvent($exit1, "ExitButton")

Func ExitButton()

GUISetOnEvent($GUI_EVENT_CLOSE, $main1)

EndFunc

Anyhelp would be greatly appreciated.

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  

×
×
  • Create New...