Jump to content
Sign in to follow this  
dufran3

More Script help

Recommended Posts

dufran3

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
Kreatorul

GUISetOnExecnt($GUI_EVENT_CLOSE, $main1)

This is GuiSetOnEvent :)

Share this post


Link to post
Share on other sites
dufran3

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.