AutoPlay Media Studio 9

Application.SetDialogScript

Application.SetDialogScript

This is the first topic This is the last topic  

Application.SetDialogScript

This is the first topic This is the last topic  

OverviewExamples

Application.SetDialogScript (

string DialogName,

string EventName,

string Script )

Example 1

Application.SetDialogScript("Dialog2", "On Show", "Application.Exit()");

Sets the script for the 'On Show' event of 'Dialog2' to Application.Exit.

Example 2

-- Get the script existing in the event

sPreviousScript = Application.GetDialogScript ("Dialog1", "On Preload");

 

-- Append an Application.Exit action to the end of the script

sNewScript = sPreviousScript .. "\r\n" .. "Application.Exit()";

 

-- Set the event's script

Application.SetDialogScript("Dialog1", "On Preload", sNewScript);

Appends an Application.Exit action to the end of the script located in the 'On Preload' event of 'Dialog1'.

See also: Related Actions


Learn More: Indigo Rose Software - AutoPlay Media Studio - Buy Now - Contact Us