1755 lines
209 KiB
HTML
Executable File
1755 lines
209 KiB
HTML
Executable File
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="generator" content="TempleOS V5.03">
|
|
<meta name="viewport" content="width=device-width">
|
|
<link rel="stylesheet" href="/style/templeos.css">
|
|
<script src="/script/templeos.js"></script>
|
|
<style type="text/css">
|
|
.cF0{color:#000000;background-color:#ffffff;}
|
|
.cF1{color:#0000aa;background-color:#ffffff;}
|
|
.cF2{color:#00aa00;background-color:#ffffff;}
|
|
.cF3{color:#00aaaa;background-color:#ffffff;}
|
|
.cF4{color:#aa0000;background-color:#ffffff;}
|
|
.cF5{color:#aa00aa;background-color:#ffffff;}
|
|
.cF6{color:#aa5500;background-color:#ffffff;}
|
|
.cF7{color:#aaaaaa;background-color:#ffffff;}
|
|
.cF8{color:#555555;background-color:#ffffff;}
|
|
.cF9{color:#5555ff;background-color:#ffffff;}
|
|
.cFA{color:#55ff55;background-color:#ffffff;}
|
|
.cFB{color:#55ffff;background-color:#ffffff;}
|
|
.cFC{color:#ff5555;background-color:#ffffff;}
|
|
.cFD{color:#ff55ff;background-color:#ffffff;}
|
|
.cFE{color:#ffff55;background-color:#ffffff;}
|
|
.cFF{color:#ffffff;background-color:#ffffff;}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<pre id="content">
|
|
<a name="l1"></a><span class=cF9>I64</span><span class=cF0> ts_i;
|
|
<a name="l2"></a></span><span class=cF1>F64</span><span class=cF0> ts_t0;
|
|
<a name="l3"></a>
|
|
<a name="l4"></a></span><span class=cF1>U0</span><span class=cF0> TS(</span><span class=cF1>U8</span><span class=cF0> *desc)
|
|
<a name="l5"></a>{</span><span class=cF2>//We must set these because an app can call </span><a href="/Wb/Kernel/KMisc.HC.HTML#l322"><span class=cF4>ProgressBarsRst</span></a><span class=cF2>.</span><span class=cF0>
|
|
<a name="l6"></a> </span><span class=cF1>U8</span><span class=cF0> *st=</span><span class=cF5>MStrPrint</span><span class=cF0>(</span><span class=cF6>"%d. %s"</span><span class=cF0>,ts_i,desc);
|
|
<a name="l7"></a> </span><span class=cF1>if</span><span class=cF0> (*desc)
|
|
<a name="l8"></a> </span><span class=cFB>progress3_max</span><span class=cF0>=1;
|
|
<a name="l9"></a> </span><span class=cF1>else</span><span class=cF0>
|
|
<a name="l10"></a> </span><span class=cFB>progress3_max</span><span class=cF0>=0;
|
|
<a name="l11"></a> </span><span class=cF5>StrPrint</span><span class=cF0>(</span><span class=cFB>progress3_desc</span><span class=cF0>,</span><span class=cF6>"%*hc%s"</span><span class=cF0>,
|
|
<a name="l12"></a> </span><span class=cF7>(</span><span class=cF3>PROGRESS_DESC_LEN</span><span class=cF0>-</span><span class=cF5>StrLen</span><span class=cF0>(st)</span><span class=cF7>)</span><span class=cF0>>>1,</span><span class=cF3>CH_SPACE</span><span class=cF0>,st);
|
|
<a name="l13"></a> </span><span class=cF5>Free</span><span class=cF0>(st);
|
|
<a name="l14"></a> </span><span class=cFB>progress4</span><span class=cF0>=ts_i++;
|
|
<a name="l15"></a> </span><span class=cFB>progress4_max</span><span class=cF0>=171;
|
|
<a name="l16"></a> </span><span class=cFB>progress4_t0</span><span class=cF0>=ts_t0;
|
|
<a name="l17"></a> *</span><span class=cFB>progress4_desc</span><span class=cF0>=0;
|
|
<a name="l18"></a> </span><span class=cF5>RegExe</span><span class=cF0>(</span><span class=cF6>"TempleOS/OSTestSuite"</span><span class=cF0>);
|
|
<a name="l19"></a>}
|
|
<a name="l20"></a>
|
|
<a name="l21"></a></span><span class=cF1>U0</span><span class=cF0> TSFile(</span><span class=cF1>U8</span><span class=cF0> *name,</span><span class=cF9>I64</span><span class=cF0> mS=750)
|
|
<a name="l22"></a>{
|
|
<a name="l23"></a> </span><span class=cF9>CTask</span><span class=cF0> *task=</span><span class=cF5>User</span><span class=cF0>(</span><span class=cF6>"#include \"%s\";Sleep(%d);\n"</span><span class=cF0>,name,mS);
|
|
<a name="l24"></a> </span><span class=cF5>DeathWait</span><span class=cF0>(&task,</span><span class=cF3>TRUE</span><span class=cF0>);
|
|
<a name="l25"></a>}
|
|
<a name="l26"></a>
|
|
<a name="l27"></a></span><span class=cF1>U0</span><span class=cF0> TSFileChar(</span><span class=cF1>U8</span><span class=cF0> *name,</span><span class=cF9>I64</span><span class=cF0> mS=750,</span><span class=cF9>I64</span><span class=cF0> ch=</span><span class=cF3>CH_SPACE</span><span class=cF0>,</span><span class=cF1>Bool</span><span class=cF0> wait=</span><span class=cF3>TRUE</span><span class=cF0>)
|
|
<a name="l28"></a>{
|
|
<a name="l29"></a> </span><span class=cF9>CTask</span><span class=cF0> *task=</span><span class=cF5>User</span><span class=cF0>;
|
|
<a name="l30"></a> </span><span class=cF1>if</span><span class=cF0> (wait)
|
|
<a name="l31"></a> </span><span class=cF5>XTalkWait</span><span class=cF0>(task,</span><span class=cF6>"#include \"%s\";\n"</span><span class=cF0>,name);
|
|
<a name="l32"></a> </span><span class=cF1>else</span><span class=cF0>
|
|
<a name="l33"></a> </span><span class=cF5>XTalk</span><span class=cF0>(task,</span><span class=cF6>"#include \"%s\";\n"</span><span class=cF0>,name);
|
|
<a name="l34"></a> </span><span class=cF5>Sleep</span><span class=cF0>(mS);
|
|
<a name="l35"></a> </span><span class=cF1>if</span><span class=cF0> (ch)
|
|
<a name="l36"></a> </span><span class=cF5>PostMsgWait</span><span class=cF0>(task,</span><span class=cF3>MSG_KEY_DOWN_UP</span><span class=cF0>,ch,0);
|
|
<a name="l37"></a> </span><span class=cF5>DeathWait</span><span class=cF0>(&task,</span><span class=cF3>TRUE</span><span class=cF0>);
|
|
<a name="l38"></a>}
|
|
<a name="l39"></a>
|
|
<a name="l40"></a></span><span class=cF2>/*</span><span class=cF0>
|
|
<a name="l41"></a></span><span class=cF2>U0 DoMouseDemo()</span><span class=cF0>
|
|
<a name="l42"></a></span><span class=cF2>{</span><span class=cF0>
|
|
<a name="l43"></a></span><span class=cF2> XTalkWait(task,"#include \"::/Demo/Graphics/MouseDemo\";\n");</span><span class=cF0>
|
|
<a name="l44"></a></span><span class=cF2>}</span><span class=cF0>
|
|
<a name="l45"></a></span><span class=cF2>U0 DoPullDownMenu()</span><span class=cF0>
|
|
<a name="l46"></a></span><span class=cF2>{</span><span class=cF0>
|
|
<a name="l47"></a></span><span class=cF2> XTalkWait(task,"#include \"::/Demo/PullDownMenu\";\n");</span><span class=cF0>
|
|
<a name="l48"></a></span><span class=cF2>}</span><span class=cF0>
|
|
<a name="l49"></a></span><span class=cF2>U0 DoTicTacToe()</span><span class=cF0>
|
|
<a name="l50"></a></span><span class=cF2>{</span><span class=cF0>
|
|
<a name="l51"></a></span><span class=cF2> XTalkWait(task,"#include \"::/Demo/Games/TicTacToe\";\n");</span><span class=cF0>
|
|
<a name="l52"></a></span><span class=cF2>}</span><span class=cF0>
|
|
<a name="l53"></a></span><span class=cF2>U0 DoLife()</span><span class=cF0>
|
|
<a name="l54"></a></span><span class=cF2>{</span><span class=cF0>
|
|
<a name="l55"></a></span><span class=cF2> XTalkWait(task,"#include \"::/Demo/Graphics/Life\";\n");</span><span class=cF0>
|
|
<a name="l56"></a></span><span class=cF2>}</span><span class=cF0>
|
|
<a name="l57"></a></span><span class=cF2>U0 DoZing()</span><span class=cF0>
|
|
<a name="l58"></a></span><span class=cF2>{</span><span class=cF0>
|
|
<a name="l59"></a></span><span class=cF2> XTalkWait(task,"#include \"::/Demo/Games/Zing\";\n");</span><span class=cF0>
|
|
<a name="l60"></a></span><span class=cF2>}</span><span class=cF0>
|
|
<a name="l61"></a></span><span class=cF2>U0 DoSlider()</span><span class=cF0>
|
|
<a name="l62"></a></span><span class=cF2>{</span><span class=cF0>
|
|
<a name="l63"></a></span><span class=cF2> XTalkWait(task,"#include \"::/Demo/Graphics/Slider\";\n");</span><span class=cF0>
|
|
<a name="l64"></a></span><span class=cF2>}</span><span class=cF0>
|
|
<a name="l65"></a></span><span class=cF2>U0 DoScrollBars()</span><span class=cF0>
|
|
<a name="l66"></a></span><span class=cF2>{</span><span class=cF0>
|
|
<a name="l67"></a></span><span class=cF2> XTalkWait(task,"#include \"::/Demo/Graphics/ScrollBars\";\n");</span><span class=cF0>
|
|
<a name="l68"></a></span><span class=cF2>}</span><span class=cF0>
|
|
<a name="l69"></a></span><span class=cF2>U0 DoWhap()</span><span class=cF0>
|
|
<a name="l70"></a></span><span class=cF2>{</span><span class=cF0>
|
|
<a name="l71"></a></span><span class=cF2> XTalkWait(task,"#include \"::/Demo/Games/Whap\";\n");</span><span class=cF0>
|
|
<a name="l72"></a></span><span class=cF2>}</span><span class=cF0>
|
|
<a name="l73"></a></span><span class=cF2>U0 DoDataBase()</span><span class=cF0>
|
|
<a name="l74"></a></span><span class=cF2>{</span><span class=cF0>
|
|
<a name="l75"></a></span><span class=cF2> XTalkWait(task,"#include \"::/Demo/Dsk/DataBase\";\n");</span><span class=cF0>
|
|
<a name="l76"></a></span><span class=cF2>}</span><span class=cF0>
|
|
<a name="l77"></a></span><span class=cF2>U0 DoDskRaw()</span><span class=cF0>
|
|
<a name="l78"></a></span><span class=cF2>{</span><span class=cF0>
|
|
<a name="l79"></a></span><span class=cF2> XTalkWait(task,"#include \"::/Demo/Dsk/DskRaw\";\n");</span><span class=cF0>
|
|
<a name="l80"></a></span><span class=cF2>}</span><span class=cF0>
|
|
<a name="l81"></a></span><span class=cF2>U0 DoTimeClock()</span><span class=cF0>
|
|
<a name="l82"></a></span><span class=cF2>{</span><span class=cF0>
|
|
<a name="l83"></a></span><span class=cF2> XTalkWait(task,"#include \"::/Apps/TimeClock\";\n");</span><span class=cF0>
|
|
<a name="l84"></a></span><span class=cF2>}</span><span class=cF0>
|
|
<a name="l85"></a></span><span class=cF2>U0 DoLectures()</span><span class=cF0>
|
|
<a name="l86"></a></span><span class=cF2>{</span><span class=cF0>
|
|
<a name="l87"></a></span><span class=cF2> XTalkWait(task,"#include \"::/Demo/Lectures\";\n");</span><span class=cF0>
|
|
<a name="l88"></a></span><span class=cF2>}</span><span class=cF0>
|
|
<a name="l89"></a></span><span class=cF2>U0 DoInFile()</span><span class=cF0>
|
|
<a name="l90"></a></span><span class=cF2>{</span><span class=cF0>
|
|
<a name="l91"></a></span><span class=cF2> XTalkWait(task,"#include \"::/Demo/InFile\";\n");</span><span class=cF0>
|
|
<a name="l92"></a></span><span class=cF2>}</span><span class=cF0>
|
|
<a name="l93"></a></span><span class=cF2>U0 DoSpy()</span><span class=cF0>
|
|
<a name="l94"></a></span><span class=cF2>{</span><span class=cF0>
|
|
<a name="l95"></a></span><span class=cF2> XTalkWait(task,"#include \"::/Demo/Spy\";\n");</span><span class=cF0>
|
|
<a name="l96"></a></span><span class=cF2>}</span><span class=cF0>
|
|
<a name="l97"></a></span><span class=cF2>U0 DoUnusedDefine()</span><span class=cF0>
|
|
<a name="l98"></a></span><span class=cF2>{</span><span class=cF0>
|
|
<a name="l99"></a></span><span class=cF2> XTalkWait(task,"#include \"::/Demo/DolDoc/UnusedDefine\";\n");</span><span class=cF0>
|
|
<a name="l100"></a></span><span class=cF2>}</span><span class=cF0>
|
|
<a name="l101"></a></span><span class=cF2>U0 DoOnceDemo()</span><span class=cF0>
|
|
<a name="l102"></a></span><span class=cF2>{</span><span class=cF0>
|
|
<a name="l103"></a></span><span class=cF2> XTalkWait(task,"#include \"::/Demo/OnceDemo\";\n");</span><span class=cF0>
|
|
<a name="l104"></a></span><span class=cF2>}</span><span class=cF0>
|
|
<a name="l105"></a></span><span class=cF2>*/</span><span class=cF0>
|
|
<a name="l106"></a>
|
|
<a name="l107"></a></span><span class=cF1>U0</span><span class=cF0> DoRandDemo()
|
|
<a name="l108"></a>{
|
|
<a name="l109"></a> </span><span class=cF9>CTask</span><span class=cF0> *task=</span><span class=cF5>User</span><span class=cF0>;
|
|
<a name="l110"></a> </span><span class=cF5>XTalkWait</span><span class=cF0>(task,</span><span class=cF6>"#include \"::/Demo/RandDemo\";\n"</span><span class=cF0>);
|
|
<a name="l111"></a> </span><span class=cF5>XTalkWait</span><span class=cF0>(task,</span><span class=cF6>" "</span><span class=cF0>);
|
|
<a name="l112"></a> </span><span class=cF5>XTalkWait</span><span class=cF0>(task,</span><span class=cF6>" "</span><span class=cF0>);
|
|
<a name="l113"></a> </span><span class=cF5>Sleep</span><span class=cF0>(750);
|
|
<a name="l114"></a> </span><span class=cF5>DeathWait</span><span class=cF0>(&task,</span><span class=cF3>TRUE</span><span class=cF0>);
|
|
<a name="l115"></a>}
|
|
<a name="l116"></a>
|
|
<a name="l117"></a></span><span class=cF1>U0</span><span class=cF0> DoLowPassFilter()
|
|
<a name="l118"></a>{
|
|
<a name="l119"></a> </span><span class=cF9>CTask</span><span class=cF0> *task=</span><span class=cF5>User</span><span class=cF0>;
|
|
<a name="l120"></a> </span><span class=cF5>XTalkWait</span><span class=cF0>(task,</span><span class=cF6>"#include \"::/Demo/Graphics/LowPassFilter\";\n"</span><span class=cF0>);
|
|
<a name="l121"></a> </span><span class=cF5>Sleep</span><span class=cF0>(300);
|
|
<a name="l122"></a> </span><span class=cF5>PostMsgWait</span><span class=cF0>(task,</span><span class=cF3>MSG_KEY_DOWN_UP</span><span class=cF0>,</span><span class=cF3>CH_SPACE</span><span class=cF0>,0);
|
|
<a name="l123"></a> </span><span class=cF5>Sleep</span><span class=cF0>(300);
|
|
<a name="l124"></a> </span><span class=cF5>PostMsgWait</span><span class=cF0>(task,</span><span class=cF3>MSG_KEY_DOWN_UP</span><span class=cF0>,</span><span class=cF3>CH_SPACE</span><span class=cF0>,0);
|
|
<a name="l125"></a> </span><span class=cF5>Sleep</span><span class=cF0>(300);
|
|
<a name="l126"></a> </span><span class=cF5>PostMsgWait</span><span class=cF0>(task,</span><span class=cF3>MSG_KEY_DOWN_UP</span><span class=cF0>,</span><span class=cF3>CH_SPACE</span><span class=cF0>,0);
|
|
<a name="l127"></a> </span><span class=cF5>Sleep</span><span class=cF0>(300);
|
|
<a name="l128"></a> </span><span class=cF5>PostMsgWait</span><span class=cF0>(task,</span><span class=cF3>MSG_KEY_DOWN_UP</span><span class=cF0>,</span><span class=cF3>CH_SPACE</span><span class=cF0>,0);
|
|
<a name="l129"></a> </span><span class=cF5>Sleep</span><span class=cF0>(300);
|
|
<a name="l130"></a> </span><span class=cF5>PostMsgWait</span><span class=cF0>(task,</span><span class=cF3>MSG_KEY_DOWN_UP</span><span class=cF0>,</span><span class=cF3>CH_SPACE</span><span class=cF0>,0);
|
|
<a name="l131"></a> </span><span class=cF5>DeathWait</span><span class=cF0>(&task,</span><span class=cF3>TRUE</span><span class=cF0>);
|
|
<a name="l132"></a>}
|
|
<a name="l133"></a>
|
|
<a name="l134"></a></span><span class=cF1>U0</span><span class=cF0> DoMathAudioDemo()
|
|
<a name="l135"></a>{
|
|
<a name="l136"></a> </span><span class=cF9>CTask</span><span class=cF0> *task=</span><span class=cF5>User</span><span class=cF0>;
|
|
<a name="l137"></a> </span><span class=cF5>XTalkWait</span><span class=cF0>(task,</span><span class=cF6>"#include \"::/Demo/Graphics/MathAudioDemo\";\n"</span><span class=cF0>);
|
|
<a name="l138"></a> </span><span class=cF5>PostMsgWait</span><span class=cF0>(task,</span><span class=cF3>MSG_KEY_DOWN_UP</span><span class=cF0>,</span><span class=cF3>CH_SPACE</span><span class=cF0>,0);
|
|
<a name="l139"></a> </span><span class=cF5>PostMsgWait</span><span class=cF0>(task,</span><span class=cF3>MSG_KEY_DOWN_UP</span><span class=cF0>,</span><span class=cF3>CH_SPACE</span><span class=cF0>,0);
|
|
<a name="l140"></a> </span><span class=cF5>Sleep</span><span class=cF0>(500);
|
|
<a name="l141"></a> </span><span class=cF5>PostMsgWait</span><span class=cF0>(task,</span><span class=cF3>MSG_KEY_DOWN_UP</span><span class=cF0>,</span><span class=cF3>CH_SPACE</span><span class=cF0>,0);
|
|
<a name="l142"></a>
|
|
<a name="l143"></a> </span><span class=cF5>PostMsgWait</span><span class=cF0>(task,</span><span class=cF3>MSG_KEY_DOWN_UP</span><span class=cF0>,</span><span class=cF3>CH_SPACE</span><span class=cF0>,0);
|
|
<a name="l144"></a> </span><span class=cF5>PostMsgWait</span><span class=cF0>(task,</span><span class=cF3>MSG_KEY_DOWN_UP</span><span class=cF0>,</span><span class=cF3>CH_SPACE</span><span class=cF0>,0);
|
|
<a name="l145"></a> </span><span class=cF5>Sleep</span><span class=cF0>(500);
|
|
<a name="l146"></a> </span><span class=cF5>PostMsgWait</span><span class=cF0>(task,</span><span class=cF3>MSG_KEY_DOWN_UP</span><span class=cF0>,</span><span class=cF3>CH_SPACE</span><span class=cF0>,0);
|
|
<a name="l147"></a>
|
|
<a name="l148"></a> </span><span class=cF5>PostMsgWait</span><span class=cF0>(task,</span><span class=cF3>MSG_KEY_DOWN_UP</span><span class=cF0>,</span><span class=cF3>CH_SPACE</span><span class=cF0>,0);
|
|
<a name="l149"></a> </span><span class=cF5>PostMsgWait</span><span class=cF0>(task,</span><span class=cF3>MSG_KEY_DOWN_UP</span><span class=cF0>,</span><span class=cF3>CH_SPACE</span><span class=cF0>,0);
|
|
<a name="l150"></a> </span><span class=cF5>Sleep</span><span class=cF0>(500);
|
|
<a name="l151"></a> </span><span class=cF5>PostMsgWait</span><span class=cF0>(task,</span><span class=cF3>MSG_KEY_DOWN_UP</span><span class=cF0>,</span><span class=cF3>CH_SPACE</span><span class=cF0>,0);
|
|
<a name="l152"></a> </span><span class=cF5>DeathWait</span><span class=cF0>(&task,</span><span class=cF3>TRUE</span><span class=cF0>);
|
|
<a name="l153"></a>}
|
|
<a name="l154"></a>
|
|
<a name="l155"></a></span><span class=cF1>U0</span><span class=cF0> DoMsgLoop()
|
|
<a name="l156"></a>{
|
|
<a name="l157"></a> </span><span class=cF9>CTask</span><span class=cF0> *task=</span><span class=cF5>User</span><span class=cF0>;
|
|
<a name="l158"></a> </span><span class=cF5>XTalkWait</span><span class=cF0>(task,</span><span class=cF6>"#include \"::/Demo/MsgLoop\";\n"</span><span class=cF0>);
|
|
<a name="l159"></a> </span><span class=cF5>Sleep</span><span class=cF0>(300);
|
|
<a name="l160"></a> </span><span class=cF5>PostMsgWait</span><span class=cF0>(task,</span><span class=cF3>MSG_KEY_DOWN_UP</span><span class=cF0>,</span><span class=cF3>CH_SPACE</span><span class=cF0>,0);
|
|
<a name="l161"></a> </span><span class=cF5>Sleep</span><span class=cF0>(300);
|
|
<a name="l162"></a> </span><span class=cF5>PostMsgWait</span><span class=cF0>(task,</span><span class=cF3>MSG_KEY_DOWN_UP</span><span class=cF0>,</span><span class=cF3>CH_SHIFT_ESC</span><span class=cF0>,0);
|
|
<a name="l163"></a> </span><span class=cF5>DeathWait</span><span class=cF0>(&task,</span><span class=cF3>TRUE</span><span class=cF0>);
|
|
<a name="l164"></a>}
|
|
<a name="l165"></a>
|
|
<a name="l166"></a></span><span class=cF1>U0</span><span class=cF0> DoASCIIOrgan()
|
|
<a name="l167"></a>{
|
|
<a name="l168"></a> </span><span class=cF9>CTask</span><span class=cF0> *task=</span><span class=cF5>User</span><span class=cF0>;
|
|
<a name="l169"></a> </span><span class=cF5>XTalkWait</span><span class=cF0>(task,</span><span class=cF6>"#include \"::/Demo/Snd/ASCIIOrgan\";\n"</span><span class=cF0>);
|
|
<a name="l170"></a> </span><span class=cF5>Sleep</span><span class=cF0>(100);
|
|
<a name="l171"></a> </span><span class=cF5>PostMsgWait</span><span class=cF0>(task,</span><span class=cF3>MSG_KEY_DOWN_UP</span><span class=cF0>,</span><span class=cF6>'A'</span><span class=cF0>,0);
|
|
<a name="l172"></a> </span><span class=cF5>Sleep</span><span class=cF0>(200);
|
|
<a name="l173"></a> </span><span class=cF5>PostMsgWait</span><span class=cF0>(task,</span><span class=cF3>MSG_KEY_DOWN_UP</span><span class=cF0>,</span><span class=cF6>'B'</span><span class=cF0>,0);
|
|
<a name="l174"></a> </span><span class=cF5>Sleep</span><span class=cF0>(200);
|
|
<a name="l175"></a> </span><span class=cF5>PostMsgWait</span><span class=cF0>(task,</span><span class=cF3>MSG_KEY_DOWN_UP</span><span class=cF0>,</span><span class=cF6>'C'</span><span class=cF0>,0);
|
|
<a name="l176"></a> </span><span class=cF5>Sleep</span><span class=cF0>(200);
|
|
<a name="l177"></a> </span><span class=cF5>PostMsgWait</span><span class=cF0>(task,</span><span class=cF3>MSG_KEY_DOWN_UP</span><span class=cF0>,</span><span class=cF3>CH_SHIFT_ESC</span><span class=cF0>,0);
|
|
<a name="l178"></a> </span><span class=cF5>DeathWait</span><span class=cF0>(&task,</span><span class=cF3>TRUE</span><span class=cF0>);
|
|
<a name="l179"></a>}
|
|
<a name="l180"></a>
|
|
<a name="l181"></a></span><span class=cF1>U0</span><span class=cF0> DoDoodle()
|
|
<a name="l182"></a>{
|
|
<a name="l183"></a> </span><span class=cF9>CTask</span><span class=cF0> *task=</span><span class=cF5>User</span><span class=cF0>;
|
|
<a name="l184"></a> </span><span class=cF5>XTalkWait</span><span class=cF0>(task,</span><span class=cF6>"#include \"::/Demo/Graphics/Doodle\";\n"</span><span class=cF0>);
|
|
<a name="l185"></a> </span><span class=cF5>PostMsgWait</span><span class=cF0>(task,</span><span class=cF3>MSG_MS_L_DOWN</span><span class=cF0>,10,10);
|
|
<a name="l186"></a> </span><span class=cF5>PostMsgWait</span><span class=cF0>(task,</span><span class=cF3>MSG_MS_L_UP</span><span class=cF0>,100,200);
|
|
<a name="l187"></a> </span><span class=cF5>Sleep</span><span class=cF0>(500);
|
|
<a name="l188"></a> </span><span class=cF5>PostMsgWait</span><span class=cF0>(task,</span><span class=cF3>MSG_KEY_DOWN_UP</span><span class=cF0>,</span><span class=cF3>CH_SHIFT_ESC</span><span class=cF0>,0);
|
|
<a name="l189"></a> </span><span class=cF5>DeathWait</span><span class=cF0>(&task,</span><span class=cF3>TRUE</span><span class=cF0>);
|
|
<a name="l190"></a>}
|
|
<a name="l191"></a>
|
|
<a name="l192"></a></span><span class=cF1>U0</span><span class=cF0> DoSpeedLine()
|
|
<a name="l193"></a>{
|
|
<a name="l194"></a> </span><span class=cF9>I64</span><span class=cF0> i=</span><span class=cF3>PURPLE</span><span class=cF0>+1; </span><span class=cF2>//+1 because TRANSPARENT</span><span class=cF0>
|
|
<a name="l195"></a> </span><span class=cF9>CTask</span><span class=cF0> *task=</span><span class=cF5>User</span><span class=cF0>;
|
|
<a name="l196"></a> </span><span class=cF5>XTalkWait</span><span class=cF0>(task,</span><span class=cF6>"#include \"::/Demo/Graphics/Speedline\";\n"</span><span class=cF0>);
|
|
<a name="l197"></a> </span><span class=cF5>PostMsgWait</span><span class=cF0>(task,</span><span class=cF3>MSG_MS_L_DOWN</span><span class=cF0>,10,10);
|
|
<a name="l198"></a> </span><span class=cF5>PostMsgWait</span><span class=cF0>(task,</span><span class=cF3>MSG_MS_L_UP</span><span class=cF0>,100,200);
|
|
<a name="l199"></a> </span><span class=cF5>PostMsg</span><span class=cF0>(task,</span><span class=cF3>MSG_MS_R_DOWN_UP</span><span class=cF0>,0,0);
|
|
<a name="l200"></a> </span><span class=cF5>BirthWait</span><span class=cF0>(&task->popup_task);
|
|
<a name="l201"></a> </span><span class=cF1>while</span><span class=cF0> (i--)
|
|
<a name="l202"></a> </span><span class=cF5>PostMsgWait</span><span class=cF0>(task->popup_task,</span><span class=cF3>MSG_KEY_DOWN_UP</span><span class=cF0>,0,</span><span class=cF3>SC_CURSOR_DOWN</span><span class=cF0>);
|
|
<a name="l203"></a> </span><span class=cF5>PostMsgWait</span><span class=cF0>(task->popup_task,</span><span class=cF3>MSG_KEY_DOWN_UP</span><span class=cF0>,</span><span class=cF3>CH_ESC</span><span class=cF0>,0);
|
|
<a name="l204"></a> </span><span class=cF5>TaskWait</span><span class=cF0>(task);
|
|
<a name="l205"></a> </span><span class=cF5>PostMsgWait</span><span class=cF0>(task,</span><span class=cF3>MSG_MS_L_DOWN</span><span class=cF0>,50,10);
|
|
<a name="l206"></a> </span><span class=cF5>PostMsgWait</span><span class=cF0>(task,</span><span class=cF3>MSG_MS_L_UP</span><span class=cF0>,150,200);
|
|
<a name="l207"></a> </span><span class=cF5>Sleep</span><span class=cF0>(1000);
|
|
<a name="l208"></a> </span><span class=cF5>PostMsgWait</span><span class=cF0>(task,</span><span class=cF3>MSG_KEY_DOWN_UP</span><span class=cF0>,</span><span class=cF3>CH_SHIFT_ESC</span><span class=cF0>,0);
|
|
<a name="l209"></a> </span><span class=cF5>DeathWait</span><span class=cF0>(&task,</span><span class=cF3>TRUE</span><span class=cF0>);
|
|
<a name="l210"></a>}
|
|
<a name="l211"></a>
|
|
<a name="l212"></a></span><span class=cF1>U0</span><span class=cF0> DoKeyBitMap()
|
|
<a name="l213"></a>{
|
|
<a name="l214"></a> </span><span class=cF9>I64</span><span class=cF0> i_sc=</span><span class=cF5>Char2ScanCode</span><span class=cF0>(</span><span class=cF6>'i'</span><span class=cF0>);
|
|
<a name="l215"></a> </span><span class=cF9>CTask</span><span class=cF0> *task=</span><span class=cF5>User</span><span class=cF0>(</span><span class=cF6>"#include \"::/Demo/KeyBitMap\";\n"</span><span class=cF0>);
|
|
<a name="l216"></a> </span><span class=cF5>Sleep</span><span class=cF0>(50);
|
|
<a name="l217"></a> </span><span class=cF5>LBts</span><span class=cF0>(</span><span class=cFB>kbd</span><span class=cF0>.down_bitmap,i_sc);
|
|
<a name="l218"></a> </span><span class=cF5>Sleep</span><span class=cF0>(500);
|
|
<a name="l219"></a> </span><span class=cF5>LBtr</span><span class=cF0>(</span><span class=cFB>kbd</span><span class=cF0>.down_bitmap,i_sc);
|
|
<a name="l220"></a> </span><span class=cF5>Sleep</span><span class=cF0>(50);
|
|
<a name="l221"></a> </span><span class=cF5>DeathWait</span><span class=cF0>(&task,</span><span class=cF3>TRUE</span><span class=cF0>);
|
|
<a name="l222"></a>}
|
|
<a name="l223"></a>
|
|
<a name="l224"></a></span><span class=cF1>U0</span><span class=cF0> DoDigits()
|
|
<a name="l225"></a>{
|
|
<a name="l226"></a> </span><span class=cF9>CTask</span><span class=cF0> *task=</span><span class=cF5>User</span><span class=cF0>;
|
|
<a name="l227"></a> </span><span class=cF5>XTalkWait</span><span class=cF0>(task,</span><span class=cF6>"#include \"::/Demo/Games/Digits\";\n"</span><span class=cF0>);
|
|
<a name="l228"></a> </span><span class=cF5>Sleep</span><span class=cF0>(100);
|
|
<a name="l229"></a> </span><span class=cF5>PostMsgWait</span><span class=cF0>(task,</span><span class=cF3>MSG_KEY_DOWN_UP</span><span class=cF0>,</span><span class=cF3>CH_SPACE</span><span class=cF0>,0);
|
|
<a name="l230"></a> </span><span class=cF5>Sleep</span><span class=cF0>(100);
|
|
<a name="l231"></a> </span><span class=cF5>PostMsgWait</span><span class=cF0>(task,</span><span class=cF3>MSG_KEY_DOWN_UP</span><span class=cF0>,</span><span class=cF3>CH_SPACE</span><span class=cF0>,0);
|
|
<a name="l232"></a> </span><span class=cF5>Sleep</span><span class=cF0>(250);
|
|
<a name="l233"></a> </span><span class=cF5>PostMsgWait</span><span class=cF0>(task,</span><span class=cF3>MSG_KEY_DOWN_UP</span><span class=cF0>,</span><span class=cF6>'1'</span><span class=cF0>,0);
|
|
<a name="l234"></a> </span><span class=cF5>Sleep</span><span class=cF0>(250);
|
|
<a name="l235"></a> </span><span class=cF5>PostMsgWait</span><span class=cF0>(task,</span><span class=cF3>MSG_KEY_DOWN_UP</span><span class=cF0>,</span><span class=cF3>CH_SHIFT_ESC</span><span class=cF0>,0);
|
|
<a name="l236"></a> </span><span class=cF5>DeathWait</span><span class=cF0>(&task,</span><span class=cF3>TRUE</span><span class=cF0>);
|
|
<a name="l237"></a>}
|
|
<a name="l238"></a>
|
|
<a name="l239"></a></span><span class=cF1>U0</span><span class=cF0> DoSymmetry()
|
|
<a name="l240"></a>{
|
|
<a name="l241"></a> </span><span class=cF9>CTask</span><span class=cF0> *task=</span><span class=cF5>User</span><span class=cF0>;
|
|
<a name="l242"></a> </span><span class=cF5>XTalkWait</span><span class=cF0>(task,</span><span class=cF6>"#include \"::/Demo/Graphics/Symmetry\";\n"</span><span class=cF0>);
|
|
<a name="l243"></a> </span><span class=cF5>PostMsgWait</span><span class=cF0>(task,</span><span class=cF3>MSG_MS_R_DOWN</span><span class=cF0>,100,100);
|
|
<a name="l244"></a> </span><span class=cF5>PostMsgWait</span><span class=cF0>(task,</span><span class=cF3>MSG_MS_R_UP</span><span class=cF0>,200,200);
|
|
<a name="l245"></a> </span><span class=cF5>Sleep</span><span class=cF0>(100);
|
|
<a name="l246"></a> </span><span class=cF5>PostMsgWait</span><span class=cF0>(task,</span><span class=cF3>MSG_MS_L_DOWN</span><span class=cF0>,10,10);
|
|
<a name="l247"></a> </span><span class=cF5>PostMsgWait</span><span class=cF0>(task,</span><span class=cF3>MSG_MS_L_UP</span><span class=cF0>,100,200);
|
|
<a name="l248"></a> </span><span class=cF5>Sleep</span><span class=cF0>(250);
|
|
<a name="l249"></a> </span><span class=cF5>PostMsgWait</span><span class=cF0>(task,</span><span class=cF3>MSG_MS_L_DOWN</span><span class=cF0>,100,200);
|
|
<a name="l250"></a> </span><span class=cF5>PostMsgWait</span><span class=cF0>(task,</span><span class=cF3>MSG_MS_L_UP</span><span class=cF0>,400,400);
|
|
<a name="l251"></a> </span><span class=cF5>Sleep</span><span class=cF0>(250);
|
|
<a name="l252"></a> </span><span class=cF5>PostMsgWait</span><span class=cF0>(task,</span><span class=cF3>MSG_KEY_DOWN_UP</span><span class=cF0>,</span><span class=cF3>CH_SHIFT_ESC</span><span class=cF0>,0);
|
|
<a name="l253"></a> </span><span class=cF5>DeathWait</span><span class=cF0>(&task,</span><span class=cF3>TRUE</span><span class=cF0>);
|
|
<a name="l254"></a>}
|
|
<a name="l255"></a>
|
|
<a name="l256"></a></span><span class=cF1>U0</span><span class=cF0> DoBSpline()
|
|
<a name="l257"></a>{
|
|
<a name="l258"></a> </span><span class=cF9>CTask</span><span class=cF0> *task=</span><span class=cF5>User</span><span class=cF0>;
|
|
<a name="l259"></a> </span><span class=cF5>XTalkWait</span><span class=cF0>(task,</span><span class=cF6>"#include \"::/Demo/Graphics/BSpline\";\n"</span><span class=cF0>);
|
|
<a name="l260"></a> </span><span class=cF5>PostMsgWait</span><span class=cF0>(task,</span><span class=cF3>MSG_MS_L_DOWN_UP</span><span class=cF0>,50,50);
|
|
<a name="l261"></a> </span><span class=cF5>PostMsgWait</span><span class=cF0>(task,</span><span class=cF3>MSG_MS_L_DOWN_UP</span><span class=cF0>,300,100);
|
|
<a name="l262"></a> </span><span class=cF5>PostMsgWait</span><span class=cF0>(task,</span><span class=cF3>MSG_MS_L_DOWN_UP</span><span class=cF0>,150,300);
|
|
<a name="l263"></a> </span><span class=cF5>PostMsgWait</span><span class=cF0>(task,</span><span class=cF3>MSG_MS_R_DOWN_UP</span><span class=cF0>,0,0);
|
|
<a name="l264"></a> </span><span class=cF5>Sleep</span><span class=cF0>(1500);
|
|
<a name="l265"></a> </span><span class=cF5>PostMsgWait</span><span class=cF0>(task,</span><span class=cF3>MSG_KEY_DOWN_UP</span><span class=cF0>,</span><span class=cF3>CH_SPACE</span><span class=cF0>,0);
|
|
<a name="l266"></a> </span><span class=cF5>DeathWait</span><span class=cF0>(&task,</span><span class=cF3>TRUE</span><span class=cF0>);
|
|
<a name="l267"></a>}
|
|
<a name="l268"></a>
|
|
<a name="l269"></a></span><span class=cF1>U0</span><span class=cF0> DoScrnCapture()
|
|
<a name="l270"></a>{
|
|
<a name="l271"></a> </span><span class=cF9>CTask</span><span class=cF0> *task=</span><span class=cF5>User</span><span class=cF0>;
|
|
<a name="l272"></a> </span><span class=cF5>XTalkWait</span><span class=cF0>(task,</span><span class=cF6>"#include \"::/Demo/Graphics/ScrnCapture\";\n"</span><span class=cF0>);
|
|
<a name="l273"></a> </span><span class=cF5>Sleep</span><span class=cF0>(500);
|
|
<a name="l274"></a> </span><span class=cF5>PostMsgWait</span><span class=cF0>(task,</span><span class=cF3>MSG_KEY_DOWN_UP</span><span class=cF0>,</span><span class=cF3>CH_SPACE</span><span class=cF0>,0);
|
|
<a name="l275"></a> </span><span class=cF5>Sleep</span><span class=cF0>(500);
|
|
<a name="l276"></a> </span><span class=cF5>PostMsgWait</span><span class=cF0>(task,</span><span class=cF3>MSG_KEY_DOWN_UP</span><span class=cF0>,</span><span class=cF3>CH_SPACE</span><span class=cF0>,0);
|
|
<a name="l277"></a> </span><span class=cF5>Sleep</span><span class=cF0>(750);
|
|
<a name="l278"></a> </span><span class=cF5>PostMsgWait</span><span class=cF0>(task,</span><span class=cF3>MSG_KEY_DOWN_UP</span><span class=cF0>,</span><span class=cF3>CH_SPACE</span><span class=cF0>,0);
|
|
<a name="l279"></a> </span><span class=cF5>DeathWait</span><span class=cF0>(&task,</span><span class=cF3>TRUE</span><span class=cF0>);
|
|
<a name="l280"></a> </span><span class=cF5>Del</span><span class=cF0>(</span><span class=cF6>"~/DemoScrnShot.GR*"</span><span class=cF0>);
|
|
<a name="l281"></a>}
|
|
<a name="l282"></a>
|
|
<a name="l283"></a></span><span class=cF1>U0</span><span class=cF0> DoStadium()
|
|
<a name="l284"></a>{
|
|
<a name="l285"></a> </span><span class=cF9>CTask</span><span class=cF0> *task=</span><span class=cF5>User</span><span class=cF0>;
|
|
<a name="l286"></a> </span><span class=cF5>XTalkWait</span><span class=cF0>(task,</span><span class=cF6>"#include \"::/Demo/Games/Stadium/Stadium\";\n"</span><span class=cF0>);
|
|
<a name="l287"></a> </span><span class=cF5>Sleep</span><span class=cF0>(50);
|
|
<a name="l288"></a> </span><span class=cF5>PostMsgWait</span><span class=cF0>(task,</span><span class=cF3>MSG_MS_L_DOWN_UP</span><span class=cF0>,100,10);
|
|
<a name="l289"></a> </span><span class=cF5>Sleep</span><span class=cF0>(300);
|
|
<a name="l290"></a> </span><span class=cF5>PostMsgWait</span><span class=cF0>(task,</span><span class=cF3>MSG_MS_L_DOWN_UP</span><span class=cF0>,320,20);
|
|
<a name="l291"></a> </span><span class=cF5>Sleep</span><span class=cF0>(300);
|
|
<a name="l292"></a> </span><span class=cF5>PostMsgWait</span><span class=cF0>(task,</span><span class=cF3>MSG_MS_L_DOWN_UP</span><span class=cF0>,520,10);
|
|
<a name="l293"></a> </span><span class=cF5>Sleep</span><span class=cF0>(300);
|
|
<a name="l294"></a> </span><span class=cF5>PostMsgWait</span><span class=cF0>(task,</span><span class=cF3>MSG_KEY_DOWN_UP</span><span class=cF0>,</span><span class=cF3>CH_SHIFT_ESC</span><span class=cF0>,0);
|
|
<a name="l295"></a> </span><span class=cF5>DeathWait</span><span class=cF0>(&task,</span><span class=cF3>TRUE</span><span class=cF0>);
|
|
<a name="l296"></a>}
|
|
<a name="l297"></a>
|
|
<a name="l298"></a></span><span class=cF1>U0</span><span class=cF0> DoPalette()
|
|
<a name="l299"></a>{
|
|
<a name="l300"></a> </span><span class=cF9>CTask</span><span class=cF0> *task=</span><span class=cF5>User</span><span class=cF0>;
|
|
<a name="l301"></a> </span><span class=cF5>XTalkWait</span><span class=cF0>(task,</span><span class=cF6>"#include \"::/Demo/Graphics/Palette\";\n"</span><span class=cF0>);
|
|
<a name="l302"></a> </span><span class=cF5>Sleep</span><span class=cF0>(400);
|
|
<a name="l303"></a> </span><span class=cF5>PostMsgWait</span><span class=cF0>(task,</span><span class=cF3>MSG_KEY_DOWN_UP</span><span class=cF0>,</span><span class=cF3>CH_SPACE</span><span class=cF0>,0);
|
|
<a name="l304"></a> </span><span class=cF5>Sleep</span><span class=cF0>(400);
|
|
<a name="l305"></a> </span><span class=cF5>PostMsgWait</span><span class=cF0>(task,</span><span class=cF3>MSG_KEY_DOWN_UP</span><span class=cF0>,</span><span class=cF3>CH_SPACE</span><span class=cF0>,0);
|
|
<a name="l306"></a> </span><span class=cF5>DeathWait</span><span class=cF0>(&task,</span><span class=cF3>TRUE</span><span class=cF0>);
|
|
<a name="l307"></a>}
|
|
<a name="l308"></a>
|
|
<a name="l309"></a></span><span class=cF1>U0</span><span class=cF0> DoElephantWalk()
|
|
<a name="l310"></a>{
|
|
<a name="l311"></a> </span><span class=cF9>I64</span><span class=cF0> i;
|
|
<a name="l312"></a> </span><span class=cF9>CTask</span><span class=cF0> *task=</span><span class=cF5>User</span><span class=cF0>;
|
|
<a name="l313"></a> </span><span class=cF5>XTalkWait</span><span class=cF0>(task,</span><span class=cF6>"#include \"::/Demo/Games/ElephantWalk\";\n"</span><span class=cF0>);
|
|
<a name="l314"></a> </span><span class=cF1>for</span><span class=cF0> (i=0;i<15;i++) </span><span class=cF7>{</span><span class=cF0>
|
|
<a name="l315"></a> </span><span class=cF5>PostMsgWait</span><span class=cF0>(task,</span><span class=cF3>MSG_KEY_DOWN</span><span class=cF0>,0,</span><span class=cF3>SC_CURSOR_RIGHT</span><span class=cF0>);
|
|
<a name="l316"></a> </span><span class=cF5>Sleep</span><span class=cF0>(50);
|
|
<a name="l317"></a> </span><span class=cF7>}</span><span class=cF0>
|
|
<a name="l318"></a> </span><span class=cF5>PostMsgWait</span><span class=cF0>(task,</span><span class=cF3>MSG_KEY_DOWN_UP</span><span class=cF0>,</span><span class=cF3>CH_SHIFT_ESC</span><span class=cF0>,0);
|
|
<a name="l319"></a> </span><span class=cF5>DeathWait</span><span class=cF0>(&task,</span><span class=cF3>TRUE</span><span class=cF0>);
|
|
<a name="l320"></a>}
|
|
<a name="l321"></a>
|
|
<a name="l322"></a></span><span class=cF1>U0</span><span class=cF0> DoHalogen()
|
|
<a name="l323"></a>{
|
|
<a name="l324"></a> </span><span class=cF9>CTask</span><span class=cF0> *task=</span><span class=cF5>User</span><span class=cF0>;
|
|
<a name="l325"></a> </span><span class=cF5>XTalkWait</span><span class=cF0>(task,</span><span class=cF6>"#include \"::/Demo/Games/Halogen\";\n"</span><span class=cF0>);
|
|
<a name="l326"></a> </span><span class=cF5>PostMsgWait</span><span class=cF0>(task,</span><span class=cF3>MSG_KEY_DOWN</span><span class=cF0>,0,</span><span class=cF3>SC_CURSOR_UP</span><span class=cF0>);
|
|
<a name="l327"></a> </span><span class=cF5>Sleep</span><span class=cF0>(1000);
|
|
<a name="l328"></a> </span><span class=cF5>PostMsgWait</span><span class=cF0>(task,</span><span class=cF3>MSG_KEY_UP</span><span class=cF0>,0,</span><span class=cF3>SC_CURSOR_UP</span><span class=cF0>);
|
|
<a name="l329"></a> </span><span class=cF5>PostMsgWait</span><span class=cF0>(task,</span><span class=cF3>MSG_KEY_DOWN</span><span class=cF0>,0,</span><span class=cF3>SC_CURSOR_RIGHT</span><span class=cF0>);
|
|
<a name="l330"></a> </span><span class=cF5>Sleep</span><span class=cF0>(333);
|
|
<a name="l331"></a> </span><span class=cF5>PostMsgWait</span><span class=cF0>(task,</span><span class=cF3>MSG_KEY_UP</span><span class=cF0>,0,</span><span class=cF3>SC_CURSOR_RIGHT</span><span class=cF0>);
|
|
<a name="l332"></a> </span><span class=cF5>PostMsgWait</span><span class=cF0>(task,</span><span class=cF3>MSG_KEY_DOWN_UP</span><span class=cF0>,</span><span class=cF3>CH_SHIFT_ESC</span><span class=cF0>,0);
|
|
<a name="l333"></a> </span><span class=cF5>DeathWait</span><span class=cF0>(&task,</span><span class=cF3>TRUE</span><span class=cF0>);
|
|
<a name="l334"></a>}
|
|
<a name="l335"></a>
|
|
<a name="l336"></a></span><span class=cF1>U0</span><span class=cF0> DoTheDead()
|
|
<a name="l337"></a>{
|
|
<a name="l338"></a> </span><span class=cF9>I64</span><span class=cF0> i;
|
|
<a name="l339"></a> </span><span class=cF9>CTask</span><span class=cF0> *task=</span><span class=cF5>User</span><span class=cF0>;
|
|
<a name="l340"></a> </span><span class=cF5>XTalkWait</span><span class=cF0>(task,</span><span class=cF6>"#include \"::/Demo/Games/TheDead\";\n"</span><span class=cF0>);
|
|
<a name="l341"></a> </span><span class=cF1>for</span><span class=cF0> (i=0;i<15;i++) </span><span class=cF7>{</span><span class=cF0>
|
|
<a name="l342"></a> </span><span class=cF5>PostMsgWait</span><span class=cF0>(task,</span><span class=cF3>MSG_KEY_DOWN_UP</span><span class=cF0>,0,</span><span class=cF3>SC_CURSOR_DOWN</span><span class=cF0>);
|
|
<a name="l343"></a> </span><span class=cF5>PostMsgWait</span><span class=cF0>(task,</span><span class=cF3>MSG_KEY_DOWN_UP</span><span class=cF0>,</span><span class=cF3>CH_SPACE</span><span class=cF0>,0);
|
|
<a name="l344"></a> </span><span class=cF5>Sleep</span><span class=cF0>(50);
|
|
<a name="l345"></a> </span><span class=cF7>}</span><span class=cF0>
|
|
<a name="l346"></a> </span><span class=cF1>for</span><span class=cF0> (i=0;i<15;i++) </span><span class=cF7>{</span><span class=cF0>
|
|
<a name="l347"></a> </span><span class=cF5>PostMsgWait</span><span class=cF0>(task,</span><span class=cF3>MSG_KEY_DOWN_UP</span><span class=cF0>,0,</span><span class=cF3>SC_CURSOR_UP</span><span class=cF0>);
|
|
<a name="l348"></a> </span><span class=cF5>PostMsgWait</span><span class=cF0>(task,</span><span class=cF3>MSG_KEY_DOWN_UP</span><span class=cF0>,</span><span class=cF3>CH_SPACE</span><span class=cF0>,0);
|
|
<a name="l349"></a> </span><span class=cF5>Sleep</span><span class=cF0>(50);
|
|
<a name="l350"></a> </span><span class=cF7>}</span><span class=cF0>
|
|
<a name="l351"></a> </span><span class=cF5>PostMsgWait</span><span class=cF0>(task,</span><span class=cF3>MSG_KEY_DOWN_UP</span><span class=cF0>,</span><span class=cF3>CH_SHIFT_ESC</span><span class=cF0>,0);
|
|
<a name="l352"></a> </span><span class=cF5>DeathWait</span><span class=cF0>(&task,</span><span class=cF3>TRUE</span><span class=cF0>);
|
|
<a name="l353"></a>}
|
|
<a name="l354"></a>
|
|
<a name="l355"></a></span><span class=cF1>U0</span><span class=cF0> DoBomberGolf()
|
|
<a name="l356"></a>{
|
|
<a name="l357"></a> </span><span class=cF9>I64</span><span class=cF0> i;
|
|
<a name="l358"></a> </span><span class=cF9>CTask</span><span class=cF0> *task=</span><span class=cF5>User</span><span class=cF0>;
|
|
<a name="l359"></a> </span><span class=cF5>XTalkWait</span><span class=cF0>(task,</span><span class=cF6>"#include \"::/Demo/Games/BomberGolf\";\n"</span><span class=cF0>);
|
|
<a name="l360"></a> </span><span class=cF1>for</span><span class=cF0> (i=0;i<7;i++) </span><span class=cF7>{</span><span class=cF0>
|
|
<a name="l361"></a> </span><span class=cF5>PostMsgWait</span><span class=cF0>(task,</span><span class=cF3>MSG_KEY_DOWN_UP</span><span class=cF0>,0,</span><span class=cF3>SC_CURSOR_UP</span><span class=cF0>);
|
|
<a name="l362"></a> </span><span class=cF5>PostMsgWait</span><span class=cF0>(task,</span><span class=cF3>MSG_KEY_DOWN_UP</span><span class=cF0>,0,</span><span class=cF3>SC_CURSOR_RIGHT</span><span class=cF0>);
|
|
<a name="l363"></a> </span><span class=cF5>Sleep</span><span class=cF0>(100);
|
|
<a name="l364"></a> </span><span class=cF7>}</span><span class=cF0>
|
|
<a name="l365"></a> </span><span class=cF5>PostMsgWait</span><span class=cF0>(task,</span><span class=cF3>MSG_KEY_DOWN_UP</span><span class=cF0>,</span><span class=cF3>CH_SPACE</span><span class=cF0>,0);
|
|
<a name="l366"></a> </span><span class=cF1>for</span><span class=cF0> (i=0;i<7;i++) </span><span class=cF7>{</span><span class=cF0>
|
|
<a name="l367"></a> </span><span class=cF5>PostMsgWait</span><span class=cF0>(task,</span><span class=cF3>MSG_KEY_DOWN_UP</span><span class=cF0>,0,</span><span class=cF3>SC_CURSOR_UP</span><span class=cF0>);
|
|
<a name="l368"></a> </span><span class=cF5>PostMsgWait</span><span class=cF0>(task,</span><span class=cF3>MSG_KEY_DOWN_UP</span><span class=cF0>,0,</span><span class=cF3>SC_CURSOR_LEFT</span><span class=cF0>);
|
|
<a name="l369"></a> </span><span class=cF5>PostMsgWait</span><span class=cF0>(task,</span><span class=cF3>MSG_KEY_DOWN_UP</span><span class=cF0>,0,</span><span class=cF3>SC_CURSOR_LEFT</span><span class=cF0>);
|
|
<a name="l370"></a> </span><span class=cF5>Sleep</span><span class=cF0>(200);
|
|
<a name="l371"></a> </span><span class=cF7>}</span><span class=cF0>
|
|
<a name="l372"></a> </span><span class=cF5>PostMsgWait</span><span class=cF0>(task,</span><span class=cF3>MSG_KEY_DOWN_UP</span><span class=cF0>,</span><span class=cF3>CH_SHIFT_ESC</span><span class=cF0>,0);
|
|
<a name="l373"></a> </span><span class=cF5>DeathWait</span><span class=cF0>(&task,</span><span class=cF3>TRUE</span><span class=cF0>);
|
|
<a name="l374"></a>}
|
|
<a name="l375"></a>
|
|
<a name="l376"></a></span><span class=cF1>U0</span><span class=cF0> DoZoneOut()
|
|
<a name="l377"></a>{
|
|
<a name="l378"></a> </span><span class=cF9>I64</span><span class=cF0> i;
|
|
<a name="l379"></a> </span><span class=cF9>CTask</span><span class=cF0> *task=</span><span class=cF5>User</span><span class=cF0>(</span><span class=cF6>"#include \"::/Demo/Games/ZoneOut\";\n"</span><span class=cF0>);
|
|
<a name="l380"></a> </span><span class=cF5>BirthWait</span><span class=cF0>(&task->popup_task);
|
|
<a name="l381"></a> </span><span class=cF5>TaskWait</span><span class=cF0>(task->popup_task);
|
|
<a name="l382"></a> </span><span class=cF5>PostMsgWait</span><span class=cF0>(task->popup_task,</span><span class=cF3>MSG_KEY_DOWN_UP</span><span class=cF0>,</span><span class=cF3>CH_SPACE</span><span class=cF0>,0);
|
|
<a name="l383"></a> </span><span class=cF1>for</span><span class=cF0> (i=0;i<15;i++) </span><span class=cF7>{</span><span class=cF0>
|
|
<a name="l384"></a> </span><span class=cF5>PostMsgWait</span><span class=cF0>(task,</span><span class=cF3>MSG_KEY_DOWN_UP</span><span class=cF0>,0,</span><span class=cF3>SC_CURSOR_RIGHT</span><span class=cF0>);
|
|
<a name="l385"></a> </span><span class=cF5>PostMsgWait</span><span class=cF0>(task,</span><span class=cF3>MSG_KEY_DOWN_UP</span><span class=cF0>,0,</span><span class=cF3>SC_CURSOR_DOWN</span><span class=cF0>);
|
|
<a name="l386"></a> </span><span class=cF5>PostMsgWait</span><span class=cF0>(task,</span><span class=cF3>MSG_KEY_DOWN_UP</span><span class=cF0>,</span><span class=cF3>CH_SPACE</span><span class=cF0>,0);
|
|
<a name="l387"></a> </span><span class=cF5>Sleep</span><span class=cF0>(100);
|
|
<a name="l388"></a> </span><span class=cF7>}</span><span class=cF0>
|
|
<a name="l389"></a> </span><span class=cF5>PostMsgWait</span><span class=cF0>(task,</span><span class=cF3>MSG_KEY_DOWN_UP</span><span class=cF0>,</span><span class=cF3>CH_SHIFT_ESC</span><span class=cF0>,0);
|
|
<a name="l390"></a> </span><span class=cF5>DeathWait</span><span class=cF0>(&task,</span><span class=cF3>TRUE</span><span class=cF0>);
|
|
<a name="l391"></a>}
|
|
<a name="l392"></a>
|
|
<a name="l393"></a></span><span class=cF1>U0</span><span class=cF0> DoVaroom()
|
|
<a name="l394"></a>{
|
|
<a name="l395"></a> </span><span class=cF9>I64</span><span class=cF0> i;
|
|
<a name="l396"></a> </span><span class=cF9>CTask</span><span class=cF0> *task=</span><span class=cF5>User</span><span class=cF0>;
|
|
<a name="l397"></a> </span><span class=cF5>XTalkWait</span><span class=cF0>(task,</span><span class=cF6>"#include \"::/Demo/Games/Varoom\";\n"</span><span class=cF0>);
|
|
<a name="l398"></a> </span><span class=cF1>for</span><span class=cF0> (i=0;i<10;i++) </span><span class=cF7>{</span><span class=cF0>
|
|
<a name="l399"></a> </span><span class=cF5>PostMsgWait</span><span class=cF0>(task,</span><span class=cF3>MSG_KEY_DOWN_UP</span><span class=cF0>,0,</span><span class=cF3>SC_CURSOR_UP</span><span class=cF0>);
|
|
<a name="l400"></a> </span><span class=cF5>Sleep</span><span class=cF0>(50);
|
|
<a name="l401"></a> </span><span class=cF5>PostMsgWait</span><span class=cF0>(task,</span><span class=cF3>MSG_KEY_DOWN_UP</span><span class=cF0>,0,</span><span class=cF3>SC_CURSOR_UP</span><span class=cF0>);
|
|
<a name="l402"></a> </span><span class=cF5>Sleep</span><span class=cF0>(50);
|
|
<a name="l403"></a> </span><span class=cF5>PostMsgWait</span><span class=cF0>(task,</span><span class=cF3>MSG_KEY_DOWN_UP</span><span class=cF0>,0,</span><span class=cF3>SC_CURSOR_UP</span><span class=cF0>);
|
|
<a name="l404"></a> </span><span class=cF5>PostMsgWait</span><span class=cF0>(task,</span><span class=cF3>MSG_KEY_DOWN_UP</span><span class=cF0>,0,</span><span class=cF3>SC_CURSOR_LEFT</span><span class=cF0>);
|
|
<a name="l405"></a> </span><span class=cF5>Sleep</span><span class=cF0>(50);
|
|
<a name="l406"></a> </span><span class=cF7>}</span><span class=cF0>
|
|
<a name="l407"></a> </span><span class=cF5>PostMsgWait</span><span class=cF0>(task,</span><span class=cF3>MSG_KEY_DOWN_UP</span><span class=cF0>,</span><span class=cF3>CH_SHIFT_ESC</span><span class=cF0>,0);
|
|
<a name="l408"></a> </span><span class=cF5>DeathWait</span><span class=cF0>(&task,</span><span class=cF3>TRUE</span><span class=cF0>);
|
|
<a name="l409"></a>}
|
|
<a name="l410"></a>
|
|
<a name="l411"></a></span><span class=cF1>U0</span><span class=cF0> DoFlatTops()
|
|
<a name="l412"></a>{
|
|
<a name="l413"></a> </span><span class=cF9>CTask</span><span class=cF0> *task=</span><span class=cF5>User</span><span class=cF0>(</span><span class=cF6>"#include \"::/Demo/Games/FlatTops\";\n"</span><span class=cF0>);
|
|
<a name="l414"></a> </span><span class=cF5>BirthWait</span><span class=cF0>(&task->popup_task);
|
|
<a name="l415"></a> </span><span class=cF5>TaskWait</span><span class=cF0>(task->popup_task);
|
|
<a name="l416"></a> </span><span class=cF5>PostMsgWait</span><span class=cF0>(task->popup_task,</span><span class=cF3>MSG_KEY_DOWN_UP</span><span class=cF0>,</span><span class=cF3>CH_SPACE</span><span class=cF0>,0);
|
|
<a name="l417"></a> </span><span class=cF5>DeathWait</span><span class=cF0>(&task->popup_task);
|
|
<a name="l418"></a> </span><span class=cF5>PostMsgWait</span><span class=cF0>(task,</span><span class=cF3>MSG_MS_R_DOWN_UP</span><span class=cF0>,</span><span class=cF5>RandI16</span><span class=cF0>%400+200,</span><span class=cF5>RandI16</span><span class=cF0>%300+150);
|
|
<a name="l419"></a> </span><span class=cF5>Sleep</span><span class=cF0>(1500);
|
|
<a name="l420"></a> </span><span class=cF5>PostMsgWait</span><span class=cF0>(task,</span><span class=cF3>MSG_KEY_DOWN_UP</span><span class=cF0>,</span><span class=cF3>CH_SHIFT_ESC</span><span class=cF0>,0);
|
|
<a name="l421"></a> </span><span class=cF5>DeathWait</span><span class=cF0>(&task,</span><span class=cF3>TRUE</span><span class=cF0>);
|
|
<a name="l422"></a>}
|
|
<a name="l423"></a>
|
|
<a name="l424"></a></span><span class=cF1>U0</span><span class=cF0> DoWenceslas()
|
|
<a name="l425"></a>{
|
|
<a name="l426"></a> </span><span class=cF9>I64</span><span class=cF0> i;
|
|
<a name="l427"></a> </span><span class=cF9>CTask</span><span class=cF0> *task=</span><span class=cF5>User</span><span class=cF0>(</span><span class=cF6>"#include \"::/Demo/Games/Wenceslas\";\n"</span><span class=cF0>);
|
|
<a name="l428"></a> </span><span class=cF5>BirthWait</span><span class=cF0>(&task->popup_task);
|
|
<a name="l429"></a> </span><span class=cF5>TaskWait</span><span class=cF0>(task->popup_task);
|
|
<a name="l430"></a> </span><span class=cF5>PostMsgWait</span><span class=cF0>(task->popup_task,</span><span class=cF3>MSG_KEY_DOWN_UP</span><span class=cF0>,</span><span class=cF3>CH_SPACE</span><span class=cF0>,0);
|
|
<a name="l431"></a> </span><span class=cF5>Sleep</span><span class=cF0>(100);
|
|
<a name="l432"></a> </span><span class=cF5>BirthWait</span><span class=cF0>(&task->popup_task);
|
|
<a name="l433"></a> </span><span class=cF5>TaskWait</span><span class=cF0>(task->popup_task);
|
|
<a name="l434"></a> </span><span class=cF5>PostMsgWait</span><span class=cF0>(task->popup_task,</span><span class=cF3>MSG_KEY_DOWN_UP</span><span class=cF0>,</span><span class=cF3>CH_SPACE</span><span class=cF0>,0);
|
|
<a name="l435"></a> </span><span class=cF5>Sleep</span><span class=cF0>(100);
|
|
<a name="l436"></a> </span><span class=cF5>BirthWait</span><span class=cF0>(&task->popup_task);
|
|
<a name="l437"></a> </span><span class=cF5>TaskWait</span><span class=cF0>(task->popup_task);
|
|
<a name="l438"></a> </span><span class=cF5>PostMsgWait</span><span class=cF0>(task->popup_task,</span><span class=cF3>MSG_KEY_DOWN_UP</span><span class=cF0>,</span><span class=cF3>CH_SPACE</span><span class=cF0>,0);
|
|
<a name="l439"></a> </span><span class=cF5>Sleep</span><span class=cF0>(100);
|
|
<a name="l440"></a> </span><span class=cF1>for</span><span class=cF0> (i=0;i<25;i++) </span><span class=cF7>{</span><span class=cF0>
|
|
<a name="l441"></a> </span><span class=cF5>PostMsgWait</span><span class=cF0>(task,</span><span class=cF3>MSG_KEY_DOWN_UP</span><span class=cF0>,0,</span><span class=cF3>SC_CURSOR_DOWN</span><span class=cF0>);
|
|
<a name="l442"></a> </span><span class=cF5>PostMsgWait</span><span class=cF0>(task,</span><span class=cF3>MSG_KEY_DOWN_UP</span><span class=cF0>,0,</span><span class=cF3>SC_CURSOR_RIGHT</span><span class=cF0>);
|
|
<a name="l443"></a> </span><span class=cF5>Sleep</span><span class=cF0>(25);
|
|
<a name="l444"></a> </span><span class=cF7>}</span><span class=cF0>
|
|
<a name="l445"></a> </span><span class=cF5>PostMsgWait</span><span class=cF0>(task,</span><span class=cF3>MSG_KEY_DOWN_UP</span><span class=cF0>,</span><span class=cF3>CH_SHIFT_ESC</span><span class=cF0>,0);
|
|
<a name="l446"></a> </span><span class=cF5>DeathWait</span><span class=cF0>(&task,</span><span class=cF3>TRUE</span><span class=cF0>);
|
|
<a name="l447"></a>}
|
|
<a name="l448"></a>
|
|
<a name="l449"></a></span><span class=cF1>U0</span><span class=cF0> DoTreeCheckers()
|
|
<a name="l450"></a>{
|
|
<a name="l451"></a> </span><span class=cF9>I64</span><span class=cF0> task_num;
|
|
<a name="l452"></a> </span><span class=cF9>CTask</span><span class=cF0> *task=</span><span class=cF5>User</span><span class=cF0>(</span><span class=cF6>"#include \"::/Demo/Games/TreeCheckers\";\n"</span><span class=cF0>);
|
|
<a name="l453"></a>
|
|
<a name="l454"></a> task_num=</span><span class=cF5>BirthWait</span><span class=cF0>(&task->popup_task);
|
|
<a name="l455"></a> </span><span class=cF5>TaskWait</span><span class=cF0>(task->popup_task);
|
|
<a name="l456"></a> </span><span class=cF5>PostMsgWait</span><span class=cF0>(task->popup_task,</span><span class=cF3>MSG_KEY_DOWN_UP</span><span class=cF0>,0,</span><span class=cF3>SC_CURSOR_DOWN</span><span class=cF0>);
|
|
<a name="l457"></a> </span><span class=cF5>PostMsgWait</span><span class=cF0>(task->popup_task,</span><span class=cF3>MSG_KEY_DOWN_UP</span><span class=cF0>,0,</span><span class=cF3>SC_CURSOR_DOWN</span><span class=cF0>);
|
|
<a name="l458"></a> </span><span class=cF5>PostMsgWait</span><span class=cF0>(task->popup_task,</span><span class=cF3>MSG_KEY_DOWN_UP</span><span class=cF0>,</span><span class=cF3>CH_SPACE</span><span class=cF0>,0);
|
|
<a name="l459"></a>
|
|
<a name="l460"></a> </span><span class=cF5>BirthWait</span><span class=cF0>(&task->popup_task,task_num);
|
|
<a name="l461"></a> </span><span class=cF5>TaskWait</span><span class=cF0>(task->popup_task);
|
|
<a name="l462"></a> </span><span class=cF5>PostMsgWait</span><span class=cF0>(task->popup_task,</span><span class=cF3>MSG_KEY_DOWN_UP</span><span class=cF0>,</span><span class=cF3>CH_SPACE</span><span class=cF0>,0);
|
|
<a name="l463"></a>
|
|
<a name="l464"></a> </span><span class=cF5>Sleep</span><span class=cF0>(500);
|
|
<a name="l465"></a>
|
|
<a name="l466"></a> </span><span class=cF5>PostMsgWait</span><span class=cF0>(task,</span><span class=cF3>MSG_KEY_DOWN_UP</span><span class=cF0>,</span><span class=cF6>'\n'</span><span class=cF0>,0);
|
|
<a name="l467"></a> </span><span class=cF5>Sleep</span><span class=cF0>(500);
|
|
<a name="l468"></a> </span><span class=cF5>PostMsgWait</span><span class=cF0>(task,</span><span class=cF3>MSG_KEY_DOWN_UP</span><span class=cF0>,</span><span class=cF3>CH_SHIFT_ESC</span><span class=cF0>,0);
|
|
<a name="l469"></a> </span><span class=cF5>DeathWait</span><span class=cF0>(&task,</span><span class=cF3>TRUE</span><span class=cF0>);
|
|
<a name="l470"></a>}
|
|
<a name="l471"></a>
|
|
<a name="l472"></a></span><span class=cF1>U0</span><span class=cF0> DoMorseCode()
|
|
<a name="l473"></a>{
|
|
<a name="l474"></a> </span><span class=cF9>CTask</span><span class=cF0> *task=</span><span class=cF5>User</span><span class=cF0>;
|
|
<a name="l475"></a> </span><span class=cF5>XTalkWait</span><span class=cF0>(task,</span><span class=cF6>"#include \"::/Demo/Snd/MorseCode\";\n"</span><span class=cF0>);
|
|
<a name="l476"></a> </span><span class=cF5>Sleep</span><span class=cF0>(50);
|
|
<a name="l477"></a>
|
|
<a name="l478"></a> </span><span class=cF5>PostMsg</span><span class=cF0>(task,</span><span class=cF3>MSG_KEY_DOWN</span><span class=cF0>,</span><span class=cF3>CH_SPACE</span><span class=cF0>,0);
|
|
<a name="l479"></a> </span><span class=cF5>Sleep</span><span class=cF0>(200);
|
|
<a name="l480"></a> </span><span class=cF5>PostMsg</span><span class=cF0>(task,</span><span class=cF3>MSG_KEY_UP</span><span class=cF0>,</span><span class=cF3>CH_SPACE</span><span class=cF0>,0);
|
|
<a name="l481"></a> </span><span class=cF5>Sleep</span><span class=cF0>(350);
|
|
<a name="l482"></a>
|
|
<a name="l483"></a> </span><span class=cF5>PostMsg</span><span class=cF0>(task,</span><span class=cF3>MSG_KEY_DOWN</span><span class=cF0>,</span><span class=cF3>CH_SPACE</span><span class=cF0>,0);
|
|
<a name="l484"></a> </span><span class=cF5>Sleep</span><span class=cF0>(50);
|
|
<a name="l485"></a> </span><span class=cF5>PostMsg</span><span class=cF0>(task,</span><span class=cF3>MSG_KEY_UP</span><span class=cF0>,</span><span class=cF3>CH_SPACE</span><span class=cF0>,0);
|
|
<a name="l486"></a> </span><span class=cF5>Sleep</span><span class=cF0>(350);
|
|
<a name="l487"></a>
|
|
<a name="l488"></a> </span><span class=cF5>PostMsg</span><span class=cF0>(task,</span><span class=cF3>MSG_KEY_DOWN</span><span class=cF0>,</span><span class=cF3>CH_SPACE</span><span class=cF0>,0);
|
|
<a name="l489"></a> </span><span class=cF5>Sleep</span><span class=cF0>(50);
|
|
<a name="l490"></a> </span><span class=cF5>PostMsg</span><span class=cF0>(task,</span><span class=cF3>MSG_KEY_UP</span><span class=cF0>,</span><span class=cF3>CH_SPACE</span><span class=cF0>,0);
|
|
<a name="l491"></a> </span><span class=cF5>Sleep</span><span class=cF0>(25);
|
|
<a name="l492"></a> </span><span class=cF5>PostMsg</span><span class=cF0>(task,</span><span class=cF3>MSG_KEY_DOWN</span><span class=cF0>,</span><span class=cF3>CH_SPACE</span><span class=cF0>,0);
|
|
<a name="l493"></a> </span><span class=cF5>Sleep</span><span class=cF0>(200);
|
|
<a name="l494"></a> </span><span class=cF5>PostMsg</span><span class=cF0>(task,</span><span class=cF3>MSG_KEY_UP</span><span class=cF0>,</span><span class=cF3>CH_SPACE</span><span class=cF0>,0);
|
|
<a name="l495"></a> </span><span class=cF5>Sleep</span><span class=cF0>(25);
|
|
<a name="l496"></a> </span><span class=cF5>PostMsg</span><span class=cF0>(task,</span><span class=cF3>MSG_KEY_DOWN</span><span class=cF0>,</span><span class=cF3>CH_SPACE</span><span class=cF0>,0);
|
|
<a name="l497"></a> </span><span class=cF5>Sleep</span><span class=cF0>(50);
|
|
<a name="l498"></a> </span><span class=cF5>PostMsg</span><span class=cF0>(task,</span><span class=cF3>MSG_KEY_UP</span><span class=cF0>,</span><span class=cF3>CH_SPACE</span><span class=cF0>,0);
|
|
<a name="l499"></a> </span><span class=cF5>Sleep</span><span class=cF0>(500);
|
|
<a name="l500"></a>
|
|
<a name="l501"></a> </span><span class=cF5>PostMsgWait</span><span class=cF0>(task,</span><span class=cF3>MSG_KEY_DOWN_UP</span><span class=cF0>,</span><span class=cF3>CH_SHIFT_ESC</span><span class=cF0>,0);
|
|
<a name="l502"></a> </span><span class=cF5>DeathWait</span><span class=cF0>(&task,</span><span class=cF3>TRUE</span><span class=cF0>);
|
|
<a name="l503"></a>}
|
|
<a name="l504"></a>
|
|
<a name="l505"></a></span><span class=cF1>U0</span><span class=cF0> DoPixCollision()
|
|
<a name="l506"></a>{
|
|
<a name="l507"></a> </span><span class=cF9>I64</span><span class=cF0> w,h;
|
|
<a name="l508"></a> </span><span class=cF9>CTask</span><span class=cF0> *task=</span><span class=cF5>User</span><span class=cF0>;
|
|
<a name="l509"></a> </span><span class=cF5>XTalkWait</span><span class=cF0>(task,</span><span class=cF6>"#include \"::/Demo/Graphics/Collision\";\n"</span><span class=cF0>);
|
|
<a name="l510"></a> w=task->pix_width>>1 +task->pix_left+task->scroll_x;
|
|
<a name="l511"></a> h=task->pix_height>>1+task->pix_top +task->scroll_y;
|
|
<a name="l512"></a> </span><span class=cF5>MsSet</span><span class=cF0>(w-35,h-35);
|
|
<a name="l513"></a> </span><span class=cF5>InSetMs</span><span class=cF0>(10,w+35,w+35);
|
|
<a name="l514"></a> </span><span class=cF5>PostMsgWait</span><span class=cF0>(task,</span><span class=cF3>MSG_KEY_DOWN_UP</span><span class=cF0>,</span><span class=cF3>CH_SPACE</span><span class=cF0>,0);
|
|
<a name="l515"></a> </span><span class=cF5>DeathWait</span><span class=cF0>(&task,</span><span class=cF3>TRUE</span><span class=cF0>);
|
|
<a name="l516"></a>}
|
|
<a name="l517"></a>
|
|
<a name="l518"></a></span><span class=cF1>U0</span><span class=cF0> DoBlackDiamond()
|
|
<a name="l519"></a>{
|
|
<a name="l520"></a> </span><span class=cF9>I64</span><span class=cF0> i;
|
|
<a name="l521"></a> </span><span class=cF9>CTask</span><span class=cF0> *task=</span><span class=cF5>User</span><span class=cF0>;
|
|
<a name="l522"></a> </span><span class=cF5>XTalkWait</span><span class=cF0>(task,</span><span class=cF6>"#include \"::/Demo/Games/BlackDiamond\";\n"</span><span class=cF0>);
|
|
<a name="l523"></a> </span><span class=cF1>for</span><span class=cF0> (i=0;i<15;i++) </span><span class=cF7>{</span><span class=cF0>
|
|
<a name="l524"></a> </span><span class=cF5>PostMsgWait</span><span class=cF0>(task,</span><span class=cF3>MSG_KEY_DOWN_UP</span><span class=cF0>,0,</span><span class=cF3>SC_CURSOR_RIGHT</span><span class=cF0>);
|
|
<a name="l525"></a> </span><span class=cF5>Sleep</span><span class=cF0>(75);
|
|
<a name="l526"></a> </span><span class=cF7>}</span><span class=cF0>
|
|
<a name="l527"></a> </span><span class=cF1>for</span><span class=cF0> (i=0;i<12;i++) </span><span class=cF7>{</span><span class=cF0>
|
|
<a name="l528"></a> </span><span class=cF5>PostMsgWait</span><span class=cF0>(task,</span><span class=cF3>MSG_KEY_DOWN_UP</span><span class=cF0>,0,</span><span class=cF3>SC_CURSOR_DOWN</span><span class=cF0>);
|
|
<a name="l529"></a> </span><span class=cF5>Sleep</span><span class=cF0>(75);
|
|
<a name="l530"></a> </span><span class=cF7>}</span><span class=cF0>
|
|
<a name="l531"></a> </span><span class=cF5>PostMsgWait</span><span class=cF0>(task,</span><span class=cF3>MSG_KEY_DOWN_UP</span><span class=cF0>,</span><span class=cF3>CH_SHIFT_ESC</span><span class=cF0>,0);
|
|
<a name="l532"></a> </span><span class=cF5>DeathWait</span><span class=cF0>(&task,</span><span class=cF3>TRUE</span><span class=cF0>);
|
|
<a name="l533"></a>}
|
|
<a name="l534"></a>
|
|
<a name="l535"></a></span><span class=cF1>U0</span><span class=cF0> DoCtrlR1()
|
|
<a name="l536"></a>{
|
|
<a name="l537"></a> </span><span class=cF9>I64</span><span class=cF0> i,task_num;
|
|
<a name="l538"></a> </span><span class=cF9>CTask</span><span class=cF0> *task=</span><span class=cF5>User</span><span class=cF0>;
|
|
<a name="l539"></a> </span><span class=cF5>XTalkWait</span><span class=cF0>(task,</span><span class=cF6>"//"</span><span class=cF0>);
|
|
<a name="l540"></a> </span><span class=cF5>PostMsg</span><span class=cF0>(task,</span><span class=cF3>MSG_KEY_DOWN_UP</span><span class=cF0>,</span><span class=cF3>CH_CTRLR</span><span class=cF0>,0);
|
|
<a name="l541"></a> task_num=</span><span class=cF5>BirthWait</span><span class=cF0>(&task->popup_task);
|
|
<a name="l542"></a> </span><span class=cF5>TaskWait</span><span class=cF0>(task->popup_task);
|
|
<a name="l543"></a> </span><span class=cF1>for</span><span class=cF0> (i=0;i<1;i++)
|
|
<a name="l544"></a> </span><span class=cF5>PostMsgWait</span><span class=cF0>(task->popup_task,</span><span class=cF3>MSG_KEY_DOWN_UP</span><span class=cF0>,0,</span><span class=cF3>SC_CURSOR_DOWN</span><span class=cF0>);
|
|
<a name="l545"></a> </span><span class=cF5>PostMsg</span><span class=cF0>(task->popup_task,</span><span class=cF3>MSG_KEY_DOWN_UP</span><span class=cF0>,</span><span class=cF3>CH_SPACE</span><span class=cF0>,0);
|
|
<a name="l546"></a> </span><span class=cF2>//Color</span><span class=cF0>
|
|
<a name="l547"></a> task_num=</span><span class=cF5>BirthWait</span><span class=cF0>(&task->popup_task,task_num);
|
|
<a name="l548"></a> </span><span class=cF5>TaskWait</span><span class=cF0>(task->popup_task);
|
|
<a name="l549"></a> </span><span class=cF1>for</span><span class=cF0> (i=0;i<2;i++)
|
|
<a name="l550"></a> </span><span class=cF5>PostMsgWait</span><span class=cF0>(task->popup_task,</span><span class=cF3>MSG_KEY_DOWN_UP</span><span class=cF0>,0,</span><span class=cF3>SC_CURSOR_DOWN</span><span class=cF0>);
|
|
<a name="l551"></a> </span><span class=cF5>PostMsg</span><span class=cF0>(task->popup_task,</span><span class=cF3>MSG_KEY_DOWN_UP</span><span class=cF0>,</span><span class=cF3>CH_SPACE</span><span class=cF0>,0);
|
|
<a name="l552"></a> task_num=</span><span class=cF5>BirthWait</span><span class=cF0>(&task->popup_task,task_num);
|
|
<a name="l553"></a> </span><span class=cF5>TaskWait</span><span class=cF0>(task->popup_task);
|
|
<a name="l554"></a> </span><span class=cF1>for</span><span class=cF0> (i=0;i<2;i++)
|
|
<a name="l555"></a> </span><span class=cF5>PostMsgWait</span><span class=cF0>(task->popup_task,</span><span class=cF3>MSG_KEY_DOWN_UP</span><span class=cF0>,0,</span><span class=cF3>SC_CURSOR_DOWN</span><span class=cF0>);
|
|
<a name="l556"></a> </span><span class=cF5>PostMsg</span><span class=cF0>(task->popup_task,</span><span class=cF3>MSG_KEY_DOWN_UP</span><span class=cF0>,</span><span class=cF3>CH_SPACE</span><span class=cF0>,0);
|
|
<a name="l557"></a>
|
|
<a name="l558"></a> </span><span class=cF2>//Width</span><span class=cF0>
|
|
<a name="l559"></a> task_num=</span><span class=cF5>BirthWait</span><span class=cF0>(&task->popup_task,task_num);
|
|
<a name="l560"></a> </span><span class=cF5>TaskWait</span><span class=cF0>(task->popup_task);
|
|
<a name="l561"></a> </span><span class=cF1>for</span><span class=cF0> (i=0;i<4;i++)
|
|
<a name="l562"></a> </span><span class=cF5>PostMsgWait</span><span class=cF0>(task->popup_task,</span><span class=cF3>MSG_KEY_DOWN_UP</span><span class=cF0>,0,</span><span class=cF3>SC_CURSOR_DOWN</span><span class=cF0>);
|
|
<a name="l563"></a> </span><span class=cF5>PostMsg</span><span class=cF0>(task->popup_task,</span><span class=cF3>MSG_KEY_DOWN_UP</span><span class=cF0>,</span><span class=cF3>CH_SPACE</span><span class=cF0>,0);
|
|
<a name="l564"></a> task_num=</span><span class=cF5>BirthWait</span><span class=cF0>(&task->popup_task,task_num);
|
|
<a name="l565"></a> </span><span class=cF5>TaskWait</span><span class=cF0>(task->popup_task);
|
|
<a name="l566"></a> </span><span class=cF1>for</span><span class=cF0> (i=0;i<4;i++)
|
|
<a name="l567"></a> </span><span class=cF5>PostMsgWait</span><span class=cF0>(task->popup_task,</span><span class=cF3>MSG_KEY_DOWN_UP</span><span class=cF0>,0,</span><span class=cF3>SC_CURSOR_DOWN</span><span class=cF0>);
|
|
<a name="l568"></a> </span><span class=cF5>PostMsg</span><span class=cF0>(task->popup_task,</span><span class=cF3>MSG_KEY_DOWN_UP</span><span class=cF0>,</span><span class=cF3>CH_SPACE</span><span class=cF0>,0);
|
|
<a name="l569"></a>
|
|
<a name="l570"></a> </span><span class=cF2>//Line</span><span class=cF0>
|
|
<a name="l571"></a> task_num=</span><span class=cF5>BirthWait</span><span class=cF0>(&task->popup_task,task_num);
|
|
<a name="l572"></a> </span><span class=cF5>TaskWait</span><span class=cF0>(task->popup_task);
|
|
<a name="l573"></a> </span><span class=cF1>for</span><span class=cF0> (i=0;i<7;i++)
|
|
<a name="l574"></a> </span><span class=cF5>PostMsgWait</span><span class=cF0>(task->popup_task,</span><span class=cF3>MSG_KEY_DOWN_UP</span><span class=cF0>,0,</span><span class=cF3>SC_CURSOR_DOWN</span><span class=cF0>);
|
|
<a name="l575"></a> </span><span class=cF5>PostMsg</span><span class=cF0>(task->popup_task,</span><span class=cF3>MSG_KEY_DOWN_UP</span><span class=cF0>,</span><span class=cF3>CH_SPACE</span><span class=cF0>,0);
|
|
<a name="l576"></a> </span><span class=cF5>DeathWait</span><span class=cF0>(&task->popup_task);
|
|
<a name="l577"></a> </span><span class=cF5>PostMsgWait</span><span class=cF0>(task,</span><span class=cF3>MSG_MS_L_DOWN</span><span class=cF0>,150,150);
|
|
<a name="l578"></a> </span><span class=cF5>PostMsgWait</span><span class=cF0>(task,</span><span class=cF3>MSG_MS_L_UP</span><span class=cF0>,150,95);
|
|
<a name="l579"></a> </span><span class=cF5>Sleep</span><span class=cF0>(250);
|
|
<a name="l580"></a> </span><span class=cF5>PostMsgWait</span><span class=cF0>(task,</span><span class=cF3>MSG_MS_L_DOWN</span><span class=cF0>,150,150);
|
|
<a name="l581"></a> </span><span class=cF5>PostMsgWait</span><span class=cF0>(task,</span><span class=cF3>MSG_MS_L_UP</span><span class=cF0>,190,190);
|
|
<a name="l582"></a> </span><span class=cF5>Sleep</span><span class=cF0>(250);
|
|
<a name="l583"></a> </span><span class=cF5>PostMsgWait</span><span class=cF0>(task,</span><span class=cF3>MSG_MS_L_DOWN</span><span class=cF0>,150,150);
|
|
<a name="l584"></a> </span><span class=cF5>PostMsgWait</span><span class=cF0>(task,</span><span class=cF3>MSG_MS_L_UP</span><span class=cF0>,110,190);
|
|
<a name="l585"></a> </span><span class=cF5>Sleep</span><span class=cF0>(250);
|
|
<a name="l586"></a> </span><span class=cF5>PostMsg</span><span class=cF0>(task,</span><span class=cF3>MSG_MS_R_DOWN_UP</span><span class=cF0>,100,100);
|
|
<a name="l587"></a>
|
|
<a name="l588"></a> </span><span class=cF2>//Color</span><span class=cF0>
|
|
<a name="l589"></a> task_num=</span><span class=cF5>BirthWait</span><span class=cF0>(&task->popup_task,task_num);
|
|
<a name="l590"></a> </span><span class=cF5>TaskWait</span><span class=cF0>(task->popup_task);
|
|
<a name="l591"></a> </span><span class=cF1>for</span><span class=cF0> (i=0;i<2;i++)
|
|
<a name="l592"></a> </span><span class=cF5>PostMsgWait</span><span class=cF0>(task->popup_task,</span><span class=cF3>MSG_KEY_DOWN_UP</span><span class=cF0>,0,</span><span class=cF3>SC_CURSOR_DOWN</span><span class=cF0>);
|
|
<a name="l593"></a> </span><span class=cF5>PostMsg</span><span class=cF0>(task->popup_task,</span><span class=cF3>MSG_KEY_DOWN_UP</span><span class=cF0>,</span><span class=cF3>CH_SPACE</span><span class=cF0>,0);
|
|
<a name="l594"></a> task_num=</span><span class=cF5>BirthWait</span><span class=cF0>(&task->popup_task,task_num);
|
|
<a name="l595"></a> </span><span class=cF5>TaskWait</span><span class=cF0>(task->popup_task);
|
|
<a name="l596"></a> </span><span class=cF1>for</span><span class=cF0> (i=0;i<3;i++)
|
|
<a name="l597"></a> </span><span class=cF5>PostMsgWait</span><span class=cF0>(task->popup_task,</span><span class=cF3>MSG_KEY_DOWN_UP</span><span class=cF0>,0,</span><span class=cF3>SC_CURSOR_DOWN</span><span class=cF0>);
|
|
<a name="l598"></a> </span><span class=cF5>PostMsg</span><span class=cF0>(task->popup_task,</span><span class=cF3>MSG_KEY_DOWN_UP</span><span class=cF0>,</span><span class=cF3>CH_SPACE</span><span class=cF0>,0);
|
|
<a name="l599"></a>
|
|
<a name="l600"></a> </span><span class=cF2>//Circle</span><span class=cF0>
|
|
<a name="l601"></a> task_num=</span><span class=cF5>BirthWait</span><span class=cF0>(&task->popup_task,task_num);
|
|
<a name="l602"></a> </span><span class=cF5>TaskWait</span><span class=cF0>(task->popup_task);
|
|
<a name="l603"></a> </span><span class=cF1>for</span><span class=cF0> (i=0;i<10;i++)
|
|
<a name="l604"></a> </span><span class=cF5>PostMsgWait</span><span class=cF0>(task->popup_task,</span><span class=cF3>MSG_KEY_DOWN_UP</span><span class=cF0>,0,</span><span class=cF3>SC_CURSOR_DOWN</span><span class=cF0>);
|
|
<a name="l605"></a> </span><span class=cF5>PostMsg</span><span class=cF0>(task->popup_task,</span><span class=cF3>MSG_KEY_DOWN_UP</span><span class=cF0>,</span><span class=cF3>CH_SPACE</span><span class=cF0>,0);
|
|
<a name="l606"></a> </span><span class=cF5>DeathWait</span><span class=cF0>(&task->popup_task);
|
|
<a name="l607"></a> </span><span class=cF5>PostMsgWait</span><span class=cF0>(task,</span><span class=cF3>MSG_MS_L_DOWN</span><span class=cF0>,150,150);
|
|
<a name="l608"></a> </span><span class=cF5>PostMsgWait</span><span class=cF0>(task,</span><span class=cF3>MSG_MS_L_UP</span><span class=cF0>,190,190);
|
|
<a name="l609"></a> </span><span class=cF5>Sleep</span><span class=cF0>(250);
|
|
<a name="l610"></a> </span><span class=cF5>PostMsg</span><span class=cF0>(task,</span><span class=cF3>MSG_MS_R_DOWN_UP</span><span class=cF0>,100,100);
|
|
<a name="l611"></a>
|
|
<a name="l612"></a> </span><span class=cF2>//Exit</span><span class=cF0>
|
|
<a name="l613"></a> </span><span class=cF5>BirthWait</span><span class=cF0>(&task->popup_task);
|
|
<a name="l614"></a> </span><span class=cF5>PostMsgWait</span><span class=cF0>(task->popup_task,</span><span class=cF3>MSG_KEY_DOWN_UP</span><span class=cF0>,0,</span><span class=cF3>SC_CURSOR_DOWN</span><span class=cF0>+</span><span class=cF3>SCF_CTRL</span><span class=cF0>);
|
|
<a name="l615"></a> </span><span class=cF5>PostMsgWait</span><span class=cF0>(task->popup_task,</span><span class=cF3>MSG_KEY_DOWN_UP</span><span class=cF0>,0,</span><span class=cF3>SC_CURSOR_UP</span><span class=cF0>);
|
|
<a name="l616"></a> </span><span class=cF5>PostMsg</span><span class=cF0>(task->popup_task,</span><span class=cF3>MSG_KEY_DOWN_UP</span><span class=cF0>,</span><span class=cF3>CH_SPACE</span><span class=cF0>,0);
|
|
<a name="l617"></a> </span><span class=cF5>DeathWait</span><span class=cF0>(&task->popup_task);
|
|
<a name="l618"></a> </span><span class=cF5>Sleep</span><span class=cF0>(1000);
|
|
<a name="l619"></a> </span><span class=cF5>XTalk</span><span class=cF0>(task,</span><span class=cF6>"\n"</span><span class=cF0>);
|
|
<a name="l620"></a> </span><span class=cF5>DeathWait</span><span class=cF0>(&task,</span><span class=cF3>TRUE</span><span class=cF0>);
|
|
<a name="l621"></a>}
|
|
<a name="l622"></a>
|
|
<a name="l623"></a></span><span class=cF1>U0</span><span class=cF0> DoF2Macro()
|
|
<a name="l624"></a>{
|
|
<a name="l625"></a> </span><span class=cF9>I64</span><span class=cF0> i;
|
|
<a name="l626"></a> </span><span class=cF1>U8</span><span class=cF0> *ptr=</span><span class=cF6>"\"Boo!\\n\";\n"</span><span class=cF0>;
|
|
<a name="l627"></a> </span><span class=cF9>CTask</span><span class=cF0> *task=</span><span class=cF5>User</span><span class=cF0>;
|
|
<a name="l628"></a> </span><span class=cF5>DeathWait</span><span class=cF0>(&</span><span class=cFB>sys_macro_task</span><span class=cF0>);
|
|
<a name="l629"></a> </span><span class=cF5>PostMsgWait</span><span class=cF0>(task,</span><span class=cF3>MSG_KEY_DOWN_UP</span><span class=cF0>,0,</span><span class=cF3>SC_F2</span><span class=cF0>);
|
|
<a name="l630"></a> </span><span class=cF5>BirthWait</span><span class=cF0>(&</span><span class=cFB>sys_macro_task</span><span class=cF0>);
|
|
<a name="l631"></a> </span><span class=cF5>TaskWait</span><span class=cF0>(</span><span class=cFB>sys_macro_task</span><span class=cF0>);
|
|
<a name="l632"></a>
|
|
<a name="l633"></a> </span><span class=cF5>PostMsgWait</span><span class=cF0>(</span><span class=cFB>sys_macro_task</span><span class=cF0>,</span><span class=cF3>MSG_KEY_DOWN_UP</span><span class=cF0>,0,</span><span class=cF3>SC_CURSOR_RIGHT</span><span class=cF0>|</span><span class=cF3>SCF_CTRL</span><span class=cF0>);
|
|
<a name="l634"></a> </span><span class=cF5>PostMsgWait</span><span class=cF0>(</span><span class=cFB>sys_macro_task</span><span class=cF0>,</span><span class=cF3>MSG_KEY_DOWN_UP</span><span class=cF0>,0,</span><span class=cF3>SC_CURSOR_DOWN</span><span class=cF0>);
|
|
<a name="l635"></a> </span><span class=cF5>PostMsgWait</span><span class=cF0>(</span><span class=cFB>sys_macro_task</span><span class=cF0>,</span><span class=cF3>MSG_KEY_DOWN_UP</span><span class=cF0>,0,</span><span class=cF3>SC_CURSOR_RIGHT</span><span class=cF0>);
|
|
<a name="l636"></a> </span><span class=cF5>PostMsgWait</span><span class=cF0>(</span><span class=cFB>sys_macro_task</span><span class=cF0>,</span><span class=cF3>MSG_KEY_DOWN_UP</span><span class=cF0>,</span><span class=cF3>CH_SPACE</span><span class=cF0>,0); </span><span class=cF2>//Press RECORD</span><span class=cF0>
|
|
<a name="l637"></a> </span><span class=cF1>while</span><span class=cF0> (!</span><span class=cF5>Bt</span><span class=cF7>(</span><span class=cF0>&</span><span class=cFB>sys_semas</span><span class=cF0>[</span><span class=cF3>SEMA_RECORD_MACRO</span><span class=cF0>],0</span><span class=cF7>)</span><span class=cF0>)
|
|
<a name="l638"></a> </span><span class=cF5>Yield</span><span class=cF0>;
|
|
<a name="l639"></a>
|
|
<a name="l640"></a> </span><span class=cF1>while</span><span class=cF0> (*ptr)
|
|
<a name="l641"></a> </span><span class=cF5>PostMsgWait</span><span class=cF0>(task,</span><span class=cF3>MSG_KEY_DOWN</span><span class=cF0>,*ptr++,0);
|
|
<a name="l642"></a>
|
|
<a name="l643"></a> </span><span class=cF5>PostMsgWait</span><span class=cF0>(</span><span class=cFB>sys_macro_task</span><span class=cF0>,</span><span class=cF3>MSG_KEY_DOWN_UP</span><span class=cF0>,0,</span><span class=cF3>SC_CURSOR_DOWN</span><span class=cF0>);
|
|
<a name="l644"></a> </span><span class=cF5>PostMsgWait</span><span class=cF0>(</span><span class=cFB>sys_macro_task</span><span class=cF0>,</span><span class=cF3>MSG_KEY_DOWN_UP</span><span class=cF0>,0,</span><span class=cF3>SC_CURSOR_DOWN</span><span class=cF0>);
|
|
<a name="l645"></a> </span><span class=cF5>PostMsgWait</span><span class=cF0>(</span><span class=cFB>sys_macro_task</span><span class=cF0>,</span><span class=cF3>MSG_KEY_DOWN_UP</span><span class=cF0>,</span><span class=cF3>CH_SPACE</span><span class=cF0>,0); </span><span class=cF2>//Press STOP</span><span class=cF0>
|
|
<a name="l646"></a>
|
|
<a name="l647"></a> </span><span class=cF1>for</span><span class=cF0> (i=0;i<10;i++)
|
|
<a name="l648"></a> </span><span class=cF5>PostMsgWait</span><span class=cF0>(task,</span><span class=cF3>MSG_KEY_DOWN_UP</span><span class=cF0>,0,</span><span class=cF3>SC_F2</span><span class=cF0>|</span><span class=cF3>SCF_SHIFT</span><span class=cF0>);
|
|
<a name="l649"></a>
|
|
<a name="l650"></a> </span><span class=cF5>PostMsg</span><span class=cF0>(</span><span class=cFB>sys_macro_task</span><span class=cF0>,</span><span class=cF3>MSG_KEY_DOWN_UP</span><span class=cF0>,</span><span class=cF3>CH_SHIFT_ESC</span><span class=cF0>,0);
|
|
<a name="l651"></a> </span><span class=cF5>DeathWait</span><span class=cF0>(&</span><span class=cFB>sys_macro_task</span><span class=cF0>);
|
|
<a name="l652"></a>
|
|
<a name="l653"></a> </span><span class=cF5>Sleep</span><span class=cF0>(1000);
|
|
<a name="l654"></a> </span><span class=cF5>XTalk</span><span class=cF0>(task,</span><span class=cF6>"\n"</span><span class=cF0>);
|
|
<a name="l655"></a> </span><span class=cF5>DeathWait</span><span class=cF0>(&task,</span><span class=cF3>TRUE</span><span class=cF0>);
|
|
<a name="l656"></a>}
|
|
<a name="l657"></a>
|
|
<a name="l658"></a></span><span class=cF1>U0</span><span class=cF0> DoLightTable()
|
|
<a name="l659"></a>{
|
|
<a name="l660"></a> </span><span class=cF9>CTask</span><span class=cF0> *task=</span><span class=cF5>User</span><span class=cF0>(</span><span class=cF6>"#include \"::/Demo/Graphics/LightTable\";\n\n"</span><span class=cF0>);
|
|
<a name="l661"></a> </span><span class=cF5>TaskWait</span><span class=cF0>(task);
|
|
<a name="l662"></a> </span><span class=cF5>PostMsgWait</span><span class=cF0>(task,</span><span class=cF3>MSG_KEY_DOWN_UP</span><span class=cF0>,</span><span class=cF6>'2'</span><span class=cF0>,0);
|
|
<a name="l663"></a> </span><span class=cF5>PostMsgWait</span><span class=cF0>(task,</span><span class=cF3>MSG_MS_L_DOWN</span><span class=cF0>, 100 ,200);
|
|
<a name="l664"></a> </span><span class=cF5>PostMsgWait</span><span class=cF0>(task,</span><span class=cF3>MSG_MS_L_UP</span><span class=cF0>, 640-100 ,200);
|
|
<a name="l665"></a>
|
|
<a name="l666"></a> </span><span class=cF5>PostMsgWait</span><span class=cF0>(task,</span><span class=cF3>MSG_KEY_DOWN_UP</span><span class=cF0>,</span><span class=cF6>'3'</span><span class=cF0>,0);
|
|
<a name="l667"></a> </span><span class=cF5>PostMsgWait</span><span class=cF0>(task,</span><span class=cF3>MSG_MS_L_DOWN_UP</span><span class=cF0>,100 ,200);
|
|
<a name="l668"></a> </span><span class=cF5>PostMsgWait</span><span class=cF0>(task,</span><span class=cF3>MSG_MS_L_DOWN_UP</span><span class=cF0>,100 ,200);
|
|
<a name="l669"></a> </span><span class=cF5>PostMsgWait</span><span class=cF0>(task,</span><span class=cF3>MSG_MS_L_DOWN_UP</span><span class=cF0>,100 ,200);
|
|
<a name="l670"></a> </span><span class=cF5>PostMsgWait</span><span class=cF0>(task,</span><span class=cF3>MSG_MS_L_DOWN_UP</span><span class=cF0>,120 ,180);
|
|
<a name="l671"></a> </span><span class=cF5>PostMsgWait</span><span class=cF0>(task,</span><span class=cF3>MSG_MS_L_DOWN_UP</span><span class=cF0>,160 ,120);
|
|
<a name="l672"></a> </span><span class=cF5>PostMsgWait</span><span class=cF0>(task,</span><span class=cF3>MSG_MS_L_DOWN_UP</span><span class=cF0>,320 ,10);
|
|
<a name="l673"></a> </span><span class=cF5>PostMsgWait</span><span class=cF0>(task,</span><span class=cF3>MSG_MS_L_DOWN_UP</span><span class=cF0>,640-160 ,120);
|
|
<a name="l674"></a> </span><span class=cF5>PostMsgWait</span><span class=cF0>(task,</span><span class=cF3>MSG_MS_L_DOWN_UP</span><span class=cF0>,640-120 ,180);
|
|
<a name="l675"></a> </span><span class=cF5>PostMsgWait</span><span class=cF0>(task,</span><span class=cF3>MSG_MS_L_DOWN_UP</span><span class=cF0>,640-100 ,200);
|
|
<a name="l676"></a> </span><span class=cF5>PostMsgWait</span><span class=cF0>(task,</span><span class=cF3>MSG_MS_L_DOWN_UP</span><span class=cF0>,640-100 ,200);
|
|
<a name="l677"></a> </span><span class=cF5>PostMsgWait</span><span class=cF0>(task,</span><span class=cF3>MSG_MS_L_DOWN_UP</span><span class=cF0>,640-100 ,200);
|
|
<a name="l678"></a> </span><span class=cF5>PostMsgWait</span><span class=cF0>(task,</span><span class=cF3>MSG_MS_R_DOWN_UP</span><span class=cF0>,0,0);
|
|
<a name="l679"></a>
|
|
<a name="l680"></a> </span><span class=cF5>PostMsgWait</span><span class=cF0>(task,</span><span class=cF3>MSG_KEY_DOWN_UP</span><span class=cF0>,</span><span class=cF6>'4'</span><span class=cF0>,0);
|
|
<a name="l681"></a> </span><span class=cF5>PostMsgWait</span><span class=cF0>(task,</span><span class=cF3>MSG_MS_L_DOWN_UP</span><span class=cF0>,320,190);
|
|
<a name="l682"></a>
|
|
<a name="l683"></a> </span><span class=cF5>PostMsgWait</span><span class=cF0>(task,</span><span class=cF3>MSG_KEY_DOWN_UP</span><span class=cF0>,</span><span class=cF6>'5'</span><span class=cF0>,0);
|
|
<a name="l684"></a> </span><span class=cF5>PostMsgWait</span><span class=cF0>(task,</span><span class=cF3>MSG_MS_L_DOWN</span><span class=cF0>,460,280);
|
|
<a name="l685"></a> </span><span class=cF5>PostMsgWait</span><span class=cF0>(task,</span><span class=cF3>MSG_MS_L_UP</span><span class=cF0> ,500,220);
|
|
<a name="l686"></a>
|
|
<a name="l687"></a> </span><span class=cF5>Sleep</span><span class=cF0>(1500);
|
|
<a name="l688"></a> </span><span class=cF5>PostMsgWait</span><span class=cF0>(task,</span><span class=cF3>MSG_KEY_DOWN_UP</span><span class=cF0>,</span><span class=cF3>CH_ESC</span><span class=cF0>,0);
|
|
<a name="l689"></a> </span><span class=cF5>DeathWait</span><span class=cF0>(&task,</span><span class=cF3>TRUE</span><span class=cF0>);
|
|
<a name="l690"></a>}
|
|
<a name="l691"></a>
|
|
<a name="l692"></a></span><span class=cF1>U0</span><span class=cF0> DoPredatorPrey()
|
|
<a name="l693"></a>{
|
|
<a name="l694"></a> </span><span class=cF9>CTask</span><span class=cF0> *task=</span><span class=cF5>User</span><span class=cF0>(</span><span class=cF6>"#include \"::/Demo/Graphics/PredatorPrey\";\n"</span><span class=cF0>);
|
|
<a name="l695"></a> </span><span class=cF5>BirthWait</span><span class=cF0>(&task->popup_task);
|
|
<a name="l696"></a> </span><span class=cF5>TaskWait</span><span class=cF0>(task->popup_task);
|
|
<a name="l697"></a> </span><span class=cF5>PostMsgWait</span><span class=cF0>(task->popup_task,</span><span class=cF3>MSG_KEY_DOWN_UP</span><span class=cF0>,</span><span class=cF3>CH_SPACE</span><span class=cF0>,0);
|
|
<a name="l698"></a> </span><span class=cF5>Sleep</span><span class=cF0>(1500);
|
|
<a name="l699"></a> </span><span class=cF5>PostMsgWait</span><span class=cF0>(task,</span><span class=cF3>MSG_KEY_DOWN_UP</span><span class=cF0>,</span><span class=cF3>CH_SPACE</span><span class=cF0>,0);
|
|
<a name="l700"></a> </span><span class=cF5>DeathWait</span><span class=cF0>(&task,</span><span class=cF3>TRUE</span><span class=cF0>);
|
|
<a name="l701"></a>}
|
|
<a name="l702"></a>
|
|
<a name="l703"></a></span><span class=cF1>U0</span><span class=cF0> DoCharDemo()
|
|
<a name="l704"></a>{
|
|
<a name="l705"></a> </span><span class=cF9>CTask</span><span class=cF0> *task=</span><span class=cF5>User</span><span class=cF0>;
|
|
<a name="l706"></a> </span><span class=cF5>XTalkWait</span><span class=cF0>(task,</span><span class=cF6>"#include \"::/Demo/Games/CharDemo\";\n"</span><span class=cF0>);
|
|
<a name="l707"></a> </span><span class=cF5>PostMsgWait</span><span class=cF0>(task,</span><span class=cF3>MSG_KEY_DOWN_UP</span><span class=cF0>,0,</span><span class=cF3>SC_CURSOR_UP</span><span class=cF0>);
|
|
<a name="l708"></a> </span><span class=cF5>PostMsgWait</span><span class=cF0>(task,</span><span class=cF3>MSG_KEY_DOWN_UP</span><span class=cF0>,0,</span><span class=cF3>SC_CURSOR_LEFT</span><span class=cF0>);
|
|
<a name="l709"></a> </span><span class=cF5>Sleep</span><span class=cF0>(750);
|
|
<a name="l710"></a> </span><span class=cF5>PostMsg</span><span class=cF0>(task,</span><span class=cF3>MSG_KEY_DOWN_UP</span><span class=cF0>,</span><span class=cF3>CH_SHIFT_ESC</span><span class=cF0>,0);
|
|
<a name="l711"></a> </span><span class=cF5>DeathWait</span><span class=cF0>(&task,</span><span class=cF3>TRUE</span><span class=cF0>);
|
|
<a name="l712"></a>}
|
|
<a name="l713"></a>
|
|
<a name="l714"></a></span><span class=cF1>U0</span><span class=cF0> DoLattice()
|
|
<a name="l715"></a>{
|
|
<a name="l716"></a> </span><span class=cF9>I64</span><span class=cF0> i;
|
|
<a name="l717"></a> </span><span class=cF9>CTask</span><span class=cF0> *task=</span><span class=cF5>User</span><span class=cF0>;
|
|
<a name="l718"></a> </span><span class=cF5>XTalkWait</span><span class=cF0>(task,</span><span class=cF6>"#include \"::/Demo/Graphics/Lattice\";\n"</span><span class=cF0>);
|
|
<a name="l719"></a> </span><span class=cF1>for</span><span class=cF0> (i=0;i<20;i++)
|
|
<a name="l720"></a> </span><span class=cF5>PostMsgWait</span><span class=cF0>(task,</span><span class=cF3>MSG_KEY_DOWN_UP</span><span class=cF0>,0,</span><span class=cF3>SC_CURSOR_UP</span><span class=cF0>);
|
|
<a name="l721"></a> </span><span class=cF1>for</span><span class=cF0> (i=0;i<6;i++) </span><span class=cF7>{</span><span class=cF0>
|
|
<a name="l722"></a> </span><span class=cF5>PostMsgWait</span><span class=cF0>(task,</span><span class=cF3>MSG_KEY_DOWN_UP</span><span class=cF0>,</span><span class=cF6>'+'</span><span class=cF0>,0);
|
|
<a name="l723"></a> </span><span class=cF5>PostMsgWait</span><span class=cF0>(task,</span><span class=cF3>MSG_KEY_DOWN_UP</span><span class=cF0>,0,</span><span class=cF3>SC_CURSOR_LEFT</span><span class=cF0>);
|
|
<a name="l724"></a> </span><span class=cF7>}</span><span class=cF0>
|
|
<a name="l725"></a> </span><span class=cF1>for</span><span class=cF0> (i=0;i<6;i++) </span><span class=cF7>{</span><span class=cF0>
|
|
<a name="l726"></a> </span><span class=cF5>PostMsgWait</span><span class=cF0>(task,</span><span class=cF3>MSG_KEY_DOWN_UP</span><span class=cF0>,</span><span class=cF3>CH_SPACE</span><span class=cF0>,0);
|
|
<a name="l727"></a> </span><span class=cF5>PostMsgWait</span><span class=cF0>(task,</span><span class=cF3>MSG_KEY_DOWN_UP</span><span class=cF0>,0,</span><span class=cF3>SC_CURSOR_LEFT</span><span class=cF0>);
|
|
<a name="l728"></a> </span><span class=cF7>}</span><span class=cF0>
|
|
<a name="l729"></a> </span><span class=cF1>for</span><span class=cF0> (i=0;i<16;i++) </span><span class=cF7>{</span><span class=cF0>
|
|
<a name="l730"></a> </span><span class=cF5>PostMsgWait</span><span class=cF0>(task,</span><span class=cF3>MSG_KEY_DOWN_UP</span><span class=cF0>,</span><span class=cF3>CH_SPACE</span><span class=cF0>,0);
|
|
<a name="l731"></a> </span><span class=cF5>PostMsgWait</span><span class=cF0>(task,</span><span class=cF3>MSG_KEY_DOWN_UP</span><span class=cF0>,0,</span><span class=cF3>SC_CURSOR_RIGHT</span><span class=cF0>);
|
|
<a name="l732"></a> </span><span class=cF7>}</span><span class=cF0>
|
|
<a name="l733"></a> </span><span class=cF5>Sleep</span><span class=cF0>(500);
|
|
<a name="l734"></a> </span><span class=cF5>PostMsgWait</span><span class=cF0>(task,</span><span class=cF3>MSG_KEY_DOWN_UP</span><span class=cF0>,</span><span class=cF3>CH_SHIFT_ESC</span><span class=cF0>,0);
|
|
<a name="l735"></a> </span><span class=cF5>DeathWait</span><span class=cF0>(&task,</span><span class=cF3>TRUE</span><span class=cF0>);
|
|
<a name="l736"></a>}
|
|
<a name="l737"></a>
|
|
<a name="l738"></a></span><span class=cF1>U0</span><span class=cF0> DoCartesian()
|
|
<a name="l739"></a>{
|
|
<a name="l740"></a> </span><span class=cF9>CTask</span><span class=cF0> *task=</span><span class=cF5>User</span><span class=cF0>;
|
|
<a name="l741"></a> </span><span class=cF5>XTalkWait</span><span class=cF0>(task,</span><span class=cF6>"#include \"::/Demo/Graphics/Cartesian\";\n"</span><span class=cF0>);
|
|
<a name="l742"></a> </span><span class=cF5>XTalkWait</span><span class=cF0>(task,</span><span class=cF6>"0.2*x`1.5\n"</span><span class=cF0>);
|
|
<a name="l743"></a> </span><span class=cF5>Sleep</span><span class=cF0>(750);
|
|
<a name="l744"></a> </span><span class=cF5>PostMsgWait</span><span class=cF0>(task,</span><span class=cF3>MSG_KEY_DOWN_UP</span><span class=cF0>,</span><span class=cF3>CH_SHIFT_ESC</span><span class=cF0>,0);
|
|
<a name="l745"></a> </span><span class=cF5>DeathWait</span><span class=cF0>(&task,</span><span class=cF3>TRUE</span><span class=cF0>);
|
|
<a name="l746"></a>}
|
|
<a name="l747"></a>
|
|
<a name="l748"></a></span><span class=cF1>U0</span><span class=cF0> DoMPAdd()
|
|
<a name="l749"></a>{
|
|
<a name="l750"></a> </span><span class=cF9>CTask</span><span class=cF0> *task=</span><span class=cF5>User</span><span class=cF0>;
|
|
<a name="l751"></a> </span><span class=cF5>XTalkWait</span><span class=cF0>(task,</span><span class=cF6>"#include \"::/Demo/MultiCore/MPAdd\";\n"</span><span class=cF0>);
|
|
<a name="l752"></a> </span><span class=cF5>Sleep</span><span class=cF0>(750);
|
|
<a name="l753"></a> </span><span class=cF5>PostMsgWait</span><span class=cF0>(task,</span><span class=cF3>MSG_KEY_DOWN_UP</span><span class=cF0>,</span><span class=cF3>CH_SPACE</span><span class=cF0>,0);
|
|
<a name="l754"></a> </span><span class=cF5>Sleep</span><span class=cF0>(750);
|
|
<a name="l755"></a> </span><span class=cF5>PostMsgWait</span><span class=cF0>(task,</span><span class=cF3>MSG_KEY_DOWN_UP</span><span class=cF0>,</span><span class=cF3>CH_SPACE</span><span class=cF0>,0);
|
|
<a name="l756"></a> </span><span class=cF5>DeathWait</span><span class=cF0>(&task,</span><span class=cF3>TRUE</span><span class=cF0>);
|
|
<a name="l757"></a>}
|
|
<a name="l758"></a>
|
|
<a name="l759"></a></span><span class=cF1>U0</span><span class=cF0> DoFlapBat()
|
|
<a name="l760"></a>{
|
|
<a name="l761"></a> </span><span class=cF9>I64</span><span class=cF0> i;
|
|
<a name="l762"></a> </span><span class=cF9>CTask</span><span class=cF0> *task=</span><span class=cF5>User</span><span class=cF0>(</span><span class=cF6>"#include \"::/Demo/Games/FlapBat\";\n"</span><span class=cF0>);
|
|
<a name="l763"></a> </span><span class=cF5>BirthWait</span><span class=cF0>(&task->popup_task);
|
|
<a name="l764"></a> </span><span class=cF5>TaskWait</span><span class=cF0>(task->popup_task);
|
|
<a name="l765"></a> </span><span class=cF5>PostMsgWait</span><span class=cF0>(task->popup_task,</span><span class=cF3>MSG_KEY_DOWN_UP</span><span class=cF0>,</span><span class=cF3>CH_SPACE</span><span class=cF0>,0);
|
|
<a name="l766"></a> </span><span class=cF5>Sleep</span><span class=cF0>(500);
|
|
<a name="l767"></a> </span><span class=cF1>for</span><span class=cF0> (i=0;i<4;i++) </span><span class=cF7>{</span><span class=cF0>
|
|
<a name="l768"></a> </span><span class=cF5>PostMsgWait</span><span class=cF0>(task,</span><span class=cF3>MSG_KEY_DOWN</span><span class=cF0>,</span><span class=cF3>CH_SPACE</span><span class=cF0>,0);
|
|
<a name="l769"></a> </span><span class=cF5>Sleep</span><span class=cF0>(100);
|
|
<a name="l770"></a> </span><span class=cF5>PostMsgWait</span><span class=cF0>(task,</span><span class=cF3>MSG_KEY_UP</span><span class=cF0>,</span><span class=cF3>CH_SPACE</span><span class=cF0>,0);
|
|
<a name="l771"></a> </span><span class=cF5>Sleep</span><span class=cF0>(100);
|
|
<a name="l772"></a> </span><span class=cF7>}</span><span class=cF0>
|
|
<a name="l773"></a> </span><span class=cF5>PostMsgWait</span><span class=cF0>(task,</span><span class=cF3>MSG_KEY_DOWN_UP</span><span class=cF0>,</span><span class=cF3>CH_SHIFT_ESC</span><span class=cF0>,0);
|
|
<a name="l774"></a> </span><span class=cF5>DeathWait</span><span class=cF0>(&task,</span><span class=cF3>TRUE</span><span class=cF0>);
|
|
<a name="l775"></a>}
|
|
<a name="l776"></a>
|
|
<a name="l777"></a></span><span class=cF1>U0</span><span class=cF0> DoBattleLines()
|
|
<a name="l778"></a>{
|
|
<a name="l779"></a> </span><span class=cF9>CTask</span><span class=cF0> *task=</span><span class=cF5>User</span><span class=cF0>(</span><span class=cF6>"#include \"::/Demo/Games/BattleLines\";\n"</span><span class=cF0>);
|
|
<a name="l780"></a> </span><span class=cF5>BirthWait</span><span class=cF0>(&task->popup_task);
|
|
<a name="l781"></a> </span><span class=cF5>TaskWait</span><span class=cF0>(task->popup_task);
|
|
<a name="l782"></a> </span><span class=cF5>PostMsgWait</span><span class=cF0>(task->popup_task,</span><span class=cF3>MSG_KEY_DOWN_UP</span><span class=cF0>,</span><span class=cF3>CH_SPACE</span><span class=cF0>,0);
|
|
<a name="l783"></a> </span><span class=cF5>DeathWait</span><span class=cF0>(&task->popup_task);
|
|
<a name="l784"></a> </span><span class=cF5>MsSet</span><span class=cF0>(430,300,,</span><span class=cF3>TRUE</span><span class=cF0>);
|
|
<a name="l785"></a> </span><span class=cF5>InSetMs</span><span class=cF0>(10,530,400);
|
|
<a name="l786"></a> </span><span class=cF5>MsSet</span><span class=cF0>(,,,</span><span class=cF3>FALSE</span><span class=cF0>);
|
|
<a name="l787"></a> </span><span class=cF5>PostMsgWait</span><span class=cF0>(task,</span><span class=cF3>MSG_KEY_DOWN_UP</span><span class=cF0>,</span><span class=cF3>CH_SHIFT_ESC</span><span class=cF0>,0);
|
|
<a name="l788"></a> </span><span class=cF5>DeathWait</span><span class=cF0>(&task,</span><span class=cF3>TRUE</span><span class=cF0>);
|
|
<a name="l789"></a>}
|
|
<a name="l790"></a>
|
|
<a name="l791"></a></span><span class=cF1>U0</span><span class=cF0> DoBigGuns()
|
|
<a name="l792"></a>{
|
|
<a name="l793"></a> </span><span class=cF9>I64</span><span class=cF0> i,task_num;
|
|
<a name="l794"></a> </span><span class=cF9>CTask</span><span class=cF0> *task=</span><span class=cF5>User</span><span class=cF0>(</span><span class=cF6>"#include \"::/Demo/Games/BigGuns\";\n"</span><span class=cF0>);
|
|
<a name="l795"></a> task_num=</span><span class=cF5>BirthWait</span><span class=cF0>(&task->popup_task);
|
|
<a name="l796"></a> </span><span class=cF5>TaskWait</span><span class=cF0>(task->popup_task);
|
|
<a name="l797"></a> </span><span class=cF5>PostMsgWait</span><span class=cF0>(task->popup_task,</span><span class=cF3>MSG_KEY_DOWN_UP</span><span class=cF0>,</span><span class=cF3>CH_SPACE</span><span class=cF0>,0);
|
|
<a name="l798"></a> </span><span class=cF5>BirthWait</span><span class=cF0>(&task->popup_task,task_num);
|
|
<a name="l799"></a> </span><span class=cF5>TaskWait</span><span class=cF0>(task->popup_task);
|
|
<a name="l800"></a> </span><span class=cF5>PostMsgWait</span><span class=cF0>(task->popup_task,</span><span class=cF3>MSG_KEY_DOWN_UP</span><span class=cF0>,</span><span class=cF3>CH_SPACE</span><span class=cF0>,0);
|
|
<a name="l801"></a> </span><span class=cF1>for</span><span class=cF0> (i=0;i<5;i++) </span><span class=cF7>{</span><span class=cF0>
|
|
<a name="l802"></a> </span><span class=cF5>PostMsgWait</span><span class=cF0>(task,</span><span class=cF3>MSG_KEY_DOWN_UP</span><span class=cF0>,0,</span><span class=cF3>SC_CURSOR_LEFT</span><span class=cF0>);
|
|
<a name="l803"></a> </span><span class=cF5>PostMsgWait</span><span class=cF0>(task,</span><span class=cF3>MSG_KEY_DOWN_UP</span><span class=cF0>,0,</span><span class=cF3>SC_CURSOR_LEFT</span><span class=cF0>);
|
|
<a name="l804"></a> </span><span class=cF5>PostMsgWait</span><span class=cF0>(task,</span><span class=cF3>MSG_KEY_DOWN_UP</span><span class=cF0>,0,</span><span class=cF3>SC_CURSOR_LEFT</span><span class=cF0>);
|
|
<a name="l805"></a> </span><span class=cF5>PostMsgWait</span><span class=cF0>(task,</span><span class=cF3>MSG_KEY_DOWN_UP</span><span class=cF0>,0,</span><span class=cF3>SC_CURSOR_LEFT</span><span class=cF0>);
|
|
<a name="l806"></a> </span><span class=cF5>Sleep</span><span class=cF0>(200);
|
|
<a name="l807"></a> </span><span class=cF5>PostMsgWait</span><span class=cF0>(task,</span><span class=cF3>MSG_KEY_DOWN_UP</span><span class=cF0>,</span><span class=cF3>CH_SPACE</span><span class=cF0>,0);
|
|
<a name="l808"></a> </span><span class=cF7>}</span><span class=cF0>
|
|
<a name="l809"></a> </span><span class=cF5>PostMsgWait</span><span class=cF0>(task,</span><span class=cF3>MSG_KEY_DOWN_UP</span><span class=cF0>,</span><span class=cF3>CH_SHIFT_ESC</span><span class=cF0>,0);
|
|
<a name="l810"></a> </span><span class=cF5>DeathWait</span><span class=cF0>(&task,</span><span class=cF3>TRUE</span><span class=cF0>);
|
|
<a name="l811"></a>}
|
|
<a name="l812"></a>
|
|
<a name="l813"></a></span><span class=cF1>U0</span><span class=cF0> DoDunGen()
|
|
<a name="l814"></a>{
|
|
<a name="l815"></a> </span><span class=cF9>I64</span><span class=cF0> i;
|
|
<a name="l816"></a> </span><span class=cF9>CTask</span><span class=cF0> *task=</span><span class=cF5>User</span><span class=cF0>;
|
|
<a name="l817"></a> </span><span class=cF5>XTalkWait</span><span class=cF0>(task,</span><span class=cF6>"#include \"::/Demo/Games/DunGen\";\n"</span><span class=cF0>);
|
|
<a name="l818"></a> </span><span class=cF1>for</span><span class=cF0> (i=0;i<10;i++) </span><span class=cF7>{</span><span class=cF0>
|
|
<a name="l819"></a> </span><span class=cF5>PostMsgWait</span><span class=cF0>(task,</span><span class=cF3>MSG_KEY_DOWN_UP</span><span class=cF0>,0,</span><span class=cF3>SC_CURSOR_RIGHT</span><span class=cF0>);
|
|
<a name="l820"></a> </span><span class=cF5>Sleep</span><span class=cF0>(100);
|
|
<a name="l821"></a> </span><span class=cF7>}</span><span class=cF0>
|
|
<a name="l822"></a> </span><span class=cF1>for</span><span class=cF0> (i=0;i<12;i++) </span><span class=cF7>{</span><span class=cF0>
|
|
<a name="l823"></a> </span><span class=cF5>PostMsgWait</span><span class=cF0>(task,</span><span class=cF3>MSG_KEY_DOWN_UP</span><span class=cF0>,0,</span><span class=cF3>SC_CURSOR_DOWN</span><span class=cF0>);
|
|
<a name="l824"></a> </span><span class=cF5>Sleep</span><span class=cF0>(100);
|
|
<a name="l825"></a> </span><span class=cF7>}</span><span class=cF0>
|
|
<a name="l826"></a> </span><span class=cF1>for</span><span class=cF0> (i=0;i<6;i++) </span><span class=cF7>{</span><span class=cF0>
|
|
<a name="l827"></a> </span><span class=cF5>PostMsgWait</span><span class=cF0>(task,</span><span class=cF3>MSG_KEY_DOWN_UP</span><span class=cF0>,0,</span><span class=cF3>SC_CURSOR_RIGHT</span><span class=cF0>);
|
|
<a name="l828"></a> </span><span class=cF5>Sleep</span><span class=cF0>(100);
|
|
<a name="l829"></a> </span><span class=cF7>}</span><span class=cF0>
|
|
<a name="l830"></a> </span><span class=cF5>PostMsgWait</span><span class=cF0>(task,</span><span class=cF3>MSG_KEY_DOWN_UP</span><span class=cF0>,</span><span class=cF3>CH_SHIFT_ESC</span><span class=cF0>,0);
|
|
<a name="l831"></a> </span><span class=cF5>DeathWait</span><span class=cF0>(&task,</span><span class=cF3>TRUE</span><span class=cF0>);
|
|
<a name="l832"></a>}
|
|
<a name="l833"></a>
|
|
<a name="l834"></a></span><span class=cF1>U0</span><span class=cF0> DoTitanium()
|
|
<a name="l835"></a>{
|
|
<a name="l836"></a> </span><span class=cF9>I64</span><span class=cF0> i;
|
|
<a name="l837"></a> </span><span class=cF9>CTask</span><span class=cF0> *task=</span><span class=cF5>User</span><span class=cF0>;
|
|
<a name="l838"></a> </span><span class=cF5>XTalkWait</span><span class=cF0>(task,</span><span class=cF6>"#include \"::/Apps/Titanium/Run\";\n"</span><span class=cF0>);
|
|
<a name="l839"></a> </span><span class=cF5>Sleep</span><span class=cF0>(200);
|
|
<a name="l840"></a> </span><span class=cF5>PostMsgWait</span><span class=cF0>(task,</span><span class=cF3>MSG_KEY_DOWN_UP</span><span class=cF0>,</span><span class=cF3>CH_SPACE</span><span class=cF0>,0);
|
|
<a name="l841"></a> </span><span class=cF1>for</span><span class=cF0> (i=0;i<3;i++) </span><span class=cF7>{</span><span class=cF0>
|
|
<a name="l842"></a> </span><span class=cF5>PostMsgWait</span><span class=cF0>(task,</span><span class=cF3>MSG_KEY_DOWN</span><span class=cF0>,</span><span class=cF3>CH_SPACE</span><span class=cF0>,0);
|
|
<a name="l843"></a> </span><span class=cF5>LBts</span><span class=cF0>(</span><span class=cFB>kbd</span><span class=cF0>.down_bitmap,</span><span class=cF3>SC_CURSOR_RIGHT</span><span class=cF0>);
|
|
<a name="l844"></a> </span><span class=cF5>Sleep</span><span class=cF0>(200);
|
|
<a name="l845"></a> </span><span class=cF5>PostMsgWait</span><span class=cF0>(task,</span><span class=cF3>MSG_KEY_UP</span><span class=cF0>,</span><span class=cF3>CH_SPACE</span><span class=cF0>,0);
|
|
<a name="l846"></a> </span><span class=cF5>LBtr</span><span class=cF0>(</span><span class=cFB>kbd</span><span class=cF0>.down_bitmap,</span><span class=cF3>SC_CURSOR_RIGHT</span><span class=cF0>);
|
|
<a name="l847"></a> </span><span class=cF5>Sleep</span><span class=cF0>(200);
|
|
<a name="l848"></a> </span><span class=cF5>PostMsgWait</span><span class=cF0>(task,</span><span class=cF3>MSG_KEY_DOWN</span><span class=cF0>,</span><span class=cF3>CH_SPACE</span><span class=cF0>,0);
|
|
<a name="l849"></a> </span><span class=cF5>LBts</span><span class=cF0>(</span><span class=cFB>kbd</span><span class=cF0>.down_bitmap,</span><span class=cF3>SC_CURSOR_LEFT</span><span class=cF0>);
|
|
<a name="l850"></a> </span><span class=cF5>Sleep</span><span class=cF0>(200);
|
|
<a name="l851"></a> </span><span class=cF5>PostMsgWait</span><span class=cF0>(task,</span><span class=cF3>MSG_KEY_UP</span><span class=cF0>,</span><span class=cF3>CH_SPACE</span><span class=cF0>,0);
|
|
<a name="l852"></a> </span><span class=cF5>LBtr</span><span class=cF0>(</span><span class=cFB>kbd</span><span class=cF0>.down_bitmap,</span><span class=cF3>SC_CURSOR_LEFT</span><span class=cF0>);
|
|
<a name="l853"></a> </span><span class=cF5>Sleep</span><span class=cF0>(200);
|
|
<a name="l854"></a> </span><span class=cF7>}</span><span class=cF0>
|
|
<a name="l855"></a> </span><span class=cF5>PostMsgWait</span><span class=cF0>(task,</span><span class=cF3>MSG_KEY_DOWN_UP</span><span class=cF0>,</span><span class=cF3>CH_SHIFT_ESC</span><span class=cF0>,0);
|
|
<a name="l856"></a> </span><span class=cF5>DeathWait</span><span class=cF0>(&task,</span><span class=cF3>TRUE</span><span class=cF0>);
|
|
<a name="l857"></a>}
|
|
<a name="l858"></a>
|
|
<a name="l859"></a></span><span class=cF1>U0</span><span class=cF0> DoToTheFront()
|
|
<a name="l860"></a>{
|
|
<a name="l861"></a> </span><span class=cF9>I64</span><span class=cF0> task_num;
|
|
<a name="l862"></a> </span><span class=cF9>CTask</span><span class=cF0> *task=</span><span class=cF5>User</span><span class=cF0>(</span><span class=cF6>"#include \"::/Apps/ToTheFront/Run\";\n"</span><span class=cF0>);
|
|
<a name="l863"></a> task_num=</span><span class=cF5>BirthWait</span><span class=cF0>(&task->popup_task);
|
|
<a name="l864"></a> </span><span class=cF5>PostMsgWait</span><span class=cF0>(task->popup_task,</span><span class=cF3>MSG_KEY_DOWN_UP</span><span class=cF0>,</span><span class=cF6>'\n'</span><span class=cF0>,0);
|
|
<a name="l865"></a> task_num=</span><span class=cF5>BirthWait</span><span class=cF0>(&task->popup_task,task_num);
|
|
<a name="l866"></a> </span><span class=cF5>PostMsgWait</span><span class=cF0>(task->popup_task,</span><span class=cF3>MSG_KEY_DOWN_UP</span><span class=cF0>,0,</span><span class=cF3>SC_CURSOR_RIGHT</span><span class=cF0>);
|
|
<a name="l867"></a> </span><span class=cF5>PostMsgWait</span><span class=cF0>(task->popup_task,</span><span class=cF3>MSG_KEY_DOWN_UP</span><span class=cF0>,</span><span class=cF3>CH_SPACE</span><span class=cF0>,0);
|
|
<a name="l868"></a> task_num=</span><span class=cF5>BirthWait</span><span class=cF0>(&task->popup_task,task_num);
|
|
<a name="l869"></a> </span><span class=cF5>PostMsgWait</span><span class=cF0>(task->popup_task,</span><span class=cF3>MSG_KEY_DOWN_UP</span><span class=cF0>,0,</span><span class=cF3>SC_CURSOR_RIGHT</span><span class=cF0>);
|
|
<a name="l870"></a> </span><span class=cF5>PostMsgWait</span><span class=cF0>(task->popup_task,</span><span class=cF3>MSG_KEY_DOWN_UP</span><span class=cF0>,</span><span class=cF3>CH_SPACE</span><span class=cF0>,0);
|
|
<a name="l871"></a> </span><span class=cF5>BirthWait</span><span class=cF0>(&task->popup_task,task_num);
|
|
<a name="l872"></a> </span><span class=cF5>PostMsgWait</span><span class=cF0>(task->popup_task,</span><span class=cF3>MSG_KEY_DOWN</span><span class=cF0>,</span><span class=cF3>CH_SPACE</span><span class=cF0>,0);
|
|
<a name="l873"></a> </span><span class=cF5>DeathWait</span><span class=cF0>(&task->popup_task);
|
|
<a name="l874"></a> </span><span class=cF5>Sleep</span><span class=cF0>(5000);
|
|
<a name="l875"></a> </span><span class=cF5>PostMsgWait</span><span class=cF0>(task,</span><span class=cF3>MSG_KEY_DOWN_UP</span><span class=cF0>,</span><span class=cF3>CH_SHIFT_ESC</span><span class=cF0>,0);
|
|
<a name="l876"></a> </span><span class=cF5>DeathWait</span><span class=cF0>(&task,</span><span class=cF3>TRUE</span><span class=cF0>);
|
|
<a name="l877"></a>}
|
|
<a name="l878"></a>
|
|
<a name="l879"></a></span><span class=cF1>U0</span><span class=cF0> DoPsalmody()
|
|
<a name="l880"></a>{
|
|
<a name="l881"></a> </span><span class=cF9>CTask</span><span class=cF0> *task=</span><span class=cF5>User</span><span class=cF0>;
|
|
<a name="l882"></a> </span><span class=cF5>XTalkWait</span><span class=cF0>(task,</span><span class=cF6>"#include \"::/Apps/Psalmody/Run\";\n"</span><span class=cF0>);
|
|
<a name="l883"></a> </span><span class=cF5>PostMsgWait</span><span class=cF0>(task,</span><span class=cF3>MSG_KEY_DOWN_UP</span><span class=cF0>,</span><span class=cF6>'z'</span><span class=cF0>,0);
|
|
<a name="l884"></a> </span><span class=cF5>PostMsgWait</span><span class=cF0>(task,</span><span class=cF3>MSG_KEY_DOWN</span><span class=cF0>,</span><span class=cF6>'h'</span><span class=cF0>,0);
|
|
<a name="l885"></a> </span><span class=cF5>Sleep</span><span class=cF0>(200);
|
|
<a name="l886"></a> </span><span class=cF5>PostMsgWait</span><span class=cF0>(task,</span><span class=cF3>MSG_KEY_UP</span><span class=cF0>,</span><span class=cF6>'h'</span><span class=cF0>,0);
|
|
<a name="l887"></a> </span><span class=cF5>PostMsgWait</span><span class=cF0>(task,</span><span class=cF3>MSG_KEY_DOWN</span><span class=cF0>,</span><span class=cF6>'g'</span><span class=cF0>,0);
|
|
<a name="l888"></a> </span><span class=cF5>Sleep</span><span class=cF0>(200);
|
|
<a name="l889"></a> </span><span class=cF5>PostMsgWait</span><span class=cF0>(task,</span><span class=cF3>MSG_KEY_UP</span><span class=cF0>,</span><span class=cF6>'g'</span><span class=cF0>,0);
|
|
<a name="l890"></a> </span><span class=cF5>PostMsgWait</span><span class=cF0>(task,</span><span class=cF3>MSG_KEY_DOWN</span><span class=cF0>,</span><span class=cF6>'h'</span><span class=cF0>,0);
|
|
<a name="l891"></a> </span><span class=cF5>Sleep</span><span class=cF0>(200);
|
|
<a name="l892"></a> </span><span class=cF5>PostMsgWait</span><span class=cF0>(task,</span><span class=cF3>MSG_KEY_UP</span><span class=cF0>,</span><span class=cF6>'h'</span><span class=cF0>,0);
|
|
<a name="l893"></a> </span><span class=cF5>PostMsgWait</span><span class=cF0>(task,</span><span class=cF3>MSG_KEY_DOWN</span><span class=cF0>,</span><span class=cF6>'j'</span><span class=cF0>,0);
|
|
<a name="l894"></a> </span><span class=cF5>Sleep</span><span class=cF0>(200);
|
|
<a name="l895"></a> </span><span class=cF5>PostMsgWait</span><span class=cF0>(task,</span><span class=cF3>MSG_KEY_UP</span><span class=cF0>,</span><span class=cF6>'j'</span><span class=cF0>,0);
|
|
<a name="l896"></a> </span><span class=cF5>PostMsgWait</span><span class=cF0>(task,</span><span class=cF3>MSG_KEY_DOWN_UP</span><span class=cF0>,0,</span><span class=cF3>SC_CURSOR_LEFT</span><span class=cF0>+</span><span class=cF3>SCF_CTRL</span><span class=cF0>);
|
|
<a name="l897"></a> </span><span class=cF5>PostMsgWait</span><span class=cF0>(task,</span><span class=cF3>MSG_KEY_DOWN_UP</span><span class=cF0>,</span><span class=cF6>'x'</span><span class=cF0>,0);
|
|
<a name="l898"></a> </span><span class=cF5>Sleep</span><span class=cF0>(1250);
|
|
<a name="l899"></a> </span><span class=cF5>PostMsgWait</span><span class=cF0>(task,</span><span class=cF3>MSG_KEY_DOWN_UP</span><span class=cF0>,</span><span class=cF3>CH_SHIFT_ESC</span><span class=cF0>,0);
|
|
<a name="l900"></a> </span><span class=cF5>DeathWait</span><span class=cF0>(&task,</span><span class=cF3>TRUE</span><span class=cF0>);
|
|
<a name="l901"></a>}
|
|
<a name="l902"></a>
|
|
<a name="l903"></a></span><span class=cF1>U0</span><span class=cF0> DoJukeBox()
|
|
<a name="l904"></a>{
|
|
<a name="l905"></a> </span><span class=cF9>CTask</span><span class=cF0> *task=</span><span class=cF5>User</span><span class=cF0>(</span><span class=cF6>"#include \"::/Apps/Psalmody/Load\";"</span><span class=cF0>
|
|
<a name="l906"></a> </span><span class=cF6>"JukeBox(\"::/Apps/Psalmody/Examples\");\n"</span><span class=cF0>);
|
|
<a name="l907"></a> </span><span class=cF5>BirthWait</span><span class=cF0>(&task->popup_task);
|
|
<a name="l908"></a> </span><span class=cF5>PostMsgWait</span><span class=cF0>(task->popup_task,</span><span class=cF3>MSG_KEY_DOWN_UP</span><span class=cF0>,0,</span><span class=cF3>SC_CURSOR_RIGHT</span><span class=cF0>);
|
|
<a name="l909"></a> </span><span class=cF5>PostMsgWait</span><span class=cF0>(task->popup_task,</span><span class=cF3>MSG_KEY_DOWN_UP</span><span class=cF0>,</span><span class=cF3>CH_SPACE</span><span class=cF0>,0);
|
|
<a name="l910"></a> </span><span class=cF5>Sleep</span><span class=cF0>(1500);
|
|
<a name="l911"></a> </span><span class=cF5>PostMsgWait</span><span class=cF0>(task->popup_task,</span><span class=cF3>MSG_KEY_DOWN_UP</span><span class=cF0>,</span><span class=cF3>CH_SHIFT_ESC</span><span class=cF0>,0);
|
|
<a name="l912"></a> </span><span class=cF5>DeathWait</span><span class=cF0>(&task->popup_task);
|
|
<a name="l913"></a> </span><span class=cF5>DeathWait</span><span class=cF0>(&task,</span><span class=cF3>TRUE</span><span class=cF0>);
|
|
<a name="l914"></a>}
|
|
<a name="l915"></a>
|
|
<a name="l916"></a></span><span class=cF1>U0</span><span class=cF0> DoSpan()
|
|
<a name="l917"></a>{
|
|
<a name="l918"></a> </span><span class=cF9>CTask</span><span class=cF0> *task=</span><span class=cF5>User</span><span class=cF0>(</span><span class=cF6>"#include \"::/Apps/Span/Run\";\n"</span><span class=cF0>);
|
|
<a name="l919"></a> </span><span class=cF5>BirthWait</span><span class=cF0>(&task->popup_task);
|
|
<a name="l920"></a> </span><span class=cF5>TaskWait</span><span class=cF0>(task->popup_task);
|
|
<a name="l921"></a> </span><span class=cF5>PostMsgWait</span><span class=cF0>(task->popup_task,</span><span class=cF3>MSG_KEY_DOWN_UP</span><span class=cF0>,</span><span class=cF3>CH_SPACE</span><span class=cF0>,0);
|
|
<a name="l922"></a> </span><span class=cF5>Sleep</span><span class=cF0>(1500);
|
|
<a name="l923"></a> </span><span class=cF5>PostMsgWait</span><span class=cF0>(task,</span><span class=cF3>MSG_KEY_DOWN_UP</span><span class=cF0>,</span><span class=cF3>CH_SHIFT_ESC</span><span class=cF0>,0);
|
|
<a name="l924"></a> </span><span class=cF5>DeathWait</span><span class=cF0>(&task,</span><span class=cF3>TRUE</span><span class=cF0>);
|
|
<a name="l925"></a>}
|
|
<a name="l926"></a>
|
|
<a name="l927"></a></span><span class=cF1>U0</span><span class=cF0> DoStrut()
|
|
<a name="l928"></a>{
|
|
<a name="l929"></a> </span><span class=cF9>CTask</span><span class=cF0> *task=</span><span class=cF5>User</span><span class=cF0>;
|
|
<a name="l930"></a> </span><span class=cF5>XTalkWait</span><span class=cF0>(task,</span><span class=cF6>"#include \"::/Apps/Strut/Run\";\n"</span><span class=cF0>);
|
|
<a name="l931"></a>
|
|
<a name="l932"></a> </span><span class=cF5>PostMsgWait</span><span class=cF0>(task,</span><span class=cF3>MSG_KEY_DOWN_UP</span><span class=cF0>,</span><span class=cF3>CH_SPACE</span><span class=cF0>,0);
|
|
<a name="l933"></a>
|
|
<a name="l934"></a> </span><span class=cF5>MsSet</span><span class=cF0>(200,200,,</span><span class=cF3>TRUE</span><span class=cF0>);
|
|
<a name="l935"></a> </span><span class=cF5>PostMsgWait</span><span class=cF0>(task,</span><span class=cF3>MSG_MS_L_DOWN</span><span class=cF0>,0,0);
|
|
<a name="l936"></a> </span><span class=cF5>Refresh</span><span class=cF0>(2);
|
|
<a name="l937"></a>
|
|
<a name="l938"></a> </span><span class=cF5>MsSet</span><span class=cF0>(</span><span class=cF3>GR_WIDTH</span><span class=cF0>-200,200,,</span><span class=cF3>TRUE</span><span class=cF0>);
|
|
<a name="l939"></a> </span><span class=cF5>PostMsgWait</span><span class=cF0>(task,</span><span class=cF3>MSG_MS_L_DOWN</span><span class=cF0>,0,0);
|
|
<a name="l940"></a>
|
|
<a name="l941"></a> </span><span class=cF5>MsSet</span><span class=cF0>(</span><span class=cF3>GR_WIDTH</span><span class=cF0>/2,400,,</span><span class=cF3>TRUE</span><span class=cF0>);
|
|
<a name="l942"></a> </span><span class=cF5>PostMsgWait</span><span class=cF0>(task,</span><span class=cF3>MSG_MS_L_DOWN</span><span class=cF0>,0,0);
|
|
<a name="l943"></a>
|
|
<a name="l944"></a> </span><span class=cF5>PostMsgWait</span><span class=cF0>(task,</span><span class=cF3>MSG_KEY_DOWN_UP</span><span class=cF0>,</span><span class=cF6>'s'</span><span class=cF0>,0);
|
|
<a name="l945"></a>
|
|
<a name="l946"></a> </span><span class=cF5>MsSet</span><span class=cF0>(200,200,,</span><span class=cF3>TRUE</span><span class=cF0>);
|
|
<a name="l947"></a> </span><span class=cF5>PostMsgWait</span><span class=cF0>(task,</span><span class=cF3>MSG_MS_L_DOWN</span><span class=cF0>,0,0);
|
|
<a name="l948"></a> </span><span class=cF5>MsSet</span><span class=cF0>(</span><span class=cF3>GR_WIDTH</span><span class=cF0>-200,200,,</span><span class=cF3>TRUE</span><span class=cF0>);
|
|
<a name="l949"></a> </span><span class=cF5>PostMsgWait</span><span class=cF0>(task,</span><span class=cF3>MSG_MS_L_UP</span><span class=cF0>,0,0);
|
|
<a name="l950"></a>
|
|
<a name="l951"></a> </span><span class=cF5>MsSet</span><span class=cF0>(200,200,,</span><span class=cF3>TRUE</span><span class=cF0>);
|
|
<a name="l952"></a> </span><span class=cF5>PostMsgWait</span><span class=cF0>(task,</span><span class=cF3>MSG_MS_L_DOWN</span><span class=cF0>,0,0);
|
|
<a name="l953"></a> </span><span class=cF5>MsSet</span><span class=cF0>(</span><span class=cF3>GR_WIDTH</span><span class=cF0>/2,400,,</span><span class=cF3>TRUE</span><span class=cF0>);
|
|
<a name="l954"></a> </span><span class=cF5>PostMsgWait</span><span class=cF0>(task,</span><span class=cF3>MSG_MS_L_UP</span><span class=cF0>,0,0);
|
|
<a name="l955"></a>
|
|
<a name="l956"></a> </span><span class=cF5>MsSet</span><span class=cF0>(</span><span class=cF3>GR_WIDTH</span><span class=cF0>-200,200,,</span><span class=cF3>TRUE</span><span class=cF0>);
|
|
<a name="l957"></a> </span><span class=cF5>PostMsgWait</span><span class=cF0>(task,</span><span class=cF3>MSG_MS_L_DOWN</span><span class=cF0>,0,0);
|
|
<a name="l958"></a> </span><span class=cF5>MsSet</span><span class=cF0>(</span><span class=cF3>GR_WIDTH</span><span class=cF0>/2,400,,</span><span class=cF3>TRUE</span><span class=cF0>);
|
|
<a name="l959"></a> </span><span class=cF5>PostMsgWait</span><span class=cF0>(task,</span><span class=cF3>MSG_MS_L_UP</span><span class=cF0>,0,0);
|
|
<a name="l960"></a>
|
|
<a name="l961"></a> </span><span class=cF5>MsSet</span><span class=cF0>(</span><span class=cF3>GR_WIDTH</span><span class=cF0>/2,</span><span class=cF3>GR_HEIGHT</span><span class=cF0>/2,,</span><span class=cF3>TRUE</span><span class=cF0>);
|
|
<a name="l962"></a> </span><span class=cF5>PostMsgWait</span><span class=cF0>(task,</span><span class=cF3>MSG_MS_L_DOWN</span><span class=cF0>,0,0);
|
|
<a name="l963"></a> </span><span class=cF5>MsSet</span><span class=cF0>(</span><span class=cF3>GR_WIDTH</span><span class=cF0>-200,200,,</span><span class=cF3>TRUE</span><span class=cF0>);
|
|
<a name="l964"></a> </span><span class=cF5>PostMsgWait</span><span class=cF0>(task,</span><span class=cF3>MSG_MS_L_UP</span><span class=cF0>,0,0);
|
|
<a name="l965"></a>
|
|
<a name="l966"></a> </span><span class=cF5>MsSet</span><span class=cF0>(</span><span class=cF3>GR_WIDTH</span><span class=cF0>/2,</span><span class=cF3>GR_HEIGHT</span><span class=cF0>/2,,</span><span class=cF3>TRUE</span><span class=cF0>);
|
|
<a name="l967"></a> </span><span class=cF5>PostMsgWait</span><span class=cF0>(task,</span><span class=cF3>MSG_MS_L_DOWN</span><span class=cF0>,0,0);
|
|
<a name="l968"></a> </span><span class=cF5>MsSet</span><span class=cF0>(</span><span class=cF3>GR_WIDTH</span><span class=cF0>/2,400,,</span><span class=cF3>TRUE</span><span class=cF0>);
|
|
<a name="l969"></a> </span><span class=cF5>PostMsgWait</span><span class=cF0>(task,</span><span class=cF3>MSG_MS_L_UP</span><span class=cF0>,0,0);
|
|
<a name="l970"></a>
|
|
<a name="l971"></a> </span><span class=cF5>MsSet</span><span class=cF0>(</span><span class=cF3>GR_WIDTH</span><span class=cF0>/2,</span><span class=cF3>GR_HEIGHT</span><span class=cF0>/2,,</span><span class=cF3>TRUE</span><span class=cF0>);
|
|
<a name="l972"></a> </span><span class=cF5>PostMsgWait</span><span class=cF0>(task,</span><span class=cF3>MSG_MS_L_DOWN</span><span class=cF0>,0,0);
|
|
<a name="l973"></a> </span><span class=cF5>MsSet</span><span class=cF0>(200,200,,</span><span class=cF3>TRUE</span><span class=cF0>);
|
|
<a name="l974"></a> </span><span class=cF5>PostMsgWait</span><span class=cF0>(task,</span><span class=cF3>MSG_MS_L_UP</span><span class=cF0>,0,0);
|
|
<a name="l975"></a>
|
|
<a name="l976"></a> </span><span class=cF5>PostMsgWait</span><span class=cF0>(task,</span><span class=cF3>MSG_KEY_DOWN_UP</span><span class=cF0>,</span><span class=cF6>'t'</span><span class=cF0>,0);
|
|
<a name="l977"></a>
|
|
<a name="l978"></a> </span><span class=cF5>MsSet</span><span class=cF0>(</span><span class=cF3>GR_WIDTH</span><span class=cF0>/2,400,,</span><span class=cF3>TRUE</span><span class=cF0>);
|
|
<a name="l979"></a> </span><span class=cF5>PostMsgWait</span><span class=cF0>(task,</span><span class=cF3>MSG_MS_L_DOWN</span><span class=cF0>,0,0);
|
|
<a name="l980"></a> </span><span class=cF5>MsSet</span><span class=cF0>(</span><span class=cF3>GR_WIDTH</span><span class=cF0>-200,200,,</span><span class=cF3>TRUE</span><span class=cF0>);
|
|
<a name="l981"></a> </span><span class=cF5>PostMsgWait</span><span class=cF0>(task,</span><span class=cF3>MSG_MS_L_UP</span><span class=cF0>,0,0);
|
|
<a name="l982"></a>
|
|
<a name="l983"></a> </span><span class=cF5>MsSet</span><span class=cF0>(</span><span class=cF3>GR_WIDTH</span><span class=cF0>/2,400,,</span><span class=cF3>TRUE</span><span class=cF0>);
|
|
<a name="l984"></a> </span><span class=cF5>PostMsgWait</span><span class=cF0>(task,</span><span class=cF3>MSG_MS_L_DOWN</span><span class=cF0>,0,0);
|
|
<a name="l985"></a> </span><span class=cF5>MsSet</span><span class=cF0>(200,200,,</span><span class=cF3>TRUE</span><span class=cF0>);
|
|
<a name="l986"></a> </span><span class=cF5>PostMsgWait</span><span class=cF0>(task,</span><span class=cF3>MSG_MS_L_UP</span><span class=cF0>,0,0);
|
|
<a name="l987"></a>
|
|
<a name="l988"></a> </span><span class=cF5>MsSet</span><span class=cF0>(,,,</span><span class=cF3>FALSE</span><span class=cF0>);
|
|
<a name="l989"></a>
|
|
<a name="l990"></a> </span><span class=cF5>PostMsgWait</span><span class=cF0>(task,</span><span class=cF3>MSG_KEY_DOWN_UP</span><span class=cF0>,</span><span class=cF3>CH_SPACE</span><span class=cF0>,0);
|
|
<a name="l991"></a> </span><span class=cF5>LBts</span><span class=cF0>(</span><span class=cFB>kbd</span><span class=cF0>.down_bitmap,</span><span class=cF5>Char2ScanCode</span><span class=cF7>(</span><span class=cF6>'1'</span><span class=cF7>)</span><span class=cF0>);
|
|
<a name="l992"></a> </span><span class=cF5>Sleep</span><span class=cF0>(600);
|
|
<a name="l993"></a> </span><span class=cF5>LBtr</span><span class=cF0>(</span><span class=cFB>kbd</span><span class=cF0>.down_bitmap,</span><span class=cF5>Char2ScanCode</span><span class=cF7>(</span><span class=cF6>'1'</span><span class=cF7>)</span><span class=cF0>);
|
|
<a name="l994"></a> </span><span class=cF5>PostMsgWait</span><span class=cF0>(task,</span><span class=cF3>MSG_KEY_DOWN_UP</span><span class=cF0>,</span><span class=cF6>'Z'</span><span class=cF0>,0);
|
|
<a name="l995"></a> </span><span class=cF5>Sleep</span><span class=cF0>(200);
|
|
<a name="l996"></a> </span><span class=cF5>PostMsgWait</span><span class=cF0>(task,</span><span class=cF3>MSG_KEY_DOWN_UP</span><span class=cF0>,</span><span class=cF6>'Z'</span><span class=cF0>,0);
|
|
<a name="l997"></a> </span><span class=cF5>Sleep</span><span class=cF0>(200);
|
|
<a name="l998"></a> </span><span class=cF5>PostMsgWait</span><span class=cF0>(task,</span><span class=cF3>MSG_KEY_DOWN_UP</span><span class=cF0>,</span><span class=cF6>'Z'</span><span class=cF0>,0);
|
|
<a name="l999"></a> </span><span class=cF5>Sleep</span><span class=cF0>(200);
|
|
<a name="l1000"></a>
|
|
<a name="l1001"></a> </span><span class=cF5>PostMsgWait</span><span class=cF0>(task,</span><span class=cF3>MSG_KEY_DOWN_UP</span><span class=cF0>,</span><span class=cF3>CH_SHIFT_ESC</span><span class=cF0>,0);
|
|
<a name="l1002"></a> </span><span class=cF5>DeathWait</span><span class=cF0>(&task,</span><span class=cF3>TRUE</span><span class=cF0>);
|
|
<a name="l1003"></a>}
|
|
<a name="l1004"></a>
|
|
<a name="l1005"></a></span><span class=cF1>U0</span><span class=cF0> DoRawHide()
|
|
<a name="l1006"></a>{
|
|
<a name="l1007"></a> </span><span class=cF9>CTask</span><span class=cF0> *task=</span><span class=cF5>User</span><span class=cF0>(</span><span class=cF6>"#include \"::/Demo/Games/RawHide\";\n"</span><span class=cF0>);
|
|
<a name="l1008"></a> </span><span class=cF5>BirthWait</span><span class=cF0>(&task->popup_task);
|
|
<a name="l1009"></a> </span><span class=cF5>TaskWait</span><span class=cF0>(task->popup_task);
|
|
<a name="l1010"></a> </span><span class=cF5>PostMsgWait</span><span class=cF0>(task->popup_task,</span><span class=cF3>MSG_KEY_DOWN_UP</span><span class=cF0>,</span><span class=cF3>CH_SPACE</span><span class=cF0>,0);
|
|
<a name="l1011"></a> </span><span class=cF5>Sleep</span><span class=cF0>(2500);
|
|
<a name="l1012"></a> </span><span class=cF5>PostMsgWait</span><span class=cF0>(task,</span><span class=cF3>MSG_KEY_DOWN_UP</span><span class=cF0>,</span><span class=cF3>CH_SHIFT_ESC</span><span class=cF0>,0);
|
|
<a name="l1013"></a> </span><span class=cF5>DeathWait</span><span class=cF0>(&task,</span><span class=cF3>TRUE</span><span class=cF0>);
|
|
<a name="l1014"></a>}
|
|
<a name="l1015"></a>
|
|
<a name="l1016"></a></span><span class=cF1>U0</span><span class=cF0> DoPoleZeros()
|
|
<a name="l1017"></a>{
|
|
<a name="l1018"></a> </span><span class=cF9>CTask</span><span class=cF0> *task=</span><span class=cF5>User</span><span class=cF0>(</span><span class=cF6>"#include \"::/Demo/Graphics/PoleZeros\";\n"</span><span class=cF0>);
|
|
<a name="l1019"></a> </span><span class=cF5>BirthWait</span><span class=cF0>(&task->popup_task);
|
|
<a name="l1020"></a> </span><span class=cF5>TaskWait</span><span class=cF0>(task->popup_task);
|
|
<a name="l1021"></a> </span><span class=cF5>PostMsgWait</span><span class=cF0>(task->popup_task,</span><span class=cF3>MSG_KEY_DOWN_UP</span><span class=cF0>,</span><span class=cF3>CH_SPACE</span><span class=cF0>,0);
|
|
<a name="l1022"></a> </span><span class=cF5>Sleep</span><span class=cF0>(750);
|
|
<a name="l1023"></a> </span><span class=cF5>PostMsgWait</span><span class=cF0>(task,</span><span class=cF3>MSG_KEY_DOWN_UP</span><span class=cF0>,</span><span class=cF3>CH_ESC</span><span class=cF0>,0);
|
|
<a name="l1024"></a> </span><span class=cF5>DeathWait</span><span class=cF0>(&task,</span><span class=cF3>TRUE</span><span class=cF0>);
|
|
<a name="l1025"></a>}
|
|
<a name="l1026"></a>
|
|
<a name="l1027"></a></span><span class=cF1>U0</span><span class=cF0> DoWhap()
|
|
<a name="l1028"></a>{
|
|
<a name="l1029"></a> </span><span class=cF9>CTask</span><span class=cF0> *task=</span><span class=cF5>User</span><span class=cF0>;
|
|
<a name="l1030"></a> </span><span class=cF5>XTalkWait</span><span class=cF0>(task,</span><span class=cF6>"#include \"::/Demo/Games/Whap\";\n"</span><span class=cF0>);
|
|
<a name="l1031"></a> </span><span class=cF5>MsSet</span><span class=cF0>(300,200);
|
|
<a name="l1032"></a> </span><span class=cF5>Sleep</span><span class=cF0>(500);
|
|
<a name="l1033"></a> </span><span class=cF5>InSetMs</span><span class=cF0>(3,350,300);
|
|
<a name="l1034"></a> </span><span class=cF5>Sleep</span><span class=cF0>(500);
|
|
<a name="l1035"></a> </span><span class=cF5>InSetMs</span><span class=cF0>(3,450,200);
|
|
<a name="l1036"></a> </span><span class=cF5>Sleep</span><span class=cF0>(500);
|
|
<a name="l1037"></a> </span><span class=cF5>PostMsgWait</span><span class=cF0>(task,</span><span class=cF3>MSG_KEY_DOWN_UP</span><span class=cF0>,</span><span class=cF3>CH_SHIFT_ESC</span><span class=cF0>,0);
|
|
<a name="l1038"></a> </span><span class=cF5>DeathWait</span><span class=cF0>(&task,</span><span class=cF3>TRUE</span><span class=cF0>);
|
|
<a name="l1039"></a>}
|
|
<a name="l1040"></a>
|
|
<a name="l1041"></a></span><span class=cF1>U0</span><span class=cF0> DoGrid()
|
|
<a name="l1042"></a>{
|
|
<a name="l1043"></a> </span><span class=cF9>CTask</span><span class=cF0> *task=</span><span class=cF5>User</span><span class=cF0>(</span><span class=cF6>"#include \"::/Demo/Graphics/Grid\";\n"</span><span class=cF0>);
|
|
<a name="l1044"></a> </span><span class=cF5>MsSet</span><span class=cF0>(200,200);
|
|
<a name="l1045"></a> </span><span class=cF5>Sleep</span><span class=cF0>(150);
|
|
<a name="l1046"></a> </span><span class=cF5>InSetMs</span><span class=cF0>(2,400,400);
|
|
<a name="l1047"></a> </span><span class=cF5>InSetMs</span><span class=cF0>(2,200,400);
|
|
<a name="l1048"></a> </span><span class=cF5>InSetMs</span><span class=cF0>(2,200,200);
|
|
<a name="l1049"></a> </span><span class=cF5>MsSet</span><span class=cF0>(,,,</span><span class=cF3>TRUE</span><span class=cF0>);
|
|
<a name="l1050"></a> </span><span class=cF5>Sleep</span><span class=cF0>(50);
|
|
<a name="l1051"></a> </span><span class=cF5>MsSet</span><span class=cF0>(,,,</span><span class=cF3>FALSE</span><span class=cF0>);
|
|
<a name="l1052"></a> </span><span class=cF5>DocBottom</span><span class=cF0>(</span><span class=cF5>DocPut</span><span class=cF7>(</span><span class=cF0>task</span><span class=cF7>)</span><span class=cF0>);
|
|
<a name="l1053"></a> </span><span class=cF5>DeathWait</span><span class=cF0>(&task,</span><span class=cF3>TRUE</span><span class=cF0>);
|
|
<a name="l1054"></a>}
|
|
<a name="l1055"></a>
|
|
<a name="l1056"></a></span><span class=cF1>U0</span><span class=cF0> DoPick()
|
|
<a name="l1057"></a>{
|
|
<a name="l1058"></a> </span><span class=cF9>CTask</span><span class=cF0> *task=</span><span class=cF5>User</span><span class=cF0>;
|
|
<a name="l1059"></a> </span><span class=cF5>XTalkWait</span><span class=cF0>(task,</span><span class=cF6>"#include \"::/Demo/Graphics/Pick\";\n"</span><span class=cF0>);
|
|
<a name="l1060"></a> </span><span class=cF5>MsSet</span><span class=cF0>(200,200);
|
|
<a name="l1061"></a> </span><span class=cF5>Sleep</span><span class=cF0>(500);
|
|
<a name="l1062"></a> </span><span class=cF5>MsSet</span><span class=cF0>(,,,</span><span class=cF3>TRUE</span><span class=cF0>);
|
|
<a name="l1063"></a> </span><span class=cF5>InSetMs</span><span class=cF0>(4,400,400);
|
|
<a name="l1064"></a> </span><span class=cF5>MsSet</span><span class=cF0>(,,,</span><span class=cF3>FALSE</span><span class=cF0>);
|
|
<a name="l1065"></a> </span><span class=cF5>Sleep</span><span class=cF0>(500);
|
|
<a name="l1066"></a> </span><span class=cF5>PostMsgWait</span><span class=cF0>(task,</span><span class=cF3>MSG_KEY_DOWN_UP</span><span class=cF0>,</span><span class=cF3>CH_SHIFT_ESC</span><span class=cF0>,0);
|
|
<a name="l1067"></a> </span><span class=cF5>DeathWait</span><span class=cF0>(&task,</span><span class=cF3>TRUE</span><span class=cF0>);
|
|
<a name="l1068"></a>}
|
|
<a name="l1069"></a>
|
|
<a name="l1070"></a></span><span class=cF1>U0</span><span class=cF0> DoPick3D()
|
|
<a name="l1071"></a>{
|
|
<a name="l1072"></a> </span><span class=cF9>CTask</span><span class=cF0> *task=</span><span class=cF5>User</span><span class=cF0>;
|
|
<a name="l1073"></a> </span><span class=cF5>XTalkWait</span><span class=cF0>(task,</span><span class=cF6>"#include \"::/Demo/Graphics/Pick3D\";\n"</span><span class=cF0>);
|
|
<a name="l1074"></a> </span><span class=cF5>MsSet</span><span class=cF0>(200,200);
|
|
<a name="l1075"></a> </span><span class=cF5>Sleep</span><span class=cF0>(500);
|
|
<a name="l1076"></a> </span><span class=cF5>MsSet</span><span class=cF0>(,,,</span><span class=cF3>TRUE</span><span class=cF0>);
|
|
<a name="l1077"></a> </span><span class=cF5>InSetMs</span><span class=cF0>(4,400,400);
|
|
<a name="l1078"></a> </span><span class=cF5>MsSet</span><span class=cF0>(,,,</span><span class=cF3>FALSE</span><span class=cF0>);
|
|
<a name="l1079"></a> </span><span class=cF5>Sleep</span><span class=cF0>(500);
|
|
<a name="l1080"></a> </span><span class=cF5>PostMsgWait</span><span class=cF0>(task,</span><span class=cF3>MSG_KEY_DOWN_UP</span><span class=cF0>,</span><span class=cF3>CH_SHIFT_ESC</span><span class=cF0>,0);
|
|
<a name="l1081"></a> </span><span class=cF5>DeathWait</span><span class=cF0>(&task,</span><span class=cF3>TRUE</span><span class=cF0>);
|
|
<a name="l1082"></a>}
|
|
<a name="l1083"></a>
|
|
<a name="l1084"></a></span><span class=cF1>U0</span><span class=cF0> DoGrModels()
|
|
<a name="l1085"></a>{
|
|
<a name="l1086"></a> </span><span class=cF9>CTask</span><span class=cF0> *task=</span><span class=cF5>User</span><span class=cF0>;
|
|
<a name="l1087"></a> </span><span class=cF9>I64</span><span class=cF0> i,j,task_num=-1;
|
|
<a name="l1088"></a> </span><span class=cF5>XTalkWait</span><span class=cF0>(task,</span><span class=cF6>"#include \"::/Apps/GrModels/Run\";\n"</span><span class=cF0>);
|
|
<a name="l1089"></a> </span><span class=cF5>PostMsgWait</span><span class=cF0>(task,</span><span class=cF3>MSG_KEY_DOWN_UP</span><span class=cF0>,</span><span class=cF3>CH_SPACE</span><span class=cF0>,0);
|
|
<a name="l1090"></a> </span><span class=cF5>PostMsg</span><span class=cF0>(task,</span><span class=cF3>MSG_KEY_DOWN_UP</span><span class=cF0>,</span><span class=cF3>CH_ESC</span><span class=cF0>,0);
|
|
<a name="l1091"></a> </span><span class=cF1>for</span><span class=cF0> (i=0;i<4;i++) </span><span class=cF7>{</span><span class=cF0>
|
|
<a name="l1092"></a> task_num=</span><span class=cF5>BirthWait</span><span class=cF0>(&task->popup_task,task_num);
|
|
<a name="l1093"></a> </span><span class=cF5>TaskWait</span><span class=cF0>(task->popup_task);
|
|
<a name="l1094"></a> </span><span class=cF1>for</span><span class=cF0> (j=0;j<=i;j++)
|
|
<a name="l1095"></a> </span><span class=cF5>PostMsgWait</span><span class=cF0>(task->popup_task,</span><span class=cF3>MSG_KEY_DOWN_UP</span><span class=cF0>,0,</span><span class=cF3>SC_CURSOR_DOWN</span><span class=cF0>);
|
|
<a name="l1096"></a> </span><span class=cF5>PostMsgWait</span><span class=cF0>(task->popup_task,</span><span class=cF3>MSG_KEY_DOWN_UP</span><span class=cF0>,</span><span class=cF3>CH_SPACE</span><span class=cF0>,0);
|
|
<a name="l1097"></a> </span><span class=cF7>}</span><span class=cF0>
|
|
<a name="l1098"></a> </span><span class=cF5>Sleep</span><span class=cF0>(1000);
|
|
<a name="l1099"></a> </span><span class=cF5>PostMsgWait</span><span class=cF0>(task,</span><span class=cF3>MSG_KEY_DOWN_UP</span><span class=cF0>,</span><span class=cF6>'n'</span><span class=cF0>,0);
|
|
<a name="l1100"></a> </span><span class=cF5>DeathWait</span><span class=cF0>(&task,</span><span class=cF3>TRUE</span><span class=cF0>);
|
|
<a name="l1101"></a>}
|
|
<a name="l1102"></a>
|
|
<a name="l1103"></a></span><span class=cF1>U0</span><span class=cF0> DoKeepAway()
|
|
<a name="l1104"></a>{
|
|
<a name="l1105"></a> </span><span class=cF9>CTask</span><span class=cF0> *task=</span><span class=cF5>User</span><span class=cF0>(</span><span class=cF6>"#include \"::/Apps/KeepAway/Run\";\n"</span><span class=cF0>);
|
|
<a name="l1106"></a> </span><span class=cF5>BirthWait</span><span class=cF0>(&task->popup_task);
|
|
<a name="l1107"></a> </span><span class=cF5>TaskWait</span><span class=cF0>(task->popup_task);
|
|
<a name="l1108"></a> </span><span class=cF5>PostMsgWait</span><span class=cF0>(task->popup_task,</span><span class=cF3>MSG_KEY_DOWN_UP</span><span class=cF0>,</span><span class=cF3>CH_SPACE</span><span class=cF0>,0);
|
|
<a name="l1109"></a> </span><span class=cF5>MsSet</span><span class=cF0>(100,100);
|
|
<a name="l1110"></a> </span><span class=cF5>Sleep</span><span class=cF0>(1500);
|
|
<a name="l1111"></a> </span><span class=cF5>PostMsgWait</span><span class=cF0>(task,</span><span class=cF3>MSG_MS_R_DOWN_UP</span><span class=cF0>,</span><span class=cFB>ms</span><span class=cF0>.pos.x,</span><span class=cFB>ms</span><span class=cF0>.pos.y);
|
|
<a name="l1112"></a> </span><span class=cF5>Sleep</span><span class=cF0>(1000);
|
|
<a name="l1113"></a> </span><span class=cF5>PostMsgWait</span><span class=cF0>(task,</span><span class=cF3>MSG_KEY_DOWN_UP</span><span class=cF0>,</span><span class=cF3>CH_SHIFT_ESC</span><span class=cF0>,0);
|
|
<a name="l1114"></a> </span><span class=cF5>DeathWait</span><span class=cF0>(&task,</span><span class=cF3>TRUE</span><span class=cF0>);
|
|
<a name="l1115"></a>}
|
|
<a name="l1116"></a>
|
|
<a name="l1117"></a></span><span class=cF1>U0</span><span class=cF0> DoRocket()
|
|
<a name="l1118"></a>{
|
|
<a name="l1119"></a> </span><span class=cF9>CTask</span><span class=cF0> *task=</span><span class=cF5>User</span><span class=cF0>;
|
|
<a name="l1120"></a> </span><span class=cF5>XTalkWait</span><span class=cF0>(task,</span><span class=cF6>"#include \"::/Demo/Games/Rocket\";\n"</span><span class=cF0>);
|
|
<a name="l1121"></a> </span><span class=cF5>PostMsgWait</span><span class=cF0>(task,</span><span class=cF3>MSG_KEY_DOWN_UP</span><span class=cF0>,0,</span><span class=cF3>SC_CURSOR_UP</span><span class=cF0>);
|
|
<a name="l1122"></a> </span><span class=cF5>Bts</span><span class=cF0>(</span><span class=cFB>kbd</span><span class=cF0>.down_bitmap,</span><span class=cF3>SC_CURSOR_UP</span><span class=cF0>);
|
|
<a name="l1123"></a> </span><span class=cF5>Sleep</span><span class=cF0>(1000);
|
|
<a name="l1124"></a> </span><span class=cF5>Btr</span><span class=cF0>(</span><span class=cFB>kbd</span><span class=cF0>.down_bitmap,</span><span class=cF3>SC_CURSOR_UP</span><span class=cF0>);
|
|
<a name="l1125"></a> </span><span class=cF5>PostMsgWait</span><span class=cF0>(task,</span><span class=cF3>MSG_KEY_DOWN_UP</span><span class=cF0>,0,</span><span class=cF3>SC_CURSOR_RIGHT</span><span class=cF0>);
|
|
<a name="l1126"></a> </span><span class=cF5>Bts</span><span class=cF0>(</span><span class=cFB>kbd</span><span class=cF0>.down_bitmap,</span><span class=cF3>SC_CURSOR_RIGHT</span><span class=cF0>);
|
|
<a name="l1127"></a> </span><span class=cF5>Sleep</span><span class=cF0>(1000);
|
|
<a name="l1128"></a> </span><span class=cF5>Btr</span><span class=cF0>(</span><span class=cFB>kbd</span><span class=cF0>.down_bitmap,</span><span class=cF3>SC_CURSOR_RIGHT</span><span class=cF0>);
|
|
<a name="l1129"></a> </span><span class=cF5>Sleep</span><span class=cF0>(1000);
|
|
<a name="l1130"></a> </span><span class=cF5>PostMsgWait</span><span class=cF0>(task,</span><span class=cF3>MSG_KEY_DOWN_UP</span><span class=cF0>,</span><span class=cF3>CH_SHIFT_ESC</span><span class=cF0>,0);
|
|
<a name="l1131"></a> </span><span class=cF5>DeathWait</span><span class=cF0>(&task,</span><span class=cF3>TRUE</span><span class=cF0>);
|
|
<a name="l1132"></a>}
|
|
<a name="l1133"></a>
|
|
<a name="l1134"></a></span><span class=cF1>U0</span><span class=cF0> DoRocketScience()
|
|
<a name="l1135"></a>{
|
|
<a name="l1136"></a> </span><span class=cF9>CTask</span><span class=cF0> *task=</span><span class=cF5>User</span><span class=cF0>(</span><span class=cF6>"#include \"::/Demo/Games/RocketScience\";\n"</span><span class=cF0>);
|
|
<a name="l1137"></a> </span><span class=cF5>BirthWait</span><span class=cF0>(&task->popup_task);
|
|
<a name="l1138"></a> </span><span class=cF5>TaskWait</span><span class=cF0>(task->popup_task);
|
|
<a name="l1139"></a> </span><span class=cF5>PostMsgWait</span><span class=cF0>(task->popup_task,</span><span class=cF3>MSG_KEY_DOWN_UP</span><span class=cF0>,0,</span><span class=cF3>SC_CURSOR_DOWN</span><span class=cF0>);
|
|
<a name="l1140"></a> </span><span class=cF5>PostMsgWait</span><span class=cF0>(task->popup_task,</span><span class=cF3>MSG_KEY_DOWN_UP</span><span class=cF0>,</span><span class=cF3>CH_SPACE</span><span class=cF0>,0);
|
|
<a name="l1141"></a> </span><span class=cF5>Sleep</span><span class=cF0>(750);
|
|
<a name="l1142"></a> </span><span class=cF5>PostMsgWait</span><span class=cF0>(task,</span><span class=cF3>MSG_KEY_DOWN_UP</span><span class=cF0>,</span><span class=cF3>CH_SPACE</span><span class=cF0>,0);
|
|
<a name="l1143"></a> </span><span class=cF5>Sleep</span><span class=cF0>(2000);
|
|
<a name="l1144"></a> </span><span class=cF5>PostMsgWait</span><span class=cF0>(task,</span><span class=cF3>MSG_KEY_DOWN_UP</span><span class=cF0>,</span><span class=cF3>CH_SHIFT_ESC</span><span class=cF0>,0);
|
|
<a name="l1145"></a> </span><span class=cF5>DeathWait</span><span class=cF0>(&task,</span><span class=cF3>TRUE</span><span class=cF0>);
|
|
<a name="l1146"></a>}
|
|
<a name="l1147"></a>
|
|
<a name="l1148"></a></span><span class=cF1>U0</span><span class=cF0> DoMassSpring()
|
|
<a name="l1149"></a>{
|
|
<a name="l1150"></a> </span><span class=cF9>CTask</span><span class=cF0> *task=</span><span class=cF5>User</span><span class=cF0>(</span><span class=cF6>"#include \"::/Demo/Games/MassSpring\";\n"</span><span class=cF0>);
|
|
<a name="l1151"></a> </span><span class=cF5>BirthWait</span><span class=cF0>(&task->popup_task);
|
|
<a name="l1152"></a> </span><span class=cF5>TaskWait</span><span class=cF0>(task->popup_task);
|
|
<a name="l1153"></a> </span><span class=cF5>PostMsgWait</span><span class=cF0>(task->popup_task,</span><span class=cF3>MSG_KEY_DOWN_UP</span><span class=cF0>,</span><span class=cF3>CH_SPACE</span><span class=cF0>,0);
|
|
<a name="l1154"></a> </span><span class=cF5>DeathWait</span><span class=cF0>(&task->popup_task);
|
|
<a name="l1155"></a> </span><span class=cF5>PostMsgWait</span><span class=cF0>(task,</span><span class=cF3>MSG_MS_L_DOWN_UP</span><span class=cF0>,50,50); </span><span class=cF2>//#1</span><span class=cF0>
|
|
<a name="l1156"></a> </span><span class=cF5>PostMsgWait</span><span class=cF0>(task,</span><span class=cF3>MSG_MS_L_DOWN_UP</span><span class=cF0>,50,200); </span><span class=cF2>//#2</span><span class=cF0>
|
|
<a name="l1157"></a> </span><span class=cF5>PostMsgWait</span><span class=cF0>(task,</span><span class=cF3>MSG_MS_L_DOWN_UP</span><span class=cF0>,210,50); </span><span class=cF2>//#3</span><span class=cF0>
|
|
<a name="l1158"></a> </span><span class=cF5>PostMsgWait</span><span class=cF0>(task,</span><span class=cF3>MSG_MS_L_DOWN_UP</span><span class=cF0>,310,200);</span><span class=cF2>//#4</span><span class=cF0>
|
|
<a name="l1159"></a> </span><span class=cF5>Sleep</span><span class=cF0>(500);
|
|
<a name="l1160"></a> </span><span class=cF5>PostMsgWait</span><span class=cF0>(task,</span><span class=cF3>MSG_MS_R_DOWN</span><span class=cF0>,50,50); </span><span class=cF2>//1-2</span><span class=cF0>
|
|
<a name="l1161"></a> </span><span class=cF5>PostMsgWait</span><span class=cF0>(task,</span><span class=cF3>MSG_MS_R_UP</span><span class=cF0>,50,200);
|
|
<a name="l1162"></a> </span><span class=cF5>Sleep</span><span class=cF0>(500);
|
|
<a name="l1163"></a> </span><span class=cF5>PostMsgWait</span><span class=cF0>(task,</span><span class=cF3>MSG_MS_R_DOWN</span><span class=cF0>,210,50);</span><span class=cF2>//3-4</span><span class=cF0>
|
|
<a name="l1164"></a> </span><span class=cF5>PostMsgWait</span><span class=cF0>(task,</span><span class=cF3>MSG_MS_R_UP</span><span class=cF0>,310,200);
|
|
<a name="l1165"></a> </span><span class=cF5>Sleep</span><span class=cF0>(500);
|
|
<a name="l1166"></a> </span><span class=cF5>PostMsgWait</span><span class=cF0>(task,</span><span class=cF3>MSG_MS_R_DOWN</span><span class=cF0>,50,200);</span><span class=cF2>//2-4</span><span class=cF0>
|
|
<a name="l1167"></a> </span><span class=cF5>PostMsgWait</span><span class=cF0>(task,</span><span class=cF3>MSG_MS_R_UP</span><span class=cF0>,310,200);
|
|
<a name="l1168"></a> </span><span class=cF5>Sleep</span><span class=cF0>(500);
|
|
<a name="l1169"></a> </span><span class=cF5>PostMsgWait</span><span class=cF0>(task,</span><span class=cF3>MSG_MS_R_DOWN</span><span class=cF0>,50,50); </span><span class=cF2>//1-3</span><span class=cF0>
|
|
<a name="l1170"></a> </span><span class=cF5>PostMsgWait</span><span class=cF0>(task,</span><span class=cF3>MSG_MS_R_UP</span><span class=cF0>,210,50);
|
|
<a name="l1171"></a> </span><span class=cF5>Sleep</span><span class=cF0>(1500);
|
|
<a name="l1172"></a> </span><span class=cF5>PostMsgWait</span><span class=cF0>(task,</span><span class=cF3>MSG_KEY_DOWN_UP</span><span class=cF0>,</span><span class=cF3>CH_SHIFT_ESC</span><span class=cF0>,0);
|
|
<a name="l1173"></a> </span><span class=cF5>DeathWait</span><span class=cF0>(&task,</span><span class=cF3>TRUE</span><span class=cF0>);
|
|
<a name="l1174"></a>}
|
|
<a name="l1175"></a>
|
|
<a name="l1176"></a></span><span class=cF1>U0</span><span class=cF0> DoSquirt()
|
|
<a name="l1177"></a>{
|
|
<a name="l1178"></a> </span><span class=cF9>I64</span><span class=cF0> i;
|
|
<a name="l1179"></a> </span><span class=cF9>CTask</span><span class=cF0> *task=</span><span class=cF5>User</span><span class=cF0>;
|
|
<a name="l1180"></a> </span><span class=cF5>XTalkWait</span><span class=cF0>(task,</span><span class=cF6>"#include \"::/Demo/Games/Squirt\";\n"</span><span class=cF0>);
|
|
<a name="l1181"></a> </span><span class=cF1>for</span><span class=cF0> (i=0;i<5;i++) </span><span class=cF7>{</span><span class=cF0>
|
|
<a name="l1182"></a> </span><span class=cF5>PostMsgWait</span><span class=cF0>(task,</span><span class=cF3>MSG_KEY_DOWN_UP</span><span class=cF0>,0,</span><span class=cF3>SC_CURSOR_UP</span><span class=cF0>);
|
|
<a name="l1183"></a> </span><span class=cF5>Sleep</span><span class=cF0>(100);
|
|
<a name="l1184"></a> </span><span class=cF7>}</span><span class=cF0>
|
|
<a name="l1185"></a> </span><span class=cF1>for</span><span class=cF0> (i=0;i<5;i++) </span><span class=cF7>{</span><span class=cF0>
|
|
<a name="l1186"></a> </span><span class=cF5>PostMsgWait</span><span class=cF0>(task,</span><span class=cF3>MSG_KEY_DOWN_UP</span><span class=cF0>,0,</span><span class=cF3>SC_CURSOR_LEFT</span><span class=cF0>);
|
|
<a name="l1187"></a> </span><span class=cF5>Sleep</span><span class=cF0>(100);
|
|
<a name="l1188"></a> </span><span class=cF7>}</span><span class=cF0>
|
|
<a name="l1189"></a> </span><span class=cF1>for</span><span class=cF0> (i=0;i<5;i++) </span><span class=cF7>{</span><span class=cF0>
|
|
<a name="l1190"></a> </span><span class=cF5>PostMsgWait</span><span class=cF0>(task,</span><span class=cF3>MSG_KEY_DOWN_UP</span><span class=cF0>,0,</span><span class=cF3>SC_CURSOR_DOWN</span><span class=cF0>);
|
|
<a name="l1191"></a> </span><span class=cF5>Sleep</span><span class=cF0>(100);
|
|
<a name="l1192"></a> </span><span class=cF7>}</span><span class=cF0>
|
|
<a name="l1193"></a> </span><span class=cF1>for</span><span class=cF0> (i=0;i<5;i++) </span><span class=cF7>{</span><span class=cF0>
|
|
<a name="l1194"></a> </span><span class=cF5>PostMsgWait</span><span class=cF0>(task,</span><span class=cF3>MSG_KEY_DOWN_UP</span><span class=cF0>,0,</span><span class=cF3>SC_CURSOR_RIGHT</span><span class=cF0>);
|
|
<a name="l1195"></a> </span><span class=cF5>Sleep</span><span class=cF0>(100);
|
|
<a name="l1196"></a> </span><span class=cF7>}</span><span class=cF0>
|
|
<a name="l1197"></a> </span><span class=cF5>PostMsgWait</span><span class=cF0>(task,</span><span class=cF3>MSG_KEY_DOWN_UP</span><span class=cF0>,</span><span class=cF3>CH_SHIFT_ESC</span><span class=cF0>,0);
|
|
<a name="l1198"></a> </span><span class=cF5>DeathWait</span><span class=cF0>(&task,</span><span class=cF3>TRUE</span><span class=cF0>);
|
|
<a name="l1199"></a>}
|
|
<a name="l1200"></a>
|
|
<a name="l1201"></a></span><span class=cF1>U0</span><span class=cF0> DoXCaliber()
|
|
<a name="l1202"></a>{
|
|
<a name="l1203"></a> </span><span class=cF9>I64</span><span class=cF0> i;
|
|
<a name="l1204"></a> </span><span class=cF9>CTask</span><span class=cF0> *task=</span><span class=cF5>User</span><span class=cF0>;
|
|
<a name="l1205"></a> </span><span class=cF5>XTalk</span><span class=cF0>(task,</span><span class=cF6>"#include \"::/Apps/X-Caliber/Run\";\n"</span><span class=cF0>);
|
|
<a name="l1206"></a>
|
|
<a name="l1207"></a> </span><span class=cF5>Sleep</span><span class=cF0>(100);
|
|
<a name="l1208"></a> </span><span class=cF1>if</span><span class=cF0>(</span><span class=cF5>TaskValidate</span><span class=cF7>(</span><span class=cF0>task->popup_task</span><span class=cF7>)</span><span class=cF0>) </span><span class=cF7>{</span><span class=cF0>
|
|
<a name="l1209"></a> </span><span class=cF5>PostMsgWait</span><span class=cF0>(task->popup_task,</span><span class=cF3>MSG_KEY_DOWN_UP</span><span class=cF0>,0,</span><span class=cF3>SCF_CTRL</span><span class=cF0>|</span><span class=cF3>SC_CURSOR_DOWN</span><span class=cF0>);
|
|
<a name="l1210"></a> </span><span class=cF5>PostMsgWait</span><span class=cF0>(task->popup_task,</span><span class=cF3>MSG_KEY_DOWN_UP</span><span class=cF0>,</span><span class=cF3>CH_SPACE</span><span class=cF0>,0);
|
|
<a name="l1211"></a> </span><span class=cF5>DeathWait</span><span class=cF0>(&task->popup_task);
|
|
<a name="l1212"></a> </span><span class=cF7>}</span><span class=cF0>
|
|
<a name="l1213"></a>
|
|
<a name="l1214"></a> </span><span class=cF1>for</span><span class=cF0> (i=0;i<5;i++) </span><span class=cF7>{</span><span class=cF0>
|
|
<a name="l1215"></a> </span><span class=cF5>PostMsgWait</span><span class=cF0>(task,</span><span class=cF3>MSG_KEY_DOWN_UP</span><span class=cF0>,0,</span><span class=cF3>SCF_SHIFT</span><span class=cF0>|</span><span class=cF3>SC_CURSOR_UP</span><span class=cF0>);
|
|
<a name="l1216"></a> </span><span class=cF5>PostMsgWait</span><span class=cF0>(task,</span><span class=cF3>MSG_KEY_DOWN_UP</span><span class=cF0>,0,</span><span class=cF3>SCF_SHIFT</span><span class=cF0>|</span><span class=cF3>SC_CURSOR_RIGHT</span><span class=cF0>);
|
|
<a name="l1217"></a> </span><span class=cF7>}</span><span class=cF0>
|
|
<a name="l1218"></a> </span><span class=cF1>for</span><span class=cF0> (i=0;i<10;i++) </span><span class=cF7>{</span><span class=cF0>
|
|
<a name="l1219"></a> </span><span class=cF5>PostMsgWait</span><span class=cF0>(task,</span><span class=cF3>MSG_KEY_DOWN_UP</span><span class=cF0>,</span><span class=cF3>CH_SPACE</span><span class=cF0>,0);
|
|
<a name="l1220"></a> </span><span class=cF5>PostMsgWait</span><span class=cF0>(task,</span><span class=cF3>MSG_KEY_DOWN</span><span class=cF0>,0,</span><span class=cF3>SC_CURSOR_RIGHT</span><span class=cF0>,0);
|
|
<a name="l1221"></a> </span><span class=cF5>Sleep</span><span class=cF0>(100);
|
|
<a name="l1222"></a> </span><span class=cF5>PostMsgWait</span><span class=cF0>(task,</span><span class=cF3>MSG_KEY_UP</span><span class=cF0>,0,</span><span class=cF3>SC_CURSOR_RIGHT</span><span class=cF0>,0);
|
|
<a name="l1223"></a> </span><span class=cF5>Sleep</span><span class=cF0>(50);
|
|
<a name="l1224"></a> </span><span class=cF7>}</span><span class=cF0>
|
|
<a name="l1225"></a> </span><span class=cF5>PostMsgWait</span><span class=cF0>(task,</span><span class=cF3>MSG_KEY_DOWN_UP</span><span class=cF0>,</span><span class=cF3>CH_SHIFT_ESC</span><span class=cF0>,0);
|
|
<a name="l1226"></a> </span><span class=cF5>DeathWait</span><span class=cF0>(&task,</span><span class=cF3>TRUE</span><span class=cF0>);
|
|
<a name="l1227"></a>}
|
|
<a name="l1228"></a>
|
|
<a name="l1229"></a></span><span class=cF1>U0</span><span class=cF0> DoFPS()
|
|
<a name="l1230"></a>{
|
|
<a name="l1231"></a> </span><span class=cF9>I64</span><span class=cF0> i;
|
|
<a name="l1232"></a> </span><span class=cF9>CTask</span><span class=cF0> *task=</span><span class=cF5>User</span><span class=cF0>;
|
|
<a name="l1233"></a> </span><span class=cF5>XTalkWait</span><span class=cF0>(task,</span><span class=cF6>"#include \"::/Demo/Games/CastleFrankenstein\";\n"</span><span class=cF0>);
|
|
<a name="l1234"></a> </span><span class=cF1>for</span><span class=cF0> (i=0;i<15;i++) </span><span class=cF7>{</span><span class=cF0>
|
|
<a name="l1235"></a> </span><span class=cF5>PostMsgWait</span><span class=cF0>(task,</span><span class=cF3>MSG_KEY_DOWN_UP</span><span class=cF0>,0,</span><span class=cF3>SC_CURSOR_UP</span><span class=cF0>);
|
|
<a name="l1236"></a> </span><span class=cF5>Sleep</span><span class=cF0>(50);
|
|
<a name="l1237"></a> </span><span class=cF7>}</span><span class=cF0>
|
|
<a name="l1238"></a> </span><span class=cF1>for</span><span class=cF0> (i=0;i<8;i++) </span><span class=cF7>{</span><span class=cF0>
|
|
<a name="l1239"></a> </span><span class=cF5>PostMsgWait</span><span class=cF0>(task,</span><span class=cF3>MSG_KEY_DOWN_UP</span><span class=cF0>,0,</span><span class=cF3>SC_CURSOR_RIGHT</span><span class=cF0>);
|
|
<a name="l1240"></a> </span><span class=cF5>Sleep</span><span class=cF0>(50);
|
|
<a name="l1241"></a> </span><span class=cF7>}</span><span class=cF0>
|
|
<a name="l1242"></a> </span><span class=cF1>for</span><span class=cF0> (i=0;i<9;i++) </span><span class=cF7>{</span><span class=cF0>
|
|
<a name="l1243"></a> </span><span class=cF5>PostMsgWait</span><span class=cF0>(task,</span><span class=cF3>MSG_KEY_DOWN_UP</span><span class=cF0>,0,</span><span class=cF3>SC_CURSOR_UP</span><span class=cF0>);
|
|
<a name="l1244"></a> </span><span class=cF5>Sleep</span><span class=cF0>(50);
|
|
<a name="l1245"></a> </span><span class=cF7>}</span><span class=cF0>
|
|
<a name="l1246"></a> </span><span class=cF1>for</span><span class=cF0> (i=0;i<6;i++) </span><span class=cF7>{</span><span class=cF0>
|
|
<a name="l1247"></a> </span><span class=cF5>PostMsgWait</span><span class=cF0>(task,</span><span class=cF3>MSG_KEY_DOWN_UP</span><span class=cF0>,0,</span><span class=cF3>SC_CURSOR_RIGHT</span><span class=cF0>);
|
|
<a name="l1248"></a> </span><span class=cF5>Sleep</span><span class=cF0>(50);
|
|
<a name="l1249"></a> </span><span class=cF7>}</span><span class=cF0>
|
|
<a name="l1250"></a> </span><span class=cF5>PostMsgWait</span><span class=cF0>(task,</span><span class=cF3>MSG_KEY_DOWN_UP</span><span class=cF0>,</span><span class=cF3>CH_SHIFT_ESC</span><span class=cF0>,0);
|
|
<a name="l1251"></a> </span><span class=cF5>DeathWait</span><span class=cF0>(&task,</span><span class=cF3>TRUE</span><span class=cF0>);
|
|
<a name="l1252"></a>}
|
|
<a name="l1253"></a>
|
|
<a name="l1254"></a></span><span class=cF1>U0</span><span class=cF0> DoTalons()
|
|
<a name="l1255"></a>{
|
|
<a name="l1256"></a> </span><span class=cF9>I64</span><span class=cF0> i;
|
|
<a name="l1257"></a> </span><span class=cF9>CTask</span><span class=cF0> *task=</span><span class=cF5>User</span><span class=cF0>;
|
|
<a name="l1258"></a> </span><span class=cF5>XTalkWait</span><span class=cF0>(task,</span><span class=cF6>"#include \"::/Demo/Games/Talons\";\n"</span><span class=cF0>);
|
|
<a name="l1259"></a> </span><span class=cF5>Sleep</span><span class=cF0>(500);
|
|
<a name="l1260"></a> </span><span class=cF1>for</span><span class=cF0> (i=0;i<10;i++) </span><span class=cF7>{</span><span class=cF0>
|
|
<a name="l1261"></a> </span><span class=cF5>PostMsgWait</span><span class=cF0>(task,</span><span class=cF3>MSG_KEY_DOWN_UP</span><span class=cF0>,0,</span><span class=cF3>SC_CURSOR_UP</span><span class=cF0>);
|
|
<a name="l1262"></a> </span><span class=cF5>Sleep</span><span class=cF0>(50);
|
|
<a name="l1263"></a> </span><span class=cF7>}</span><span class=cF0>
|
|
<a name="l1264"></a> </span><span class=cF1>for</span><span class=cF0> (i=0;i<10;i++) </span><span class=cF7>{</span><span class=cF0>
|
|
<a name="l1265"></a> </span><span class=cF5>PostMsgWait</span><span class=cF0>(task,</span><span class=cF3>MSG_KEY_DOWN_UP</span><span class=cF0>,0,</span><span class=cF3>SC_CURSOR_DOWN</span><span class=cF0>);
|
|
<a name="l1266"></a> </span><span class=cF5>Sleep</span><span class=cF0>(50);
|
|
<a name="l1267"></a> </span><span class=cF7>}</span><span class=cF0>
|
|
<a name="l1268"></a> </span><span class=cF5>PostMsgWait</span><span class=cF0>(task,</span><span class=cF3>MSG_KEY_DOWN_UP</span><span class=cF0>,</span><span class=cF3>CH_SHIFT_ESC</span><span class=cF0>,0);
|
|
<a name="l1269"></a> </span><span class=cF5>DeathWait</span><span class=cF0>(&task,</span><span class=cF3>TRUE</span><span class=cF0>);
|
|
<a name="l1270"></a>}
|
|
<a name="l1271"></a>
|
|
<a name="l1272"></a></span><span class=cF1>U0</span><span class=cF0> DoPhoneNumWords()
|
|
<a name="l1273"></a>{
|
|
<a name="l1274"></a> </span><span class=cF9>CTask</span><span class=cF0> *task=</span><span class=cF5>User</span><span class=cF0>;
|
|
<a name="l1275"></a> </span><span class=cF5>XTalkWait</span><span class=cF0>(task,</span><span class=cF6>"#include \"::/Demo/PhoneNumWords\";\n"</span><span class=cF0>);
|
|
<a name="l1276"></a> </span><span class=cF5>XTalkWait</span><span class=cF0>(task,</span><span class=cF6>"702-254-4223\n\n"</span><span class=cF0>);
|
|
<a name="l1277"></a> </span><span class=cF5>Sleep</span><span class=cF0>(750);
|
|
<a name="l1278"></a> </span><span class=cF5>DeathWait</span><span class=cF0>(&task,</span><span class=cF3>TRUE</span><span class=cF0>);
|
|
<a name="l1279"></a>}
|
|
<a name="l1280"></a>
|
|
<a name="l1281"></a></span><span class=cF1>U0</span><span class=cF0> DoSuggestedSpelling()
|
|
<a name="l1282"></a>{
|
|
<a name="l1283"></a> </span><span class=cF9>CTask</span><span class=cF0> *task=</span><span class=cF5>User</span><span class=cF0>;
|
|
<a name="l1284"></a> </span><span class=cF5>XTalkWait</span><span class=cF0>(task,</span><span class=cF6>"#include \"::/Demo/SuggestSpelling\";\n"</span><span class=cF0>);
|
|
<a name="l1285"></a> </span><span class=cF5>XTalkWait</span><span class=cF0>(task,</span><span class=cF6>"effecient\n\n"</span><span class=cF0>);
|
|
<a name="l1286"></a> </span><span class=cF5>Sleep</span><span class=cF0>(750);
|
|
<a name="l1287"></a> </span><span class=cF5>DeathWait</span><span class=cF0>(&task,</span><span class=cF3>TRUE</span><span class=cF0>);
|
|
<a name="l1288"></a>}
|
|
<a name="l1289"></a>
|
|
<a name="l1290"></a></span><span class=cF1>U0</span><span class=cF0> DoFPrintF()
|
|
<a name="l1291"></a>{
|
|
<a name="l1292"></a> </span><span class=cF9>CTask</span><span class=cF0> *task=</span><span class=cF5>User</span><span class=cF0>;
|
|
<a name="l1293"></a> </span><span class=cF5>XTalkWait</span><span class=cF0>(task,</span><span class=cF6>"#include \"::/Demo/Dsk/FPrintF\";\n"</span><span class=cF0>);
|
|
<a name="l1294"></a> </span><span class=cF5>XTalkWait</span><span class=cF0>(task,</span><span class=cF6>"~/DemoFPrintF.DD.Z"</span><span class=cF0>);
|
|
<a name="l1295"></a> </span><span class=cF5>PostMsgWait</span><span class=cF0>(task,</span><span class=cF3>MSG_KEY_DOWN_UP</span><span class=cF0>,</span><span class=cF3>CH_ESC</span><span class=cF0>,0);
|
|
<a name="l1296"></a> </span><span class=cF5>XTalkWait</span><span class=cF0>(task,</span><span class=cF6>"Type(\"~/DemoFPrintF.DD.Z\");\n"</span><span class=cF0>);
|
|
<a name="l1297"></a> </span><span class=cF5>PostMsgWait</span><span class=cF0>(task,</span><span class=cF3>MSG_KEY_DOWN_UP</span><span class=cF0>,</span><span class=cF3>CH_CTRLO</span><span class=cF0>,0);
|
|
<a name="l1298"></a> </span><span class=cF5>XTalkWait</span><span class=cF0>(task,</span><span class=cF6>"Del(\"~/DemoFPrintF.DD*\");\n"</span><span class=cF0>);
|
|
<a name="l1299"></a> </span><span class=cF5>Sleep</span><span class=cF0>(500);
|
|
<a name="l1300"></a> </span><span class=cF5>DeathWait</span><span class=cF0>(&task,</span><span class=cF3>TRUE</span><span class=cF0>);
|
|
<a name="l1301"></a>}
|
|
<a name="l1302"></a>
|
|
<a name="l1303"></a></span><span class=cF1>U0</span><span class=cF0> DoLastClass()
|
|
<a name="l1304"></a>{
|
|
<a name="l1305"></a> </span><span class=cF9>CTask</span><span class=cF0> *task=</span><span class=cF5>User</span><span class=cF0>;
|
|
<a name="l1306"></a> </span><span class=cF5>XTalkWait</span><span class=cF0>(task,</span><span class=cF6>"#include \"::/Demo/LastClass\";\n"</span><span class=cF0>);
|
|
<a name="l1307"></a> </span><span class=cF5>Sleep</span><span class=cF0>(500);
|
|
<a name="l1308"></a> </span><span class=cF5>PostMsgWait</span><span class=cF0>(task,</span><span class=cF3>MSG_KEY_DOWN_UP</span><span class=cF0>,</span><span class=cF3>CH_SPACE</span><span class=cF0>,0);
|
|
<a name="l1309"></a> </span><span class=cF5>Sleep</span><span class=cF0>(500);
|
|
<a name="l1310"></a> </span><span class=cF5>PostMsgWait</span><span class=cF0>(task,</span><span class=cF3>MSG_KEY_DOWN_UP</span><span class=cF0>,</span><span class=cF3>CH_SPACE</span><span class=cF0>,0);
|
|
<a name="l1311"></a> </span><span class=cF5>Sleep</span><span class=cF0>(500);
|
|
<a name="l1312"></a> </span><span class=cF5>DeathWait</span><span class=cF0>(&task,</span><span class=cF3>TRUE</span><span class=cF0>);
|
|
<a name="l1313"></a>}
|
|
<a name="l1314"></a>
|
|
<a name="l1315"></a></span><span class=cF1>U0</span><span class=cF0> DoMiniCompiler()
|
|
<a name="l1316"></a>{
|
|
<a name="l1317"></a> </span><span class=cF9>CTask</span><span class=cF0> *task=</span><span class=cF5>User</span><span class=cF0>;
|
|
<a name="l1318"></a> </span><span class=cF5>XTalkWait</span><span class=cF0>(task,</span><span class=cF6>"#include \"::/Demo/Lectures/MiniCompiler\";\n"</span><span class=cF0>);
|
|
<a name="l1319"></a> </span><span class=cF5>XTalkWait</span><span class=cF0>(task,</span><span class=cF6>"1+2*(3+4)\n"</span><span class=cF0>);
|
|
<a name="l1320"></a> </span><span class=cF5>Sleep</span><span class=cF0>(750);
|
|
<a name="l1321"></a> </span><span class=cF5>PostMsgWait</span><span class=cF0>(task,</span><span class=cF3>MSG_KEY_DOWN_UP</span><span class=cF0>,</span><span class=cF3>CH_SHIFT_ESC</span><span class=cF0>,0);
|
|
<a name="l1322"></a> </span><span class=cF5>DeathWait</span><span class=cF0>(&task,</span><span class=cF3>TRUE</span><span class=cF0>);
|
|
<a name="l1323"></a>}
|
|
<a name="l1324"></a>
|
|
<a name="l1325"></a></span><span class=cF1>U0</span><span class=cF0> DoWebLog()
|
|
<a name="l1326"></a>{
|
|
<a name="l1327"></a> </span><span class=cF9>CTask</span><span class=cF0> *task=</span><span class=cF5>User</span><span class=cF0>;
|
|
<a name="l1328"></a> </span><span class=cF5>XTalkWait</span><span class=cF0>(task,</span><span class=cF6>"#include \"::/Demo/WebLogDemo/WebLogRep\";\n"</span><span class=cF0>);
|
|
<a name="l1329"></a> </span><span class=cF5>PostMsgWait</span><span class=cF0>(task,</span><span class=cF3>MSG_KEY_DOWN_UP</span><span class=cF0>,</span><span class=cF6>'\n'</span><span class=cF0>,0);
|
|
<a name="l1330"></a> </span><span class=cF5>PostMsgWait</span><span class=cF0>(task,</span><span class=cF3>MSG_KEY_DOWN_UP</span><span class=cF0>,</span><span class=cF6>'\n'</span><span class=cF0>,0);
|
|
<a name="l1331"></a> </span><span class=cF5>PostMsgWait</span><span class=cF0>(task,</span><span class=cF3>MSG_KEY_DOWN_UP</span><span class=cF0>,</span><span class=cF3>CH_ESC</span><span class=cF0>,0);
|
|
<a name="l1332"></a> </span><span class=cF5>Sleep</span><span class=cF0>(750);
|
|
<a name="l1333"></a> </span><span class=cF5>DeathWait</span><span class=cF0>(&task,</span><span class=cF3>TRUE</span><span class=cF0>);
|
|
<a name="l1334"></a>}
|
|
<a name="l1335"></a>
|
|
<a name="l1336"></a></span><span class=cF1>U0</span><span class=cF0> DoRevFile()
|
|
<a name="l1337"></a>{
|
|
<a name="l1338"></a> </span><span class=cF9>CTask</span><span class=cF0> *task;
|
|
<a name="l1339"></a> </span><span class=cF5>Del</span><span class=cF0>(</span><span class=cF6>"~/DemoPoemFwd.DD*"</span><span class=cF0>);
|
|
<a name="l1340"></a> task=</span><span class=cF5>User</span><span class=cF0>(</span><span class=cF6>"#include \"::/Demo/RevFileDemo/Rev\";"</span><span class=cF0>
|
|
<a name="l1341"></a> </span><span class=cF6>"Type(\"~/DemoPoemFwd.DD.Z\");Sleep(750);\n"</span><span class=cF0>);
|
|
<a name="l1342"></a> </span><span class=cF5>DeathWait</span><span class=cF0>(&task,</span><span class=cF3>TRUE</span><span class=cF0>);
|
|
<a name="l1343"></a>}
|
|
<a name="l1344"></a>
|
|
<a name="l1345"></a></span><span class=cF1>U0</span><span class=cF0> DoSortFile()
|
|
<a name="l1346"></a>{
|
|
<a name="l1347"></a> </span><span class=cF9>CTask</span><span class=cF0> *task=</span><span class=cF5>User</span><span class=cF0>(</span><span class=cF6>"#include \"::/Demo/SortFileDemo/F64FileGen\";"</span><span class=cF0>
|
|
<a name="l1348"></a> </span><span class=cF6>"#include \"::/Demo/SortFileDemo/F64FileSort\";Sleep(750);\n"</span><span class=cF0>);
|
|
<a name="l1349"></a> </span><span class=cF5>DeathWait</span><span class=cF0>(&task,</span><span class=cF3>TRUE</span><span class=cF0>);
|
|
<a name="l1350"></a>}
|
|
<a name="l1351"></a>
|
|
<a name="l1352"></a></span><span class=cF1>U0</span><span class=cF0> DoToHtmlToTXT()
|
|
<a name="l1353"></a>{
|
|
<a name="l1354"></a> </span><span class=cF9>CTask</span><span class=cF0> *task=</span><span class=cF5>User</span><span class=cF0>(</span><span class=cF6>"#include \"::/Demo/ToHtmlToTXTDemo/HtmlGen\";"</span><span class=cF0>
|
|
<a name="l1355"></a> </span><span class=cF6>"#include \"::/Demo/ToHtmlToTXTDemo/TXTGen\";"</span><span class=cF0>
|
|
<a name="l1356"></a> </span><span class=cF6>"Type(\"~/DemoOutPage.TXT\");Sleep(750);\n"</span><span class=cF0>);
|
|
<a name="l1357"></a> </span><span class=cF5>DeathWait</span><span class=cF0>(&task,</span><span class=cF3>TRUE</span><span class=cF0>);
|
|
<a name="l1358"></a>}
|
|
<a name="l1359"></a>
|
|
<a name="l1360"></a></span><span class=cF1>U0</span><span class=cF0> DoLogic()
|
|
<a name="l1361"></a>{
|
|
<a name="l1362"></a> </span><span class=cF9>CTask</span><span class=cF0> *task=</span><span class=cF5>User</span><span class=cF0>;
|
|
<a name="l1363"></a> </span><span class=cF5>XTalkWait</span><span class=cF0>(task,</span><span class=cF6>"#include \"::/Apps/Logic/Run\";\n"</span><span class=cF0>);
|
|
<a name="l1364"></a> </span><span class=cF5>XTalkWait</span><span class=cF0>(task,</span><span class=cF6>"NAND\nNOR\n\n0x100\n0xF0\n0xCC\n0xAA\n\n0x12\n\n"</span><span class=cF0>);
|
|
<a name="l1365"></a> </span><span class=cF5>Sleep</span><span class=cF0>(750);
|
|
<a name="l1366"></a> </span><span class=cF5>PostMsgWait</span><span class=cF0>(task,</span><span class=cF3>MSG_KEY_DOWN_UP</span><span class=cF0>,</span><span class=cF3>CH_SPACE</span><span class=cF0>,0);
|
|
<a name="l1367"></a> </span><span class=cF5>DeathWait</span><span class=cF0>(&task,</span><span class=cF3>TRUE</span><span class=cF0>);
|
|
<a name="l1368"></a>}
|
|
<a name="l1369"></a>
|
|
<a name="l1370"></a></span><span class=cF1>U0</span><span class=cF0> DoPrompt()
|
|
<a name="l1371"></a>{
|
|
<a name="l1372"></a> </span><span class=cF9>CTask</span><span class=cF0> *task=</span><span class=cF5>User</span><span class=cF0>;
|
|
<a name="l1373"></a> </span><span class=cF5>XTalkWait</span><span class=cF0>(task,</span><span class=cF6>"#include \"::/Demo/Prompt\";\n"</span><span class=cF0>);
|
|
<a name="l1374"></a> </span><span class=cF5>XTalkWait</span><span class=cF0>(task,</span><span class=cF6>"1+2*3<<4\n"</span><span class=cF0>);
|
|
<a name="l1375"></a> </span><span class=cF5>XTalkWait</span><span class=cF0>(task,</span><span class=cF6>"1.0+2*3`2\n"</span><span class=cF0>);
|
|
<a name="l1376"></a> </span><span class=cF5>XTalkWait</span><span class=cF0>(task,</span><span class=cF6>"Terry Davis\n"</span><span class=cF0>);
|
|
<a name="l1377"></a> </span><span class=cF5>XTalkWait</span><span class=cF0>(task,</span><span class=cF6>"*-1\n"</span><span class=cF0>);
|
|
<a name="l1378"></a> </span><span class=cF5>Sleep</span><span class=cF0>(750);
|
|
<a name="l1379"></a> </span><span class=cF5>PostMsgWait</span><span class=cF0>(task,</span><span class=cF3>MSG_KEY_DOWN_UP</span><span class=cF0>,</span><span class=cF3>CH_SPACE</span><span class=cF0>,0);
|
|
<a name="l1380"></a> </span><span class=cF5>DeathWait</span><span class=cF0>(&task,</span><span class=cF3>TRUE</span><span class=cF0>);
|
|
<a name="l1381"></a>}
|
|
<a name="l1382"></a>
|
|
<a name="l1383"></a></span><span class=cF1>U0</span><span class=cF0> DoNumBible()
|
|
<a name="l1384"></a>{
|
|
<a name="l1385"></a> </span><span class=cF9>CTask</span><span class=cF0> *task=</span><span class=cF5>User</span><span class=cF0>;
|
|
<a name="l1386"></a> </span><span class=cF5>XTalkWait</span><span class=cF0>(task,</span><span class=cF6>"#include \"::/Demo/DolDoc/NumBible\";\n"</span><span class=cF0>);
|
|
<a name="l1387"></a> </span><span class=cF5>Del</span><span class=cF0>(</span><span class=cF6>"~/DemoNumBible.DD*"</span><span class=cF0>);
|
|
<a name="l1388"></a> </span><span class=cF5>DeathWait</span><span class=cF0>(&task,</span><span class=cF3>TRUE</span><span class=cF0>);
|
|
<a name="l1389"></a>}
|
|
<a name="l1390"></a>
|
|
<a name="l1391"></a></span><span class=cF1>U0</span><span class=cF0> DoForm()
|
|
<a name="l1392"></a>{
|
|
<a name="l1393"></a> </span><span class=cF9>CTask</span><span class=cF0> *task=</span><span class=cF5>User</span><span class=cF0>;
|
|
<a name="l1394"></a> </span><span class=cF5>XTalkWait</span><span class=cF0>(task,</span><span class=cF6>"#include \"::/Demo/DolDoc/Form\";\n"</span><span class=cF0>);
|
|
<a name="l1395"></a> </span><span class=cF5>Sleep</span><span class=cF0>(250);
|
|
<a name="l1396"></a> </span><span class=cF5>XTalk</span><span class=cF0>(task,</span><span class=cF6>"54321"</span><span class=cF0>);
|
|
<a name="l1397"></a> </span><span class=cF5>Sleep</span><span class=cF0>(250);
|
|
<a name="l1398"></a> </span><span class=cF5>PostMsgWait</span><span class=cF0>(task,</span><span class=cF3>MSG_KEY_DOWN_UP</span><span class=cF0>,0,</span><span class=cF3>SC_CURSOR_DOWN</span><span class=cF0>);
|
|
<a name="l1399"></a> </span><span class=cF5>Sleep</span><span class=cF0>(250);
|
|
<a name="l1400"></a> </span><span class=cF5>PostMsgWait</span><span class=cF0>(task,</span><span class=cF3>MSG_KEY_DOWN_UP</span><span class=cF0>,0,</span><span class=cF3>SCF_CTRL</span><span class=cF0>|</span><span class=cF3>SC_CURSOR_LEFT</span><span class=cF0>);
|
|
<a name="l1401"></a> </span><span class=cF5>XTalk</span><span class=cF0>(task,</span><span class=cF6>"77777"</span><span class=cF0>);
|
|
<a name="l1402"></a> </span><span class=cF5>Sleep</span><span class=cF0>(250);
|
|
<a name="l1403"></a> </span><span class=cF5>PostMsgWait</span><span class=cF0>(task,</span><span class=cF3>MSG_KEY_DOWN_UP</span><span class=cF0>,0,</span><span class=cF3>SC_CURSOR_DOWN</span><span class=cF0>);
|
|
<a name="l1404"></a> </span><span class=cF5>PostMsgWait</span><span class=cF0>(task,</span><span class=cF3>MSG_KEY_DOWN_UP</span><span class=cF0>,0,</span><span class=cF3>SC_CURSOR_DOWN</span><span class=cF0>);
|
|
<a name="l1405"></a> </span><span class=cF5>PostMsgWait</span><span class=cF0>(task,</span><span class=cF3>MSG_KEY_DOWN_UP</span><span class=cF0>,0,</span><span class=cF3>SC_CURSOR_DOWN</span><span class=cF0>);
|
|
<a name="l1406"></a> </span><span class=cF5>PostMsgWait</span><span class=cF0>(task,</span><span class=cF3>MSG_KEY_DOWN_UP</span><span class=cF0>,0,</span><span class=cF3>SC_CURSOR_DOWN</span><span class=cF0>);
|
|
<a name="l1407"></a> </span><span class=cF5>Sleep</span><span class=cF0>(250);
|
|
<a name="l1408"></a> </span><span class=cF5>XTalk</span><span class=cF0>(task,</span><span class=cF6>"MyName"</span><span class=cF0>);
|
|
<a name="l1409"></a> </span><span class=cF5>Sleep</span><span class=cF0>(750);
|
|
<a name="l1410"></a> </span><span class=cF5>PostMsgWait</span><span class=cF0>(task,</span><span class=cF3>MSG_KEY_DOWN_UP</span><span class=cF0>,</span><span class=cF3>CH_ESC</span><span class=cF0>,0);
|
|
<a name="l1411"></a> </span><span class=cF5>Sleep</span><span class=cF0>(750);
|
|
<a name="l1412"></a> </span><span class=cF5>DeathWait</span><span class=cF0>(&task,</span><span class=cF3>TRUE</span><span class=cF0>);
|
|
<a name="l1413"></a>}
|
|
<a name="l1414"></a>
|
|
<a name="l1415"></a></span><span class=cF1>U0</span><span class=cF0> DoClickCallBack()
|
|
<a name="l1416"></a>{
|
|
<a name="l1417"></a> </span><span class=cF9>I64</span><span class=cF0> i;
|
|
<a name="l1418"></a> </span><span class=cF9>CTask</span><span class=cF0> *task=</span><span class=cF5>User</span><span class=cF0>(</span><span class=cF6>"#include \"::/Demo/DolDoc/ClickCallBack\";\n"</span><span class=cF0>);
|
|
<a name="l1419"></a> </span><span class=cF1>for</span><span class=cF0> (i=0;i<3;i++) </span><span class=cF7>{</span><span class=cF0>
|
|
<a name="l1420"></a> </span><span class=cF5>BirthWait</span><span class=cF0>(&task->popup_task);
|
|
<a name="l1421"></a> </span><span class=cF5>TaskWait</span><span class=cF0>(task->popup_task);
|
|
<a name="l1422"></a> </span><span class=cF5>PostMsgWait</span><span class=cF0>(task->popup_task,</span><span class=cF3>MSG_KEY_DOWN_UP</span><span class=cF0>,</span><span class=cF3>CH_SPACE</span><span class=cF0>,0);
|
|
<a name="l1423"></a> </span><span class=cF5>Sleep</span><span class=cF0>(250);
|
|
<a name="l1424"></a> </span><span class=cF7>}</span><span class=cF0>
|
|
<a name="l1425"></a> </span><span class=cF5>Sleep</span><span class=cF0>(500);
|
|
<a name="l1426"></a> </span><span class=cF5>DeathWait</span><span class=cF0>(&task,</span><span class=cF3>TRUE</span><span class=cF0>);
|
|
<a name="l1427"></a>}
|
|
<a name="l1428"></a>
|
|
<a name="l1429"></a></span><span class=cF1>U0</span><span class=cF0> DoMenuBttn()
|
|
<a name="l1430"></a>{
|
|
<a name="l1431"></a> </span><span class=cF9>CTask</span><span class=cF0> *task=</span><span class=cF5>User</span><span class=cF0>;
|
|
<a name="l1432"></a> </span><span class=cF5>XTalkWait</span><span class=cF0>(task,</span><span class=cF6>"#include \"::/Demo/DolDoc/MenuBttn\";\n"</span><span class=cF0>);
|
|
<a name="l1433"></a> </span><span class=cF5>PostMsgWait</span><span class=cF0>(task,</span><span class=cF3>MSG_KEY_DOWN_UP</span><span class=cF0>,</span><span class=cF3>CH_SPACE</span><span class=cF0>,0);
|
|
<a name="l1434"></a> </span><span class=cF5>Sleep</span><span class=cF0>(500);
|
|
<a name="l1435"></a> </span><span class=cF5>PostMsgWait</span><span class=cF0>(task,</span><span class=cF3>MSG_KEY_DOWN_UP</span><span class=cF0>,0,</span><span class=cF3>SC_CURSOR_DOWN</span><span class=cF0>,0);
|
|
<a name="l1436"></a> </span><span class=cF5>Sleep</span><span class=cF0>(500);
|
|
<a name="l1437"></a> </span><span class=cF5>PostMsg</span><span class=cF0>(task,</span><span class=cF3>MSG_KEY_DOWN_UP</span><span class=cF0>,</span><span class=cF3>CH_SPACE</span><span class=cF0>,0);
|
|
<a name="l1438"></a> </span><span class=cF5>BirthWait</span><span class=cF0>(&task->popup_task);
|
|
<a name="l1439"></a> </span><span class=cF5>TaskWait</span><span class=cF0>(task->popup_task);
|
|
<a name="l1440"></a> </span><span class=cF5>Sleep</span><span class=cF0>(500);
|
|
<a name="l1441"></a> </span><span class=cF5>PostMsgWait</span><span class=cF0>(</span><span class=cFB>sys_focus_task</span><span class=cF0>,</span><span class=cF3>MSG_KEY_DOWN_UP</span><span class=cF0>,0,</span><span class=cF3>SC_CURSOR_RIGHT</span><span class=cF0>);
|
|
<a name="l1442"></a> </span><span class=cF5>Sleep</span><span class=cF0>(500);
|
|
<a name="l1443"></a> </span><span class=cF5>PostMsgWait</span><span class=cF0>(task->popup_task,</span><span class=cF3>MSG_KEY_DOWN_UP</span><span class=cF0>,</span><span class=cF3>CH_SPACE</span><span class=cF0>,0);
|
|
<a name="l1444"></a> </span><span class=cF5>DeathWait</span><span class=cF0>(&task->popup_task);
|
|
<a name="l1445"></a> </span><span class=cF5>Sleep</span><span class=cF0>(750);
|
|
<a name="l1446"></a> </span><span class=cF5>PostMsgWait</span><span class=cF0>(task,</span><span class=cF3>MSG_KEY_DOWN_UP</span><span class=cF0>,</span><span class=cF3>CH_SHIFT_ESC</span><span class=cF0>,0);
|
|
<a name="l1447"></a> </span><span class=cF5>DeathWait</span><span class=cF0>(&task,</span><span class=cF3>TRUE</span><span class=cF0>);
|
|
<a name="l1448"></a>}
|
|
<a name="l1449"></a>
|
|
<a name="l1450"></a></span><span class=cF1>U0</span><span class=cF0> DoMenuSprite()
|
|
<a name="l1451"></a>{
|
|
<a name="l1452"></a> </span><span class=cF9>CTask</span><span class=cF0> *task=</span><span class=cF5>User</span><span class=cF0>;
|
|
<a name="l1453"></a> </span><span class=cF5>XTalkWait</span><span class=cF0>(task,</span><span class=cF6>"#include \"::/Demo/DolDoc/MenuSprite\";\n"</span><span class=cF0>);
|
|
<a name="l1454"></a> </span><span class=cF5>PostMsgWait</span><span class=cF0>(task,</span><span class=cF3>MSG_KEY_DOWN_UP</span><span class=cF0>,0,</span><span class=cF3>SC_CURSOR_DOWN</span><span class=cF0>,0);
|
|
<a name="l1455"></a> </span><span class=cF5>Sleep</span><span class=cF0>(50);
|
|
<a name="l1456"></a> </span><span class=cF5>PostMsgWait</span><span class=cF0>(task,</span><span class=cF3>MSG_KEY_DOWN_UP</span><span class=cF0>,</span><span class=cF3>CH_SPACE</span><span class=cF0>,0);
|
|
<a name="l1457"></a> </span><span class=cF5>Sleep</span><span class=cF0>(300);
|
|
<a name="l1458"></a> </span><span class=cF5>PostMsgWait</span><span class=cF0>(task,</span><span class=cF3>MSG_KEY_DOWN_UP</span><span class=cF0>,0,</span><span class=cF3>SC_CURSOR_DOWN</span><span class=cF0>,0);
|
|
<a name="l1459"></a> </span><span class=cF5>Sleep</span><span class=cF0>(50);
|
|
<a name="l1460"></a> </span><span class=cF5>PostMsgWait</span><span class=cF0>(task,</span><span class=cF3>MSG_KEY_DOWN_UP</span><span class=cF0>,0,</span><span class=cF3>SC_CURSOR_DOWN</span><span class=cF0>,0);
|
|
<a name="l1461"></a> </span><span class=cF5>Sleep</span><span class=cF0>(50);
|
|
<a name="l1462"></a> </span><span class=cF5>PostMsgWait</span><span class=cF0>(task,</span><span class=cF3>MSG_KEY_DOWN_UP</span><span class=cF0>,</span><span class=cF3>CH_SPACE</span><span class=cF0>,0);
|
|
<a name="l1463"></a> </span><span class=cF5>Sleep</span><span class=cF0>(300);
|
|
<a name="l1464"></a> </span><span class=cF5>PostMsgWait</span><span class=cF0>(task,</span><span class=cF3>MSG_KEY_DOWN_UP</span><span class=cF0>,</span><span class=cF3>CH_SHIFT_ESC</span><span class=cF0>,0);
|
|
<a name="l1465"></a> </span><span class=cF5>DeathWait</span><span class=cF0>(&task,</span><span class=cF3>TRUE</span><span class=cF0>);
|
|
<a name="l1466"></a>}
|
|
<a name="l1467"></a>
|
|
<a name="l1468"></a></span><span class=cF1>U0</span><span class=cF0> DoExceptions()
|
|
<a name="l1469"></a>{
|
|
<a name="l1470"></a> </span><span class=cF9>CTask</span><span class=cF0> *task=</span><span class=cF5>User</span><span class=cF0>;
|
|
<a name="l1471"></a> </span><span class=cF5>XTalkWait</span><span class=cF0>(task,</span><span class=cF6>"#include \"::/Demo/Exceptions\";\n"</span><span class=cF0>);
|
|
<a name="l1472"></a> </span><span class=cF5>XTalkWait</span><span class=cF0>(task,</span><span class=cF6>"yy"</span><span class=cF0>);
|
|
<a name="l1473"></a> </span><span class=cF5>Sleep</span><span class=cF0>(750);
|
|
<a name="l1474"></a> </span><span class=cF5>DeathWait</span><span class=cF0>(&task,</span><span class=cF3>TRUE</span><span class=cF0>);
|
|
<a name="l1475"></a>}
|
|
<a name="l1476"></a>
|
|
<a name="l1477"></a></span><span class=cF1>U0</span><span class=cF0> DoDemoDoc()
|
|
<a name="l1478"></a>{
|
|
<a name="l1479"></a> </span><span class=cF9>CTask</span><span class=cF0> *task=</span><span class=cF5>User</span><span class=cF0>;
|
|
<a name="l1480"></a> </span><span class=cF5>XTalkWait</span><span class=cF0>(task,</span><span class=cF6>"Ed(\"::/Demo/DolDoc/DemoDoc.DD\");\n"</span><span class=cF0>);
|
|
<a name="l1481"></a> </span><span class=cF5>PostMsgWait</span><span class=cF0>(task,</span><span class=cF3>MSG_KEY_DOWN_UP</span><span class=cF0>,</span><span class=cF3>CH_CTRLG</span><span class=cF0>,0);
|
|
<a name="l1482"></a> </span><span class=cF5>XTalkWait</span><span class=cF0>(task,</span><span class=cF6>"100"</span><span class=cF0>);
|
|
<a name="l1483"></a> </span><span class=cF5>PostMsgWait</span><span class=cF0>(task,</span><span class=cF3>MSG_KEY_DOWN_UP</span><span class=cF0>,</span><span class=cF3>CH_ESC</span><span class=cF0>,0);
|
|
<a name="l1484"></a> </span><span class=cF5>Sleep</span><span class=cF0>(750);
|
|
<a name="l1485"></a> </span><span class=cF5>PostMsgWait</span><span class=cF0>(task,</span><span class=cF3>MSG_KEY_DOWN_UP</span><span class=cF0>,</span><span class=cF3>CH_SHIFT_ESC</span><span class=cF0>,0);
|
|
<a name="l1486"></a> </span><span class=cF5>DeathWait</span><span class=cF0>(&task,</span><span class=cF3>TRUE</span><span class=cF0>);
|
|
<a name="l1487"></a>}
|
|
<a name="l1488"></a>
|
|
<a name="l1489"></a></span><span class=cF1>U0</span><span class=cF0> DoFileRead()
|
|
<a name="l1490"></a>{
|
|
<a name="l1491"></a> </span><span class=cF9>CTask</span><span class=cF0> *task=</span><span class=cF5>User</span><span class=cF0>;
|
|
<a name="l1492"></a> </span><span class=cF5>XTalkWait</span><span class=cF0>(task,</span><span class=cF6>"#include \"::/Demo/DolDoc/FileRead\";\n"</span><span class=cF0>);
|
|
<a name="l1493"></a> </span><span class=cF5>Sleep</span><span class=cF0>(750);
|
|
<a name="l1494"></a> </span><span class=cF5>PostMsgWait</span><span class=cF0>(task,</span><span class=cF3>MSG_KEY_DOWN_UP</span><span class=cF0>,</span><span class=cF3>CH_SPACE</span><span class=cF0>,0);
|
|
<a name="l1495"></a> </span><span class=cF5>Sleep</span><span class=cF0>(750);
|
|
<a name="l1496"></a> </span><span class=cF5>PostMsgWait</span><span class=cF0>(task,</span><span class=cF3>MSG_KEY_DOWN_UP</span><span class=cF0>,</span><span class=cF3>CH_SPACE</span><span class=cF0>,0);
|
|
<a name="l1497"></a> </span><span class=cF5>DeathWait</span><span class=cF0>(&task,</span><span class=cF3>TRUE</span><span class=cF0>);
|
|
<a name="l1498"></a>}
|
|
<a name="l1499"></a>
|
|
<a name="l1500"></a></span><span class=cF1>U0</span><span class=cF0> DoDefine()
|
|
<a name="l1501"></a>{
|
|
<a name="l1502"></a> </span><span class=cF9>CTask</span><span class=cF0> *task=</span><span class=cF5>User</span><span class=cF0>;
|
|
<a name="l1503"></a> </span><span class=cF5>XTalkWait</span><span class=cF0>(task,</span><span class=cF6>"#include \"::/Demo/Define\";\n"</span><span class=cF0>);
|
|
<a name="l1504"></a> </span><span class=cF5>XTalkWait</span><span class=cF0>(task,</span><span class=cF6>"YS\n"</span><span class=cF0>);
|
|
<a name="l1505"></a> </span><span class=cF5>Sleep</span><span class=cF0>(750);
|
|
<a name="l1506"></a> </span><span class=cF5>DeathWait</span><span class=cF0>(&task,</span><span class=cF3>TRUE</span><span class=cF0>);
|
|
<a name="l1507"></a>}
|
|
<a name="l1508"></a>
|
|
<a name="l1509"></a></span><span class=cF1>U0</span><span class=cF0> DoAsmAndC1()
|
|
<a name="l1510"></a>{
|
|
<a name="l1511"></a> </span><span class=cF9>CTask</span><span class=cF0> *task=</span><span class=cF5>User</span><span class=cF0>;
|
|
<a name="l1512"></a> </span><span class=cF5>XTalkWait</span><span class=cF0>(task,</span><span class=cF6>"#include \"::/Demo/Asm/AsmAndC1\";\n2\n"</span><span class=cF0>);
|
|
<a name="l1513"></a> </span><span class=cF5>DeathWait</span><span class=cF0>(&task,</span><span class=cF3>TRUE</span><span class=cF0>);
|
|
<a name="l1514"></a>}
|
|
<a name="l1515"></a>
|
|
<a name="l1516"></a></span><span class=cF1>U0</span><span class=cF0> DoAsmAndC2()
|
|
<a name="l1517"></a>{
|
|
<a name="l1518"></a> </span><span class=cF9>CTask</span><span class=cF0> *task=</span><span class=cF5>User</span><span class=cF0>;
|
|
<a name="l1519"></a> </span><span class=cF5>XTalkWait</span><span class=cF0>(task,</span><span class=cF6>"#include \"::/Demo/Asm/AsmAndC2\";\n2\n"</span><span class=cF0>);
|
|
<a name="l1520"></a> </span><span class=cF5>DeathWait</span><span class=cF0>(&task,</span><span class=cF3>TRUE</span><span class=cF0>);
|
|
<a name="l1521"></a>}
|
|
<a name="l1522"></a>
|
|
<a name="l1523"></a></span><span class=cF1>U0</span><span class=cF0> OSTestSuite()
|
|
<a name="l1524"></a>{
|
|
<a name="l1525"></a> </span><span class=cF9>CTask</span><span class=cF0> *task;
|
|
<a name="l1526"></a> ts_t0=</span><span class=cF5>tS</span><span class=cF0>;
|
|
<a name="l1527"></a> ts_i=0;
|
|
<a name="l1528"></a>
|
|
<a name="l1529"></a> TS(</span><span class=cF6>"BlackDiamond"</span><span class=cF0>); DoBlackDiamond;
|
|
<a name="l1530"></a> TS(</span><span class=cF6>"Talons"</span><span class=cF0>); DoTalons;
|
|
<a name="l1531"></a> TS(</span><span class=cF6>"FlatTops"</span><span class=cF0>); DoFlatTops;
|
|
<a name="l1532"></a> TS(</span><span class=cF6>"DunGen"</span><span class=cF0>); DoDunGen;
|
|
<a name="l1533"></a> TS(</span><span class=cF6>"FPS"</span><span class=cF0>); DoFPS;
|
|
<a name="l1534"></a> TS(</span><span class=cF6>"ZoneOut"</span><span class=cF0>); DoZoneOut;
|
|
<a name="l1535"></a> TS(</span><span class=cF6>"Varoom"</span><span class=cF0>); DoVaroom;
|
|
<a name="l1536"></a> TS(</span><span class=cF6>"Rocket"</span><span class=cF0>); DoRocket;
|
|
<a name="l1537"></a> TS(</span><span class=cF6>"RocketScience"</span><span class=cF0>); DoRocketScience;
|
|
<a name="l1538"></a> TS(</span><span class=cF6>"BattleLines"</span><span class=cF0>); DoBattleLines;
|
|
<a name="l1539"></a> TS(</span><span class=cF6>"BigGuns"</span><span class=cF0>); DoBigGuns;
|
|
<a name="l1540"></a> TS(</span><span class=cF6>"FlapBat"</span><span class=cF0>); DoFlapBat;
|
|
<a name="l1541"></a> TS(</span><span class=cF6>"Titanium"</span><span class=cF0>); DoTitanium;
|
|
<a name="l1542"></a> TS(</span><span class=cF6>"ToTheFront"</span><span class=cF0>); DoToTheFront;
|
|
<a name="l1543"></a> TS(</span><span class=cF6>"Psalmody"</span><span class=cF0>); DoPsalmody;
|
|
<a name="l1544"></a> TS(</span><span class=cF6>"JukeBox"</span><span class=cF0>); DoJukeBox;
|
|
<a name="l1545"></a> TS(</span><span class=cF6>"Span"</span><span class=cF0>); </span><span class=cF1>if</span><span class=cF0> (!</span><span class=cFB>sys_heap_init_flag</span><span class=cF0>) DoSpan; </span><span class=cF2>//Has FloodFill</span><span class=cF0>
|
|
<a name="l1546"></a> TS(</span><span class=cF6>"Strut"</span><span class=cF0>); DoStrut;
|
|
<a name="l1547"></a> TS(</span><span class=cF6>"RawHide"</span><span class=cF0>); DoRawHide;
|
|
<a name="l1548"></a> TS(</span><span class=cF6>"KeepAway"</span><span class=cF0>); DoKeepAway;
|
|
<a name="l1549"></a> TS(</span><span class=cF6>"XCaliber"</span><span class=cF0>); DoXCaliber;
|
|
<a name="l1550"></a> TS(</span><span class=cF6>"Wenceslas"</span><span class=cF0>); DoWenceslas;
|
|
<a name="l1551"></a> TS(</span><span class=cF6>"BomberGolf"</span><span class=cF0>); DoBomberGolf;
|
|
<a name="l1552"></a> TS(</span><span class=cF6>"TheDead"</span><span class=cF0>); DoTheDead;
|
|
<a name="l1553"></a> TS(</span><span class=cF6>"TreeCheckers"</span><span class=cF0>); DoTreeCheckers;
|
|
<a name="l1554"></a> TS(</span><span class=cF6>"RadixDort"</span><span class=cF0>); TSFile(</span><span class=cF6>"::/Demo/RadixSort"</span><span class=cF0>);
|
|
<a name="l1555"></a> TS(</span><span class=cF6>"MPAdd"</span><span class=cF0>); DoMPAdd;
|
|
<a name="l1556"></a> TS(</span><span class=cF6>"Primes"</span><span class=cF0>); TSFile(</span><span class=cF6>"::/Demo/MultiCore/Primes"</span><span class=cF0>);
|
|
<a name="l1557"></a> TS(</span><span class=cF6>"Palindrome"</span><span class=cF0>); </span><span class=cF1>if</span><span class=cF0> (</span><span class=cF5>FileFind</span><span class=cF7>(</span><span class=cF3>BIBLE_FILENAME</span><span class=cF7>)</span><span class=cF0>)
|
|
<a name="l1558"></a> TSFile(</span><span class=cF6>"::/Demo/MultiCore/Palindrome"</span><span class=cF0>);
|
|
<a name="l1559"></a> TS(</span><span class=cF6>"MPRadix"</span><span class=cF0>); </span><span class=cF1>if</span><span class=cF0> (</span><span class=cFB>mp_cnt</span><span class=cF0>>1) TSFile(</span><span class=cF6>"::/Demo/MultiCore/MPRadix"</span><span class=cF0>);
|
|
<a name="l1560"></a> TS(</span><span class=cF6>"LoadTest"</span><span class=cF0>); </span><span class=cF1>if</span><span class=cF0> (</span><span class=cFB>mp_cnt</span><span class=cF0>>1 && </span><span class=cF5>DrvIsWritable</span><span class=cF7>(</span><span class=cF6>':'</span><span class=cF7>)</span><span class=cF0>)
|
|
<a name="l1561"></a> TSFileChar(</span><span class=cF6>"::/Demo/MultiCore/LoadTest"</span><span class=cF0>);
|
|
<a name="l1562"></a> TS(</span><span class=cF6>"MPPrint"</span><span class=cF0>); </span><span class=cF1>if</span><span class=cF0> (</span><span class=cFB>mp_cnt</span><span class=cF0>>1) TSFile(</span><span class=cF6>"::/Demo/MultiCore/MPPrint"</span><span class=cF0>);
|
|
<a name="l1563"></a> TS(</span><span class=cF6>"Lock"</span><span class=cF0>); </span><span class=cF1>if</span><span class=cF0> (</span><span class=cFB>mp_cnt</span><span class=cF0>>1) TSFile(</span><span class=cF6>"::/Demo/MultiCore/Lock"</span><span class=cF0>);
|
|
<a name="l1564"></a> TS(</span><span class=cF6>"Interrupts"</span><span class=cF0>); </span><span class=cF1>if</span><span class=cF0> (</span><span class=cFB>mp_cnt</span><span class=cF0>>1) TSFile(</span><span class=cF6>"::/Demo/MultiCore/Interrupts"</span><span class=cF0>);
|
|
<a name="l1565"></a> TS(</span><span class=cF6>"SpritePlot"</span><span class=cF0>); TSFileChar(</span><span class=cF6>"::/Demo/Graphics/SpritePlot"</span><span class=cF0>);
|
|
<a name="l1566"></a> TS(</span><span class=cF6>"Elephants"</span><span class=cF0>); TSFileChar(</span><span class=cF6>"::/Demo/Graphics/Elephant"</span><span class=cF0>,,</span><span class=cF3>CH_SHIFT_ESC</span><span class=cF0>);
|
|
<a name="l1567"></a> TS(</span><span class=cF6>"SpritePlot3D"</span><span class=cF0>); TSFileChar(</span><span class=cF6>"::/Demo/Graphics/SpritePlot3D"</span><span class=cF0>);
|
|
<a name="l1568"></a> TS(</span><span class=cF6>"SpritePut"</span><span class=cF0>); TSFile(</span><span class=cF6>"::/Demo/Graphics/SpritePut"</span><span class=cF0>);
|
|
<a name="l1569"></a> TS(</span><span class=cF6>"SpritePutExt"</span><span class=cF0>); TSFile(</span><span class=cF6>"::/Demo/Graphics/SpritePutExt"</span><span class=cF0>);
|
|
<a name="l1570"></a> TS(</span><span class=cF6>"SpriteText"</span><span class=cF0>); TSFile(</span><span class=cF6>"::/Demo/Graphics/SpriteText"</span><span class=cF0>);
|
|
<a name="l1571"></a> TS(</span><span class=cF6>"SpriteRaw"</span><span class=cF0>); TSFile(</span><span class=cF6>"::/Demo/Graphics/SpriteRaw"</span><span class=cF0>);
|
|
<a name="l1572"></a> TS(</span><span class=cF6>"EdSprite"</span><span class=cF0>); TSFile(</span><span class=cF6>"::/Demo/Graphics/EdSprite"</span><span class=cF0>);
|
|
<a name="l1573"></a> TS(</span><span class=cF6>"Balloon"</span><span class=cF0>); TSFile(</span><span class=cF6>"::/Demo/Graphics/Balloon"</span><span class=cF0>,0);
|
|
<a name="l1574"></a> TS(</span><span class=cF6>"Carry"</span><span class=cF0>); TSFile(</span><span class=cF6>"::/Demo/Carry"</span><span class=cF0>);
|
|
<a name="l1575"></a> TS(</span><span class=cF6>"Directives"</span><span class=cF0>); TSFile(</span><span class=cF6>"::/Demo/Directives"</span><span class=cF0>);
|
|
<a name="l1576"></a> TS(</span><span class=cF6>"RandDemo"</span><span class=cF0>); DoRandDemo;
|
|
<a name="l1577"></a> TS(</span><span class=cF6>"Extents"</span><span class=cF0>); TSFileChar(</span><span class=cF6>"::/Demo/Graphics/Extents"</span><span class=cF0>);
|
|
<a name="l1578"></a> TS(</span><span class=cF6>"NetOfDots"</span><span class=cF0>); TSFileChar(</span><span class=cF6>"::/Demo/Graphics/NetOfDots"</span><span class=cF0>);
|
|
<a name="l1579"></a> TS(</span><span class=cF6>"SunMoon"</span><span class=cF0>); TSFileChar(</span><span class=cF6>"::/Demo/Graphics/SunMoon"</span><span class=cF0>);
|
|
<a name="l1580"></a> TS(</span><span class=cF6>"LowPassFilter"</span><span class=cF0>); DoLowPassFilter;
|
|
<a name="l1581"></a> TS(</span><span class=cF6>"MathAudioDemo"</span><span class=cF0>); DoMathAudioDemo;
|
|
<a name="l1582"></a> TS(</span><span class=cF6>"Lines"</span><span class=cF0>); TSFileChar(</span><span class=cF6>"::/Demo/Graphics/Lines"</span><span class=cF0>);
|
|
<a name="l1583"></a> TS(</span><span class=cF6>"Bounce"</span><span class=cF0>); TSFileChar(</span><span class=cF6>"::/Demo/Graphics/Bounce"</span><span class=cF0>,,</span><span class=cF3>CH_SHIFT_ESC</span><span class=cF0>,</span><span class=cF3>FALSE</span><span class=cF0>);
|
|
<a name="l1584"></a> TS(</span><span class=cF6>"MsgLoop"</span><span class=cF0>); DoMsgLoop;
|
|
<a name="l1585"></a> TS(</span><span class=cF6>"ASCIIOrgan"</span><span class=cF0>); DoASCIIOrgan;
|
|
<a name="l1586"></a> TS(</span><span class=cF6>"MorseCode"</span><span class=cF0>); DoMorseCode;
|
|
<a name="l1587"></a> TS(</span><span class=cF6>"PixCollision"</span><span class=cF0>); DoPixCollision;
|
|
<a name="l1588"></a> TS(</span><span class=cF6>"Doodle"</span><span class=cF0>); DoDoodle;
|
|
<a name="l1589"></a> TS(</span><span class=cF6>"MassSpring"</span><span class=cF0>); DoMassSpring;
|
|
<a name="l1590"></a> TS(</span><span class=cF6>"SpeedLine"</span><span class=cF0>); DoSpeedLine;
|
|
<a name="l1591"></a> TS(</span><span class=cF6>"KeyBitMap"</span><span class=cF0>); DoKeyBitMap;
|
|
<a name="l1592"></a> TS(</span><span class=cF6>"BSpline"</span><span class=cF0>); DoBSpline;
|
|
<a name="l1593"></a> TS(</span><span class=cF6>"GrModels"</span><span class=cF0>); DoGrModels;
|
|
<a name="l1594"></a> TS(</span><span class=cF6>"Blot"</span><span class=cF0>); TSFileChar(</span><span class=cF6>"::/Demo/Graphics/Blot"</span><span class=cF0>,1800);
|
|
<a name="l1595"></a> TS(</span><span class=cF6>"ScrnCapture"</span><span class=cF0>); </span><span class=cF1>if</span><span class=cF0> (</span><span class=cF5>DrvIsWritable</span><span class=cF7>(</span><span class=cF6>'~'</span><span class=cF7>)</span><span class=cF0>) DoScrnCapture;
|
|
<a name="l1596"></a> TS(</span><span class=cF6>"Grid"</span><span class=cF0>); DoGrid;
|
|
<a name="l1597"></a> TS(</span><span class=cF6>"Pick"</span><span class=cF0>); DoPick;
|
|
<a name="l1598"></a> TS(</span><span class=cF6>"Pick3D"</span><span class=cF0>); DoPick3D;
|
|
<a name="l1599"></a> TS(</span><span class=cF6>"Whap"</span><span class=cF0>); DoWhap;
|
|
<a name="l1600"></a> TS(</span><span class=cF6>"Palette"</span><span class=cF0>); DoPalette;
|
|
<a name="l1601"></a> TS(</span><span class=cF6>"Print"</span><span class=cF0>); TSFile(</span><span class=cF6>"::/Demo/Print"</span><span class=cF0>);
|
|
<a name="l1602"></a> TS(</span><span class=cF6>"Shading"</span><span class=cF0>); TSFileChar(</span><span class=cF6>"::/Demo/Graphics/Shading"</span><span class=cF0>,1500);
|
|
<a name="l1603"></a> TS(</span><span class=cF6>"RotateTank"</span><span class=cF0>); TSFileChar(</span><span class=cF6>"::/Demo/Graphics/RotateTank"</span><span class=cF0>,1500);
|
|
<a name="l1604"></a> TS(</span><span class=cF6>"3DPoly"</span><span class=cF0>); TSFileChar(</span><span class=cF6>"::/Demo/Graphics/3DPoly"</span><span class=cF0>,1500);
|
|
<a name="l1605"></a> TS(</span><span class=cF6>"Box"</span><span class=cF0>); TSFileChar(</span><span class=cF6>"::/Demo/Graphics/Box"</span><span class=cF0>,1500);
|
|
<a name="l1606"></a> TS(</span><span class=cF6>"Symmetry"</span><span class=cF0>); DoSymmetry;
|
|
<a name="l1607"></a> TS(</span><span class=cF6>"Shadow"</span><span class=cF0>); TSFileChar(</span><span class=cF6>"::/Demo/Graphics/Shadow"</span><span class=cF0>,1500);
|
|
<a name="l1608"></a> TS(</span><span class=cF6>"Transform"</span><span class=cF0>); TSFileChar(</span><span class=cF6>"::/Demo/Graphics/Transform"</span><span class=cF0>,,</span><span class=cF3>CH_SHIFT_ESC</span><span class=cF0>);
|
|
<a name="l1609"></a> TS(</span><span class=cF6>"LightTable"</span><span class=cF0>); DoLightTable;
|
|
<a name="l1610"></a> TS(</span><span class=cF6>"PredatorPrey"</span><span class=cF0>); DoPredatorPrey;
|
|
<a name="l1611"></a> TS(</span><span class=cF6>"PoleZeros"</span><span class=cF0>); DoPoleZeros;
|
|
<a name="l1612"></a> TS(</span><span class=cF6>"Digits"</span><span class=cF0>); DoDigits;
|
|
<a name="l1613"></a> TS(</span><span class=cF6>"Stadium"</span><span class=cF0>); DoStadium;
|
|
<a name="l1614"></a> TS(</span><span class=cF6>"ElephantWalk"</span><span class=cF0>); DoElephantWalk;
|
|
<a name="l1615"></a> TS(</span><span class=cF6>"Halogen"</span><span class=cF0>); DoHalogen;
|
|
<a name="l1616"></a> TS(</span><span class=cF6>"Maze"</span><span class=cF0>); TSFileChar(</span><span class=cF6>"::/Demo/Games/Maze"</span><span class=cF0>,,</span><span class=cF3>CH_SHIFT_ESC</span><span class=cF0>);
|
|
<a name="l1617"></a> TS(</span><span class=cF6>"FontEd"</span><span class=cF0>); TSFileChar(</span><span class=cF6>"::/Demo/Graphics/FontEd"</span><span class=cF0>,,</span><span class=cF3>CH_SHIFT_ESC</span><span class=cF0>);
|
|
<a name="l1618"></a> TS(</span><span class=cF6>"Lattice"</span><span class=cF0>); DoLattice;
|
|
<a name="l1619"></a> TS(</span><span class=cF6>"CtrlR1"</span><span class=cF0>); DoCtrlR1;
|
|
<a name="l1620"></a> TS(</span><span class=cF6>"F2Macro"</span><span class=cF0>); DoF2Macro;
|
|
<a name="l1621"></a> TS(</span><span class=cF6>"SubIntAccess"</span><span class=cF0>); TSFile(</span><span class=cF6>"::/Demo/SubIntAccess"</span><span class=cF0>);
|
|
<a name="l1622"></a> TS(</span><span class=cF6>"DemoDoc"</span><span class=cF0>); DoDemoDoc;
|
|
<a name="l1623"></a> TS(</span><span class=cF6>"TreeDemo"</span><span class=cF0>); TSFile(</span><span class=cF6>"::/Demo/DolDoc/TreeDemo"</span><span class=cF0>);
|
|
<a name="l1624"></a> TS(</span><span class=cF6>"TextDemo"</span><span class=cF0>); TSFile(</span><span class=cF6>"::/Demo/DolDoc/TextDemo"</span><span class=cF0>);
|
|
<a name="l1625"></a> TS(</span><span class=cF6>"CursorMove"</span><span class=cF0>); TSFile(</span><span class=cF6>"::/Demo/DolDoc/CursorMove"</span><span class=cF0>);
|
|
<a name="l1626"></a> TS(</span><span class=cF6>"MiniCompiler"</span><span class=cF0>); DoMiniCompiler;
|
|
<a name="l1627"></a> TS(</span><span class=cF6>"MiniGrLib"</span><span class=cF0>); TSFile(</span><span class=cF6>"::/Demo/Lectures/MiniGrLib"</span><span class=cF0>,0);
|
|
<a name="l1628"></a> TS(</span><span class=cF6>"TimeIns"</span><span class=cF0>); TSFileChar(</span><span class=cF6>"::/Demo/TimeIns"</span><span class=cF0>);
|
|
<a name="l1629"></a> TS(</span><span class=cF6>"PhoneNumWords"</span><span class=cF0>); DoPhoneNumWords;
|
|
<a name="l1630"></a> TS(</span><span class=cF6>"UnusedSpaceRep"</span><span class=cF0>); TSFile(</span><span class=cF6>"::/Demo/Dsk/UnusedSpaceRep"</span><span class=cF0>);
|
|
<a name="l1631"></a> TS(</span><span class=cF6>"BlkDevRep"</span><span class=cF0>); TSFile(</span><span class=cF6>"::/Demo/Dsk/BlkDevRep"</span><span class=cF0>);
|
|
<a name="l1632"></a> TS(</span><span class=cF6>"LastClass"</span><span class=cF0>); DoLastClass;
|
|
<a name="l1633"></a> TS(</span><span class=cF6>"FPrintF"</span><span class=cF0>); </span><span class=cF1>if</span><span class=cF0> (</span><span class=cF5>DrvIsWritable</span><span class=cF7>(</span><span class=cF6>'~'</span><span class=cF7>)</span><span class=cF0>) DoFPrintF;
|
|
<a name="l1634"></a> TS(</span><span class=cF6>"SerializeTree"</span><span class=cF0>); TSFile(</span><span class=cF6>"::/Demo/Dsk/SerializeTree"</span><span class=cF0>);
|
|
<a name="l1635"></a> TS(</span><span class=cF6>"Exceptions"</span><span class=cF0>); DoExceptions;
|
|
<a name="l1636"></a> TS(</span><span class=cF6>"ScrnDCodes"</span><span class=cF0>); TSFileChar(</span><span class=cF6>"::/Demo/ScrnCodes"</span><span class=cF0>);
|
|
<a name="l1637"></a> TS(</span><span class=cF6>"ExtChars"</span><span class=cF0>); TSFile(</span><span class=cF6>"::/Demo/ExtChars"</span><span class=cF0>);
|
|
<a name="l1638"></a> TS(</span><span class=cF6>"PanText"</span><span class=cF0>); TSFile(</span><span class=cF6>"::/Demo/Graphics/PanText"</span><span class=cF0>,0);
|
|
<a name="l1639"></a> TS(</span><span class=cF6>"CharAnimation"</span><span class=cF0>); TSFile(</span><span class=cF6>"::/Demo/Graphics/CharAnimation"</span><span class=cF0>);
|
|
<a name="l1640"></a> TS(</span><span class=cF6>"CharDemo"</span><span class=cF0>); DoCharDemo;
|
|
<a name="l1641"></a> TS(</span><span class=cF6>"DateTime"</span><span class=cF0>); TSFile(</span><span class=cF6>"::/Demo/DateTime"</span><span class=cF0>);
|
|
<a name="l1642"></a> TS(</span><span class=cF6>"SubSwitch"</span><span class=cF0>); TSFile(</span><span class=cF6>"::/Demo/SubSwitch"</span><span class=cF0>);
|
|
<a name="l1643"></a> TS(</span><span class=cF6>"NullCase"</span><span class=cF0>); TSFile(</span><span class=cF6>"::/Demo/NullCase"</span><span class=cF0>);
|
|
<a name="l1644"></a> TS(</span><span class=cF6>"Magicpairs"</span><span class=cF0>); TSFile(</span><span class=cF6>"::/Demo/MagicPairs"</span><span class=cF0>);
|
|
<a name="l1645"></a> TS(</span><span class=cF6>"Hanoi"</span><span class=cF0>); TSFileChar(</span><span class=cF6>"::/Demo/Graphics/Hanoi"</span><span class=cF0>,3000);
|
|
<a name="l1646"></a> TS(</span><span class=cF6>"Squirt"</span><span class=cF0>); DoSquirt;
|
|
<a name="l1647"></a> TS(</span><span class=cF6>"CommonAncestor"</span><span class=cF0>);
|
|
<a name="l1648"></a> TSFileChar(</span><span class=cF6>"::/Demo/Graphics/CommonAncestor"</span><span class=cF0>,1500,</span><span class=cF3>CH_SHIFT_ESC</span><span class=cF0>);
|
|
<a name="l1649"></a> TS(</span><span class=cF6>"Cartesian"</span><span class=cF0>); DoCartesian;
|
|
<a name="l1650"></a> TS(</span><span class=cF6>"RainDrops"</span><span class=cF0>); TSFileChar(</span><span class=cF6>"::/Demo/Games/RainDrops"</span><span class=cF0>,,</span><span class=cF3>CH_SHIFT_ESC</span><span class=cF0>);
|
|
<a name="l1651"></a> TS(</span><span class=cF6>"Collision"</span><span class=cF0>); TSFileChar(</span><span class=cF6>"::/Demo/Games/Collision"</span><span class=cF0>,1500);
|
|
<a name="l1652"></a> TS(</span><span class=cF6>"Logic"</span><span class=cF0>); DoLogic;
|
|
<a name="l1653"></a> TS(</span><span class=cF6>"CompileDemo"</span><span class=cF0>); TSFile(</span><span class=cF6>"::/Demo/CompileDemo"</span><span class=cF0>);
|
|
<a name="l1654"></a> TS(</span><span class=cF6>"Prompt"</span><span class=cF0>); DoPrompt;
|
|
<a name="l1655"></a> TS(</span><span class=cF6>"WebLog"</span><span class=cF0>); </span><span class=cF1>if</span><span class=cF0> (</span><span class=cF5>DrvIsWritable</span><span class=cF7>(</span><span class=cF6>'~'</span><span class=cF7>)</span><span class=cF0>) DoWebLog;
|
|
<a name="l1656"></a> TS(</span><span class=cF6>"RevFile"</span><span class=cF0>); </span><span class=cF1>if</span><span class=cF0> (</span><span class=cF5>DrvIsWritable</span><span class=cF7>(</span><span class=cF6>'~'</span><span class=cF7>)</span><span class=cF0>) DoRevFile;
|
|
<a name="l1657"></a> TS(</span><span class=cF6>"SortFile"</span><span class=cF0>); </span><span class=cF1>if</span><span class=cF0> (</span><span class=cF5>DrvIsWritable</span><span class=cF7>(</span><span class=cF6>'~'</span><span class=cF7>)</span><span class=cF0>) DoSortFile;
|
|
<a name="l1658"></a> TS(</span><span class=cF6>"ToHtmlToTXT"</span><span class=cF0>); </span><span class=cF1>if</span><span class=cF0> (</span><span class=cF5>DrvIsWritable</span><span class=cF7>(</span><span class=cF6>'~'</span><span class=cF7>)</span><span class=cF0>) DoToHtmlToTXT;
|
|
<a name="l1659"></a> TS(</span><span class=cF6>"RegistryDemo"</span><span class=cF0>); </span><span class=cF1>if</span><span class=cF0> (</span><span class=cF5>DrvIsWritable</span><span class=cF7>(</span><span class=cF6>'~'</span><span class=cF7>)</span><span class=cF0>)
|
|
<a name="l1660"></a> TSFile(</span><span class=cF6>"::/Demo/RegistryDemo"</span><span class=cF0>);
|
|
<a name="l1661"></a> TS(</span><span class=cF6>"Define"</span><span class=cF0>); DoDefine;
|
|
<a name="l1662"></a> TS(</span><span class=cF6>"GlblVars"</span><span class=cF0>); TSFile(</span><span class=cF6>"::/Demo/GlblVars"</span><span class=cF0>);
|
|
<a name="l1663"></a> TS(</span><span class=cF6>"FileRead"</span><span class=cF0>); DoFileRead;
|
|
<a name="l1664"></a> TS(</span><span class=cF6>"ParenWarn"</span><span class=cF0>); TSFile(</span><span class=cF6>"::/Demo/ParenWarn"</span><span class=cF0>);
|
|
<a name="l1665"></a> TS(</span><span class=cF6>"DefineStr"</span><span class=cF0>); TSFile(</span><span class=cF6>"::/Demo/DolDoc/DefineStr"</span><span class=cF0>);
|
|
<a name="l1666"></a> TS(</span><span class=cF6>"Data"</span><span class=cF0>); TSFile(</span><span class=cF6>"::/Demo/DolDoc/Data"</span><span class=cF0>);
|
|
<a name="l1667"></a> TS(</span><span class=cF6>"CallBack"</span><span class=cF0>); TSFile(</span><span class=cF6>"::/Demo/DolDoc/CallBack"</span><span class=cF0>);
|
|
<a name="l1668"></a> TS(</span><span class=cF6>"ClassMeta"</span><span class=cF0>); TSFile(</span><span class=cF6>"::/Demo/ClassMeta"</span><span class=cF0>);
|
|
<a name="l1669"></a> TS(</span><span class=cF6>"NumBible"</span><span class=cF0>); </span><span class=cF1>if</span><span class=cF0> (</span><span class=cF5>DrvIsWritable</span><span class=cF7>(</span><span class=cF6>'~'</span><span class=cF7>)</span><span class=cF0>) DoNumBible;
|
|
<a name="l1670"></a> TS(</span><span class=cF6>"Form"</span><span class=cF0>); DoForm;
|
|
<a name="l1671"></a> TS(</span><span class=cF6>"ClickCallBack"</span><span class=cF0>); DoClickCallBack;
|
|
<a name="l1672"></a> TS(</span><span class=cF6>"MenuBttn"</span><span class=cF0>); DoMenuBttn;
|
|
<a name="l1673"></a> TS(</span><span class=cF6>"MenuSprite"</span><span class=cF0>);DoMenuSprite;
|
|
<a name="l1674"></a> TS(</span><span class=cF6>"SuggestedSpelling"</span><span class=cF0>); DoSuggestedSpelling;
|
|
<a name="l1675"></a> TS(</span><span class=cF6>"WordSearch"</span><span class=cF0>); TSFileChar(</span><span class=cF6>"::/Demo/WordSearch"</span><span class=cF0>);
|
|
<a name="l1676"></a> TS(</span><span class=cF6>"StkGrow"</span><span class=cF0>); TSFile(</span><span class=cF6>"::/Demo/StkGrow"</span><span class=cF0>);
|
|
<a name="l1677"></a> TS(</span><span class=cF6>"MemDemo"</span><span class=cF0>); TSFile(</span><span class=cF6>"::/Demo/MemDemo"</span><span class=cF0>);
|
|
<a name="l1678"></a> TS(</span><span class=cF6>"WaterFowl"</span><span class=cF0>); TSFileChar(</span><span class=cF6>"::/Demo/Snd/WaterFowl"</span><span class=cF0>);
|
|
<a name="l1679"></a> TS(</span><span class=cF6>"AsmHelloWorld"</span><span class=cF0>); TSFile(</span><span class=cF6>"::/Demo/Asm/AsmHelloWorld"</span><span class=cF0>);
|
|
<a name="l1680"></a> TS(</span><span class=cF6>"AsmAndC1"</span><span class=cF0>); DoAsmAndC1;
|
|
<a name="l1681"></a> TS(</span><span class=cF6>"AsmAndC2"</span><span class=cF0>); DoAsmAndC2;
|
|
<a name="l1682"></a> TS(</span><span class=cF6>"AsmAndC3"</span><span class=cF0>); TSFile(</span><span class=cF6>"::/Demo/Asm/AsmAndC3"</span><span class=cF0>);
|
|
<a name="l1683"></a> TS(</span><span class=cF6>"MulByHand"</span><span class=cF0>); TSFile(</span><span class=cF6>"::/Demo/Asm/MulByHand"</span><span class=cF0>);
|
|
<a name="l1684"></a> TS(</span><span class=cF6>"DivByHand"</span><span class=cF0>); TSFile(</span><span class=cF6>"::/Demo/Asm/DivByHand"</span><span class=cF0>);
|
|
<a name="l1685"></a> TS(</span><span class=cF6>"BuzzFizz"</span><span class=cF0>); TSFile(</span><span class=cF6>"::/Demo/Asm/BuzzFizz"</span><span class=cF0>);
|
|
<a name="l1686"></a> TS(</span><span class=cF6>"PutDec"</span><span class=cF0>); TSFile(</span><span class=cF6>"::/Demo/Asm/PutDec"</span><span class=cF0>);
|
|
<a name="l1687"></a>
|
|
<a name="l1688"></a> task=</span><span class=cF5>User</span><span class=cF0>;
|
|
<a name="l1689"></a> TS(</span><span class=cF6>"Prof"</span><span class=cF0>); </span><span class=cF5>XTalkWait</span><span class=cF0>(task,</span><span class=cF6>"DocMax;Prof;HeapLog(ON);\n"</span><span class=cF0>);
|
|
<a name="l1690"></a> TS(</span><span class=cF6>"PCIRep"</span><span class=cF0>); </span><span class=cF5>XTalkWait</span><span class=cF0>(task,</span><span class=cF6>"PCIRep;Sleep(750);\n"</span><span class=cF0>);
|
|
<a name="l1691"></a> TS(</span><span class=cF6>"MemBIOSRep"</span><span class=cF0>); </span><span class=cF5>XTalkWait</span><span class=cF0>(task,</span><span class=cF6>"MemBIOSRep;Sleep(750);\n"</span><span class=cF0>);
|
|
<a name="l1692"></a> TS(</span><span class=cF6>"MemPageRep"</span><span class=cF0>); </span><span class=cF5>XTalkWait</span><span class=cF0>(task,</span><span class=cF6>"MemPageRep;Sleep(750);\n"</span><span class=cF0>);
|
|
<a name="l1693"></a> TS(</span><span class=cF6>"MemRep"</span><span class=cF0>); </span><span class=cF5>XTalkWait</span><span class=cF0>(task,</span><span class=cF6>"MemRep;Sleep(750);\n"</span><span class=cF0>);
|
|
<a name="l1694"></a> TS(</span><span class=cF6>"ZipRep"</span><span class=cF0>); </span><span class=cF5>XTalkWait</span><span class=cF0>(task,</span><span class=cF6>"ZipRep;Sleep(750);\n"</span><span class=cF0>);
|
|
<a name="l1695"></a> TS(</span><span class=cF6>"ProfRep"</span><span class=cF0>); </span><span class=cF5>XTalkWait</span><span class=cF0>(task,</span><span class=cF6>"ProfRep;Sleep(750);\n"</span><span class=cF0>);
|
|
<a name="l1696"></a> TS(</span><span class=cF6>"HeapLogSizeRep"</span><span class=cF0>); </span><span class=cF5>XTalkWait</span><span class=cF0>(task,</span><span class=cF6>"HeapLogSizeRep;Sleep(750);\n"</span><span class=cF0>);
|
|
<a name="l1697"></a> TS(</span><span class=cF6>"CPURep"</span><span class=cF0>); </span><span class=cF1>if</span><span class=cF0> (</span><span class=cFB>mp_cnt</span><span class=cF0>>1)
|
|
<a name="l1698"></a> </span><span class=cF5>XTalkWait</span><span class=cF0>(task,</span><span class=cF6>"CPURep(TRUE);Sleep(750);\n"</span><span class=cF0>);
|
|
<a name="l1699"></a> TS(</span><span class=cF6>"DskChk"</span><span class=cF0>); </span><span class=cF1>if</span><span class=cF0> (</span><span class=cF5>DrvIsWritable</span><span class=cF7>(</span><span class=cF6>':'</span><span class=cF7>)</span><span class=cF0>)
|
|
<a name="l1700"></a> </span><span class=cF5>XTalkWait</span><span class=cF0>(task,</span><span class=cF6>"DskChk;Sleep(750);\n"</span><span class=cF0>);
|
|
<a name="l1701"></a> TS(</span><span class=cF6>"DrvView"</span><span class=cF0>); </span><span class=cF1>if</span><span class=cF0> (</span><span class=cF5>DrvIsWritable</span><span class=cF7>(</span><span class=cF6>':'</span><span class=cF7>)</span><span class=cF0>) </span><span class=cF7>{</span><span class=cF0>
|
|
<a name="l1702"></a> </span><span class=cF5>XTalkWait</span><span class=cF0>(task,</span><span class=cF6>"DrvView;\n"</span><span class=cF0>);
|
|
<a name="l1703"></a> </span><span class=cF5>Sleep</span><span class=cF0>(750);
|
|
<a name="l1704"></a> </span><span class=cF5>PostMsgWait</span><span class=cF0>(task,</span><span class=cF3>MSG_KEY_DOWN_UP</span><span class=cF0>,</span><span class=cF3>CH_SPACE</span><span class=cF0>,0);
|
|
<a name="l1705"></a> </span><span class=cF7>}</span><span class=cF0>
|
|
<a name="l1706"></a> TS(</span><span class=cF6>"DskView"</span><span class=cF0>); </span><span class=cF1>if</span><span class=cF0> (</span><span class=cF5>DrvIsWritable</span><span class=cF7>(</span><span class=cF6>':'</span><span class=cF7>)</span><span class=cF0>) </span><span class=cF7>{</span><span class=cF0>
|
|
<a name="l1707"></a> </span><span class=cF5>XTalkWait</span><span class=cF0>(task,</span><span class=cF6>"DskView;\n"</span><span class=cF0>);
|
|
<a name="l1708"></a> </span><span class=cF5>Sleep</span><span class=cF0>(250); </span><span class=cF2>//Short because ATARep takes time.</span><span class=cF0>
|
|
<a name="l1709"></a> </span><span class=cF5>PostMsgWait</span><span class=cF0>(task,</span><span class=cF3>MSG_KEY_DOWN_UP</span><span class=cF0>,</span><span class=cF3>CH_SPACE</span><span class=cF0>,0);
|
|
<a name="l1710"></a> </span><span class=cF7>}</span><span class=cF0>
|
|
<a name="l1711"></a> TS(</span><span class=cF6>"ATARep"</span><span class=cF0>); </span><span class=cF5>XTalkWait</span><span class=cF0>(task,</span><span class=cF6>"ATARep;\npSleep(750);\n"</span><span class=cF0>);
|
|
<a name="l1712"></a> TS(</span><span class=cF6>"HashDepthRep"</span><span class=cF0>); </span><span class=cF5>XTalkWait</span><span class=cF0>(task,
|
|
<a name="l1713"></a> </span><span class=cF6>"HashDepthRep(adam_task->hash_table);Sleep(750);\n"</span><span class=cF0>);
|
|
<a name="l1714"></a> TS(</span><span class=cF6>"Who"</span><span class=cF0>); </span><span class=cF5>XTalkWait</span><span class=cF0>(task,</span><span class=cF6>"Who;Sleep(750);\n"</span><span class=cF0>);
|
|
<a name="l1715"></a> TS(</span><span class=cF6>"DrvRep"</span><span class=cF0>); </span><span class=cF5>XTalkWait</span><span class=cF0>(task,</span><span class=cF6>"DrvRep;Sleep(750);\n"</span><span class=cF0>);
|
|
<a name="l1716"></a> TS(</span><span class=cF6>"TaskRep"</span><span class=cF0>); </span><span class=cF5>XTalkWait</span><span class=cF0>(task,</span><span class=cF6>"TaskRep;Sleep(750);\n"</span><span class=cF0>);
|
|
<a name="l1717"></a> </span><span class=cF5>DeathWait</span><span class=cF0>(&task,</span><span class=cF3>TRUE</span><span class=cF0>);
|
|
<a name="l1718"></a>
|
|
<a name="l1719"></a> </span><span class=cF5>ProgressBarsRst</span><span class=cF0>(</span><span class=cF6>"TempleOS/OSTestSuite"</span><span class=cF0>);
|
|
<a name="l1720"></a> </span><span class=cF6>"Elapsed Time:%5.3f\n"</span><span class=cF0>,</span><span class=cF5>tS</span><span class=cF0>-ts_t0;
|
|
<a name="l1721"></a>}
|
|
<a name="l1722"></a>
|
|
<a name="l1723"></a>OSTestSuite;
|
|
</span></pre></body>
|
|
</html>
|