The UDF function SetOnEventA can replace the inbuilt AutoIt functions GuiCtrlSetOnEvent, GuiSetOnEvent, HotKeySet and TraySetOnEvent providing an easy way for an event to call functions with parameters. Example1 - no parameters GuiCtrlCreateButton("Open",20,20,80,22) SetOnEventA(-1,"OpenIt");same as using GuiCtrlSetOnEvent because no parameters listed for the function "OpenIt" Example 2 - 3 parameters Parameters are added to the SetOnEvent function in 2 parts. The first part tells SetOnEvent