Use the Event-to-script connection - Settings window to create a connection that will execute a script whenever a specified event occurs.
Event-to-script connections cause a method to run whenever the connected event occurs. For example, an event-to-script connection might connect to the clicked event of a push button. The event can be connected to a method that brings up a message box.
Event-to-script connections provide a way to implement application behavior that a single part of the composite part cannot logically perform.
Fields
Push buttons
Tasks