<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>https://fmplugins.idma.nz/index.php?action=history&amp;feed=atom&amp;title=FM7_StartScript_Control</id>
		<title>FM7 StartScript Control - Revision history</title>
		<link rel="self" type="application/atom+xml" href="https://fmplugins.idma.nz/index.php?action=history&amp;feed=atom&amp;title=FM7_StartScript_Control"/>
		<link rel="alternate" type="text/html" href="https://fmplugins.idma.nz/index.php?title=FM7_StartScript_Control&amp;action=history"/>
		<updated>2026-04-07T03:43:17Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.27.1</generator>

	<entry>
		<id>https://fmplugins.idma.nz/index.php?title=FM7_StartScript_Control&amp;diff=246&amp;oldid=prev</id>
		<title>Jake: New page: The script execution order for scripts queued with the FMX_StartScript function under FM7 is incorrect.  When you queue up a script with FMX_StartScript, it is always added to the end of t...</title>
		<link rel="alternate" type="text/html" href="https://fmplugins.idma.nz/index.php?title=FM7_StartScript_Control&amp;diff=246&amp;oldid=prev"/>
				<updated>2009-01-28T21:49:40Z</updated>
		
		<summary type="html">&lt;p&gt;New page: The script execution order for scripts queued with the FMX_StartScript function under FM7 is incorrect.  When you queue up a script with FMX_StartScript, it is always added to the end of t...&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;The script execution order for scripts queued with the FMX_StartScript function under FM7 is incorrect.  When you queue up a script with FMX_StartScript, it is always added to the end of the script queue.  When there is an actively running script at the time you call FMX_StartScript, this behaves the same exact way in all versions of FM 7 through 10.  However, if there is a script that is paused at the time you call FMX_StartScript, the behavior is incorrect and will cause confusion if you don&amp;#039;t understand what is going on.&lt;br /&gt;
&lt;br /&gt;
To illustrate this, let&amp;#039;s say we have a database with 3 scripts in it, MasterScript, PausingScript, and PluginScript.  The MasterScript calls PausingScript, and PausingScript has a &amp;quot;Pause [Indefinitely]&amp;quot; in it.  PluginScript is called by your plug-in while the PausingScript is paused.  Depending on the &amp;quot;control&amp;quot; parameter you pass to FMX_StartScript, this is what will happen:&lt;br /&gt;
&lt;br /&gt;
;&amp;quot;Halt&amp;quot;&lt;br /&gt;
:Both MasterScript and PausingScript will halt and PluginScript will run.&lt;br /&gt;
&lt;br /&gt;
;&amp;quot;Exit&amp;quot;&lt;br /&gt;
:PausingScript will exit causing MasterScript to complete.  PluginScript will then run after MasterScript has completed.&lt;br /&gt;
&lt;br /&gt;
;&amp;quot;Resume&amp;quot;&lt;br /&gt;
:PausingScript will stop pausing and run to completion.  MasterScript will then run to completion.  PluginScript will then run.&lt;br /&gt;
&lt;br /&gt;
;&amp;quot;Pause&amp;quot;&lt;br /&gt;
:Nothing will appear to happen at all.  PausingScript will continue to be in a paused state until something else resumes it, such as pressing the &amp;quot;Continue&amp;quot; button in the Status Area.  When PausingScript is continued, it will run to completion.  MasterScript will run to completion.  Then finally PluginScript will run.&lt;br /&gt;
&lt;br /&gt;
All versions of FM 8 and up do not exhibit this behavior and work as expected, calling PluginScript before Halting, Exiting, Resuming, or Pausing the current script instead of after.&lt;/div&gt;</summary>
		<author><name>Jake</name></author>	</entry>

	</feed>