Sign in to follow this  
Followers 0
dufran3

More Script help

3 posts in this topic

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



GUISetOnExecnt($GUI_EVENT_CLOSE, $main1)

This is GuiSetOnEvent :)

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

that was a typo, the error said event, not excent

Edited by dufran3

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  
Followers 0