<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="FeedCreator 1.8" -->
<?xml-stylesheet href="https://www.bu22.com/wiki/lib/exe/css.php?s=feed" type="text/css"?>
<rdf:RDF
    xmlns="http://purl.org/rss/1.0/"
    xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
    xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
    xmlns:dc="http://purl.org/dc/elements/1.1/">
    <channel rdf:about="https://www.bu22.com/wiki/feed.php">
        <title> gemus_script_reference:functions</title>
        <description></description>
        <link>https://www.bu22.com/wiki/</link>
        <image rdf:resource="https://www.bu22.com/wiki/lib/tpl/dokuwiki/images/favicon.ico" />
       <dc:date>2026-04-30T06:17:56+00:00</dc:date>
        <items>
            <rdf:Seq>
                <rdf:li rdf:resource="https://www.bu22.com/wiki/gemus_script_reference/functions/add_clp?rev=1696428941&amp;do=diff"/>
                <rdf:li rdf:resource="https://www.bu22.com/wiki/gemus_script_reference/functions/add_clp2?rev=1696428941&amp;do=diff"/>
                <rdf:li rdf:resource="https://www.bu22.com/wiki/gemus_script_reference/functions/clear_clp?rev=1696428941&amp;do=diff"/>
                <rdf:li rdf:resource="https://www.bu22.com/wiki/gemus_script_reference/functions/edit_clp?rev=1696428941&amp;do=diff"/>
                <rdf:li rdf:resource="https://www.bu22.com/wiki/gemus_script_reference/functions/home?rev=1696428941&amp;do=diff"/>
                <rdf:li rdf:resource="https://www.bu22.com/wiki/gemus_script_reference/functions/kill_process?rev=1696428941&amp;do=diff"/>
                <rdf:li rdf:resource="https://www.bu22.com/wiki/gemus_script_reference/functions/run_emulator?rev=1696428941&amp;do=diff"/>
                <rdf:li rdf:resource="https://www.bu22.com/wiki/gemus_script_reference/functions/run_emulator_send_keys?rev=1696428941&amp;do=diff"/>
                <rdf:li rdf:resource="https://www.bu22.com/wiki/gemus_script_reference/functions/run_gamefile?rev=1696428941&amp;do=diff"/>
                <rdf:li rdf:resource="https://www.bu22.com/wiki/gemus_script_reference/functions/run_program?rev=1696428941&amp;do=diff"/>
                <rdf:li rdf:resource="https://www.bu22.com/wiki/gemus_script_reference/functions/set_cfg_item?rev=1696428941&amp;do=diff"/>
                <rdf:li rdf:resource="https://www.bu22.com/wiki/gemus_script_reference/functions/set_cfg_value?rev=1696428941&amp;do=diff"/>
                <rdf:li rdf:resource="https://www.bu22.com/wiki/gemus_script_reference/functions/set_ini_value?rev=1696428941&amp;do=diff"/>
                <rdf:li rdf:resource="https://www.bu22.com/wiki/gemus_script_reference/functions/show_kv?rev=1696428941&amp;do=diff"/>
                <rdf:li rdf:resource="https://www.bu22.com/wiki/gemus_script_reference/functions/show_message?rev=1696428941&amp;do=diff"/>
                <rdf:li rdf:resource="https://www.bu22.com/wiki/gemus_script_reference/functions/wait?rev=1696428941&amp;do=diff"/>
            </rdf:Seq>
        </items>
    </channel>
    <image rdf:about="https://www.bu22.com/wiki/lib/tpl/dokuwiki/images/favicon.ico">
        <title></title>
        <link>https://www.bu22.com/wiki/</link>
        <url>https://www.bu22.com/wiki/lib/tpl/dokuwiki/images/favicon.ico</url>
    </image>
    <item rdf:about="https://www.bu22.com/wiki/gemus_script_reference/functions/add_clp?rev=1696428941&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2023-10-04T14:15:41+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>gemus_script_reference:functions:add_clp</title>
        <link>https://www.bu22.com/wiki/gemus_script_reference/functions/add_clp?rev=1696428941&amp;do=diff</link>
        <description>Back to Script Function Reference

Add_CLP()

The Add_CLP() function adds text to the emulator&#039;s command line arguments. It automatically adds quotes around long filenames if they contain spaces. If you do not wish to have the quotes automatically added, use Add_CLP2().

Syntax

Add_CLP(text)</description>
    </item>
    <item rdf:about="https://www.bu22.com/wiki/gemus_script_reference/functions/add_clp2?rev=1696428941&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2023-10-04T14:15:41+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>gemus_script_reference:functions:add_clp2</title>
        <link>https://www.bu22.com/wiki/gemus_script_reference/functions/add_clp2?rev=1696428941&amp;do=diff</link>
        <description>Back to Script Function Reference

Add_CLP2()

The Add_CLP2() function adds text to the emulator&#039;s command line arguments. It does not automatically add quotes around long filenames if they contain spaces. If you wish to have the quotes automatically added, use Add_CLP().

Syntax

Add_CLP2(text)</description>
    </item>
    <item rdf:about="https://www.bu22.com/wiki/gemus_script_reference/functions/clear_clp?rev=1696428941&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2023-10-04T14:15:41+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>gemus_script_reference:functions:clear_clp</title>
        <link>https://www.bu22.com/wiki/gemus_script_reference/functions/clear_clp?rev=1696428941&amp;do=diff</link>
        <description>Back to Script Function Reference

Clear_CLP()

The Clear_CLP() function clears the contents of the emulator&#039;s command line (previously set with Add_CLP() or Add_CLP2()).

Syntax

Clear_CLP()

Arguments

None

Example


Clear_CLP()


Remarks

You probably won&#039;t need this much, unless you are running two emulators, one after the other, or something similar.</description>
    </item>
    <item rdf:about="https://www.bu22.com/wiki/gemus_script_reference/functions/edit_clp?rev=1696428941&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2023-10-04T14:15:41+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>gemus_script_reference:functions:edit_clp</title>
        <link>https://www.bu22.com/wiki/gemus_script_reference/functions/edit_clp?rev=1696428941&amp;do=diff</link>
        <description>Back to Script Function Reference

Edit_CLP()

The Edit_CLP() function displays the current emulator command line for the user to edit.

Syntax

Edit_CLP(prompt)

Arguments
 Argument  Required  Description  prompt  Yes  The prompt you want to display to the user. Any script environment variables found in</description>
    </item>
    <item rdf:about="https://www.bu22.com/wiki/gemus_script_reference/functions/home?rev=1696428941&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2023-10-04T14:15:41+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>gemus_script_reference:functions:home</title>
        <link>https://www.bu22.com/wiki/gemus_script_reference/functions/home?rev=1696428941&amp;do=diff</link>
        <description>GEMUS Script Function Reference

	*  Add_CLP()
	*  Add_CLP2()
	*  Clear_CLP()
	*  Edit_CLP()
	*  Kill_Process()
	*  Run_Emulator()
	*  Run_Emulator_Send_Keys()
	*  Run_GameFile()
	*  Run_Program()
	*  Set_CFG_Item()
	*  Set_CFG_Value()
	*  Set_INI_Value()
	*  Show_KV()
	*  Show_Message()
	*  Wait()</description>
    </item>
    <item rdf:about="https://www.bu22.com/wiki/gemus_script_reference/functions/kill_process?rev=1696428941&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2023-10-04T14:15:41+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>gemus_script_reference:functions:kill_process</title>
        <link>https://www.bu22.com/wiki/gemus_script_reference/functions/kill_process?rev=1696428941&amp;do=diff</link>
        <description>Back to Script Function Reference

Kill_Process()

The Kill_Process() function kills all running processes matching the specified filename.

Syntax

Kill_Process(filename)

Arguments
 Argument  Required  Description  filename  Yes  The filename of the process(es) you want to kill. If</description>
    </item>
    <item rdf:about="https://www.bu22.com/wiki/gemus_script_reference/functions/run_emulator?rev=1696428941&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2023-10-04T14:15:41+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>gemus_script_reference:functions:run_emulator</title>
        <link>https://www.bu22.com/wiki/gemus_script_reference/functions/run_emulator?rev=1696428941&amp;do=diff</link>
        <description>Back to Script Function Reference

Run_Emulator()

The Run_Emulator() function runs the emulator with any command line arguments that have previously been set using the Add_CLP() or Add_CLP2() functions.

Syntax

Run_Emulator([DOSCLOSE])

Arguments
 Argument  Required  Description  DOSCLOSE  No</description>
    </item>
    <item rdf:about="https://www.bu22.com/wiki/gemus_script_reference/functions/run_emulator_send_keys?rev=1696428941&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2023-10-04T14:15:41+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>gemus_script_reference:functions:run_emulator_send_keys</title>
        <link>https://www.bu22.com/wiki/gemus_script_reference/functions/run_emulator_send_keys?rev=1696428941&amp;do=diff</link>
        <description>Back to Script Function Reference

Run_Emulator_Send_Keys()

The Run_Emulator_Send_Keys() function runs the emulator with any command line arguments that have previously been set using the Add_CLP() or Add_CLP2() functions, then sends the specified keystrokes to it.

Syntax

Run_Emulator_Send_Keys(keystrokes||duration||[DOSCLOSE])</description>
    </item>
    <item rdf:about="https://www.bu22.com/wiki/gemus_script_reference/functions/run_gamefile?rev=1696428941&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2023-10-04T14:15:41+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>gemus_script_reference:functions:run_gamefile</title>
        <link>https://www.bu22.com/wiki/gemus_script_reference/functions/run_gamefile?rev=1696428941&amp;do=diff</link>
        <description>Back to Script Function Reference

Run_GameFile()

Similar to the Run_Emulator() function, this function will run the game file, not the configured emulator. Any command line arguments that have previously been set using the Add_CLP() or Add_CLP2() functions will be applied to this function provided that the game file&#039;s type is .exe, .com or .bat).</description>
    </item>
    <item rdf:about="https://www.bu22.com/wiki/gemus_script_reference/functions/run_program?rev=1696428941&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2023-10-04T14:15:41+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>gemus_script_reference:functions:run_program</title>
        <link>https://www.bu22.com/wiki/gemus_script_reference/functions/run_program?rev=1696428941&amp;do=diff</link>
        <description>Back to Script Function Reference

Run_Program()

The Run_Program() function runs a program/application and optionally waits until it terminates before continuing with the script.

Syntax

Run_Program(filenum/filename||clp||waitflag)

Arguments
 Argument  Required  Description</description>
    </item>
    <item rdf:about="https://www.bu22.com/wiki/gemus_script_reference/functions/set_cfg_item?rev=1696428941&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2023-10-04T14:15:41+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>gemus_script_reference:functions:set_cfg_item</title>
        <link>https://www.bu22.com/wiki/gemus_script_reference/functions/set_cfg_item?rev=1696428941&amp;do=diff</link>
        <description>Back to Script Function Reference

Set_CFG_Item()

The Set_CFG_Item() function can be used for manipulating configuration files. You can set single values, or keys and values with a specific delimeter. If you only need to set keys and values (in the form key=value), you can use the simpler</description>
    </item>
    <item rdf:about="https://www.bu22.com/wiki/gemus_script_reference/functions/set_cfg_value?rev=1696428941&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2023-10-04T14:15:41+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>gemus_script_reference:functions:set_cfg_value</title>
        <link>https://www.bu22.com/wiki/gemus_script_reference/functions/set_cfg_value?rev=1696428941&amp;do=diff</link>
        <description>Back to Script Function Reference

Set_CFG_Value()

The Set_CFG_Value() function can be used for manipulating configuration files by setting key=value pairs. If you need more control over what is written to the configuration file, see Set_CFG_Item(). If you need to set values in a standard Windows INI file (</description>
    </item>
    <item rdf:about="https://www.bu22.com/wiki/gemus_script_reference/functions/set_ini_value?rev=1696428941&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2023-10-04T14:15:41+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>gemus_script_reference:functions:set_ini_value</title>
        <link>https://www.bu22.com/wiki/gemus_script_reference/functions/set_ini_value?rev=1696428941&amp;do=diff</link>
        <description>Back to Script Function Reference

Set_INI_Value()

The Set_INI_Value() function can be used for manipulating Windows INI files. If you need to set values in [sections] containing key=value pairs, then this is the function you need. If you only need to set keys and values (in the form</description>
    </item>
    <item rdf:about="https://www.bu22.com/wiki/gemus_script_reference/functions/show_kv?rev=1696428941&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2023-10-04T14:15:41+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>gemus_script_reference:functions:show_kv</title>
        <link>https://www.bu22.com/wiki/gemus_script_reference/functions/show_kv?rev=1696428941&amp;do=diff</link>
        <description>Back to Script Function Reference

Show_KV()

The Show_KV() function displays the Key=Value pairs applicable to the running script.

Syntax

Show_KV()

Arguments

None

Example


Show_KV()


Remarks

You can also “peek” which Key=Value pairs will be applicable to a running script from the Key=Value Pairs Editor (press F2 from the main GameBase window).</description>
    </item>
    <item rdf:about="https://www.bu22.com/wiki/gemus_script_reference/functions/show_message?rev=1696428941&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2023-10-04T14:15:41+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>gemus_script_reference:functions:show_message</title>
        <link>https://www.bu22.com/wiki/gemus_script_reference/functions/show_message?rev=1696428941&amp;do=diff</link>
        <description>Back to Script Function Reference

Show_Message()

The Show_Message() function displays a message to the user and waits until the user clicks an &#039;OK&#039; button before continuing.

Syntax

Show_Message(message)

Arguments
 Argument  Required  Description  message  Yes  The message you want to display. There is one preset message, which you can display by setting</description>
    </item>
    <item rdf:about="https://www.bu22.com/wiki/gemus_script_reference/functions/wait?rev=1696428941&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2023-10-04T14:15:41+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>gemus_script_reference:functions:wait</title>
        <link>https://www.bu22.com/wiki/gemus_script_reference/functions/wait?rev=1696428941&amp;do=diff</link>
        <description>You are here: home » gemus_script_reference » functions » wait

This page is read only. You can view the source, but not change it. Ask your administrator if you think this is wrong.

Back to Script Function Reference

Wait()

The Wait() function pauses the running script for a specified number of milliseconds.</description>
    </item>
</rdf:RDF>
