ZealOS/src/Misc/OSTestSuite.CC

1724 lines
50 KiB
Text
Raw Normal View History

2020-02-15 20:01:48 +00:00
I64 ts_i;
F64 ts_t0;
U0 TS(U8 *desc)
2020-02-16 00:54:39 +00:00
{//We must set these because an app can call $LK,"ProgressBarsReset",A="MN:ProgressBarsReset"$.
2020-02-15 20:01:48 +00:00
U8 *st=MStrPrint("%d. %s",ts_i,desc);
if (*desc)
progress3_max=1;
else
progress3_max=0;
StrPrint(progress3_desc,"%*hc%s",
(PROGRESS_DESC_LEN-StrLen(st))>>1,CH_SPACE,st);
Free(st);
progress4=ts_i++;
progress4_max=171;
progress4_t0=ts_t0;
*progress4_desc=0;
2020-02-15 21:11:16 +00:00
RegExe("ZenithOS/OSTestSuite");
2020-02-15 20:01:48 +00:00
}
U0 TSFile(U8 *name,I64 mS=750)
{
CTask *task=User("#include \"%s\";Sleep(%d);\n",name,mS);
DeathWait(&task,TRUE);
}
U0 TSFileChar(U8 *name,I64 mS=750,I64 ch=CH_SPACE,Bool wait=TRUE)
{
CTask *task=User;
if (wait)
XTalkWait(task,"#include \"%s\";\n",name);
else
XTalk(task,"#include \"%s\";\n",name);
Sleep(mS);
if (ch)
2020-02-15 23:56:05 +00:00
PostMessageWait(task,MESSAGE_KEY_DOWN_UP,ch,0);
2020-02-15 20:01:48 +00:00
DeathWait(&task,TRUE);
}
/*
U0 DoMouseDemo()
{
XTalkWait(task,"#include \"::/Demo/Graphics/MouseDemo\";\n");
}
U0 DoPullDownMenu()
{
XTalkWait(task,"#include \"::/Demo/PullDownMenu\";\n");
}
U0 DoTicTacToe()
{
XTalkWait(task,"#include \"::/Demo/Games/TicTacToe\";\n");
}
U0 DoLife()
{
XTalkWait(task,"#include \"::/Demo/Graphics/Life\";\n");
}
U0 DoZing()
{
XTalkWait(task,"#include \"::/Demo/Games/Zing\";\n");
}
U0 DoSlider()
{
XTalkWait(task,"#include \"::/Demo/Graphics/Slider\";\n");
}
U0 DoScrollBars()
{
XTalkWait(task,"#include \"::/Demo/Graphics/ScrollBars\";\n");
}
U0 DoWhap()
{
XTalkWait(task,"#include \"::/Demo/Games/Whap\";\n");
}
U0 DoDataBase()
{
2020-02-15 22:25:33 +00:00
XTalkWait(task,"#include \"::/Demo/Disk/DataBase\";\n");
2020-02-15 20:01:48 +00:00
}
U0 DoDiskRaw()
2020-02-15 20:01:48 +00:00
{
2020-02-15 22:25:33 +00:00
XTalkWait(task,"#include \"::/Demo/Disk/DiskRaw\";\n");
2020-02-15 20:01:48 +00:00
}
U0 DoTimeClock()
{
XTalkWait(task,"#include \"::/Apps/TimeClock\";\n");
}
U0 DoLectures()
{
XTalkWait(task,"#include \"::/Demo/Lectures\";\n");
}
U0 DoInFile()
{
XTalkWait(task,"#include \"::/Demo/InFile\";\n");
}
U0 DoSpy()
{
XTalkWait(task,"#include \"::/Demo/Spy\";\n");
}
U0 DoUnusedDefine()
{
XTalkWait(task,"#include \"::/Demo/DolDoc/UnusedDefine\";\n");
}
U0 DoOnceDemo()
{
XTalkWait(task,"#include \"::/Demo/OnceDemo\";\n");
}
*/
$PL,1000$
U0 DoRandDemo()
{
CTask *task=User;
XTalkWait(task,"#include \"::/Demo/RandDemo\";\n");
XTalkWait(task,"");
XTalkWait(task,"");
Sleep(750);
DeathWait(&task,TRUE);
}
U0 DoLowPassFilter()
{
CTask *task=User;
XTalkWait(task,"#include \"::/Demo/Graphics/LowPassFilter\";\n");
Sleep(300);
2020-02-15 23:56:05 +00:00
PostMessageWait(task,MESSAGE_KEY_DOWN_UP,CH_SPACE,0);
2020-02-15 20:01:48 +00:00
Sleep(300);
2020-02-15 23:56:05 +00:00
PostMessageWait(task,MESSAGE_KEY_DOWN_UP,CH_SPACE,0);
2020-02-15 20:01:48 +00:00
Sleep(300);
2020-02-15 23:56:05 +00:00
PostMessageWait(task,MESSAGE_KEY_DOWN_UP,CH_SPACE,0);
2020-02-15 20:01:48 +00:00
Sleep(300);
2020-02-15 23:56:05 +00:00
PostMessageWait(task,MESSAGE_KEY_DOWN_UP,CH_SPACE,0);
2020-02-15 20:01:48 +00:00
Sleep(300);
2020-02-15 23:56:05 +00:00
PostMessageWait(task,MESSAGE_KEY_DOWN_UP,CH_SPACE,0);
2020-02-15 20:01:48 +00:00
DeathWait(&task,TRUE);
}
U0 DoMathAudioDemo()
{
CTask *task=User;
XTalkWait(task,"#include \"::/Demo/Graphics/MathAudioDemo\";\n");
2020-02-15 23:56:05 +00:00
PostMessageWait(task,MESSAGE_KEY_DOWN_UP,CH_SPACE,0);
PostMessageWait(task,MESSAGE_KEY_DOWN_UP,CH_SPACE,0);
2020-02-15 20:01:48 +00:00
Sleep(500);
2020-02-15 23:56:05 +00:00
PostMessageWait(task,MESSAGE_KEY_DOWN_UP,CH_SPACE,0);
2020-02-15 20:01:48 +00:00
2020-02-15 23:56:05 +00:00
PostMessageWait(task,MESSAGE_KEY_DOWN_UP,CH_SPACE,0);
PostMessageWait(task,MESSAGE_KEY_DOWN_UP,CH_SPACE,0);
2020-02-15 20:01:48 +00:00
Sleep(500);
2020-02-15 23:56:05 +00:00
PostMessageWait(task,MESSAGE_KEY_DOWN_UP,CH_SPACE,0);
2020-02-15 20:01:48 +00:00
2020-02-15 23:56:05 +00:00
PostMessageWait(task,MESSAGE_KEY_DOWN_UP,CH_SPACE,0);
PostMessageWait(task,MESSAGE_KEY_DOWN_UP,CH_SPACE,0);
2020-02-15 20:01:48 +00:00
Sleep(500);
2020-02-15 23:56:05 +00:00
PostMessageWait(task,MESSAGE_KEY_DOWN_UP,CH_SPACE,0);
2020-02-15 20:01:48 +00:00
DeathWait(&task,TRUE);
}
2020-02-15 23:56:05 +00:00
U0 DoMessageLoop()
2020-02-15 20:01:48 +00:00
{
CTask *task=User;
2020-02-15 23:56:05 +00:00
XTalkWait(task,"#include \"::/Demo/MessageLoop\";\n");
2020-02-15 20:01:48 +00:00
Sleep(300);
2020-02-15 23:56:05 +00:00
PostMessageWait(task,MESSAGE_KEY_DOWN_UP,CH_SPACE,0);
2020-02-15 20:01:48 +00:00
Sleep(300);
2020-02-15 23:56:05 +00:00
PostMessageWait(task,MESSAGE_KEY_DOWN_UP,CH_SHIFT_ESC,0);
2020-02-15 20:01:48 +00:00
DeathWait(&task,TRUE);
}
U0 DoASCIIOrgan()
{
CTask *task=User;
2020-02-16 00:49:37 +00:00
XTalkWait(task,"#include \"::/Demo/Sound/ASCIIOrgan\";\n");
2020-02-15 20:01:48 +00:00
Sleep(100);
2020-02-15 23:56:05 +00:00
PostMessageWait(task,MESSAGE_KEY_DOWN_UP,'A',0);
2020-02-15 20:01:48 +00:00
Sleep(200);
2020-02-15 23:56:05 +00:00
PostMessageWait(task,MESSAGE_KEY_DOWN_UP,'B',0);
2020-02-15 20:01:48 +00:00
Sleep(200);
2020-02-15 23:56:05 +00:00
PostMessageWait(task,MESSAGE_KEY_DOWN_UP,'C',0);
2020-02-15 20:01:48 +00:00
Sleep(200);
2020-02-15 23:56:05 +00:00
PostMessageWait(task,MESSAGE_KEY_DOWN_UP,CH_SHIFT_ESC,0);
2020-02-15 20:01:48 +00:00
DeathWait(&task,TRUE);
}
U0 DoDoodle()
{
CTask *task=User;
XTalkWait(task,"#include \"::/Demo/Graphics/Doodle\";\n");
2020-02-15 23:56:05 +00:00
PostMessageWait(task,MESSAGE_MS_L_DOWN,10,10);
PostMessageWait(task,MESSAGE_MS_L_UP,100,200);
2020-02-15 20:01:48 +00:00
Sleep(500);
2020-02-15 23:56:05 +00:00
PostMessageWait(task,MESSAGE_KEY_DOWN_UP,CH_SHIFT_ESC,0);
2020-02-15 20:01:48 +00:00
DeathWait(&task,TRUE);
}
U0 DoSpeedLine()
{
I64 i=PURPLE+1; //+1 because TRANSPARENT
CTask *task=User;
XTalkWait(task,"#include \"::/Demo/Graphics/Speedline\";\n");
2020-02-15 23:56:05 +00:00
PostMessageWait(task,MESSAGE_MS_L_DOWN,10,10);
PostMessageWait(task,MESSAGE_MS_L_UP,100,200);
PostMessage(task,MESSAGE_MS_R_DOWN_UP,0,0);
2020-02-15 20:01:48 +00:00
BirthWait(&task->popup_task);
while (i--)
2020-02-15 23:56:05 +00:00
PostMessageWait(task->popup_task,MESSAGE_KEY_DOWN_UP,0,SC_CURSOR_DOWN);
PostMessageWait(task->popup_task,MESSAGE_KEY_DOWN_UP,CH_ESC,0);
2020-02-15 20:01:48 +00:00
TaskWait(task);
2020-02-15 23:56:05 +00:00
PostMessageWait(task,MESSAGE_MS_L_DOWN,50,10);
PostMessageWait(task,MESSAGE_MS_L_UP,150,200);
2020-02-15 20:01:48 +00:00
Sleep(1000);
2020-02-15 23:56:05 +00:00
PostMessageWait(task,MESSAGE_KEY_DOWN_UP,CH_SHIFT_ESC,0);
2020-02-15 20:01:48 +00:00
DeathWait(&task,TRUE);
}
U0 DoKeyBitMap()
{
I64 i_sc=Char2ScanCode('i');
CTask *task=User("#include \"::/Demo/KeyBitMap\";\n");
Sleep(50);
LBts(kbd.down_bitmap,i_sc);
Sleep(500);
LBtr(kbd.down_bitmap,i_sc);
Sleep(50);
DeathWait(&task,TRUE);
}
U0 DoDigits()
{
CTask *task=User;
XTalkWait(task,"#include \"::/Demo/Games/Digits\";\n");
Sleep(100);
2020-02-15 23:56:05 +00:00
PostMessageWait(task,MESSAGE_KEY_DOWN_UP,CH_SPACE,0);
2020-02-15 20:01:48 +00:00
Sleep(100);
2020-02-15 23:56:05 +00:00
PostMessageWait(task,MESSAGE_KEY_DOWN_UP,CH_SPACE,0);
2020-02-15 20:01:48 +00:00
Sleep(250);
2020-02-15 23:56:05 +00:00
PostMessageWait(task,MESSAGE_KEY_DOWN_UP,'1',0);
2020-02-15 20:01:48 +00:00
Sleep(250);
2020-02-15 23:56:05 +00:00
PostMessageWait(task,MESSAGE_KEY_DOWN_UP,CH_SHIFT_ESC,0);
2020-02-15 20:01:48 +00:00
DeathWait(&task,TRUE);
}
U0 DoSymmetry()
{
CTask *task=User;
XTalkWait(task,"#include \"::/Demo/Graphics/Symmetry\";\n");
2020-02-15 23:56:05 +00:00
PostMessageWait(task,MESSAGE_MS_R_DOWN,100,100);
PostMessageWait(task,MESSAGE_MS_R_UP,200,200);
2020-02-15 20:01:48 +00:00
Sleep(100);
2020-02-15 23:56:05 +00:00
PostMessageWait(task,MESSAGE_MS_L_DOWN,10,10);
PostMessageWait(task,MESSAGE_MS_L_UP,100,200);
2020-02-15 20:01:48 +00:00
Sleep(250);
2020-02-15 23:56:05 +00:00
PostMessageWait(task,MESSAGE_MS_L_DOWN,100,200);
PostMessageWait(task,MESSAGE_MS_L_UP,400,400);
2020-02-15 20:01:48 +00:00
Sleep(250);
2020-02-15 23:56:05 +00:00
PostMessageWait(task,MESSAGE_KEY_DOWN_UP,CH_SHIFT_ESC,0);
2020-02-15 20:01:48 +00:00
DeathWait(&task,TRUE);
}
U0 DoBSpline()
{
CTask *task=User;
XTalkWait(task,"#include \"::/Demo/Graphics/BSpline\";\n");
2020-02-15 23:56:05 +00:00
PostMessageWait(task,MESSAGE_MS_L_DOWN_UP,50,50);
PostMessageWait(task,MESSAGE_MS_L_DOWN_UP,300,100);
PostMessageWait(task,MESSAGE_MS_L_DOWN_UP,150,300);
PostMessageWait(task,MESSAGE_MS_R_DOWN_UP,0,0);
2020-02-15 20:01:48 +00:00
Sleep(1500);
2020-02-15 23:56:05 +00:00
PostMessageWait(task,MESSAGE_KEY_DOWN_UP,CH_SPACE,0);
2020-02-15 20:01:48 +00:00
DeathWait(&task,TRUE);
}
2020-02-15 23:19:08 +00:00
U0 DoScreenCapture()
2020-02-15 20:01:48 +00:00
{
CTask *task=User;
2020-02-15 23:19:08 +00:00
XTalkWait(task,"#include \"::/Demo/Graphics/ScreenCapture\";\n");
2020-02-15 20:01:48 +00:00
Sleep(500);
2020-02-15 23:56:05 +00:00
PostMessageWait(task,MESSAGE_KEY_DOWN_UP,CH_SPACE,0);
2020-02-15 20:01:48 +00:00
Sleep(500);
2020-02-15 23:56:05 +00:00
PostMessageWait(task,MESSAGE_KEY_DOWN_UP,CH_SPACE,0);
2020-02-15 20:01:48 +00:00
Sleep(750);
2020-02-15 23:56:05 +00:00
PostMessageWait(task,MESSAGE_KEY_DOWN_UP,CH_SPACE,0);
2020-02-15 20:01:48 +00:00
DeathWait(&task,TRUE);
2020-02-15 23:19:08 +00:00
Del("~/DemoScreenShot.GR*");
2020-02-15 20:01:48 +00:00
}
U0 DoStadium()
{
CTask *task=User;
XTalkWait(task,"#include \"::/Demo/Games/Stadium/Stadium\";\n");
Sleep(50);
2020-02-15 23:56:05 +00:00
PostMessageWait(task,MESSAGE_MS_L_DOWN_UP,100,10);
2020-02-15 20:01:48 +00:00
Sleep(300);
2020-02-15 23:56:05 +00:00
PostMessageWait(task,MESSAGE_MS_L_DOWN_UP,320,20);
2020-02-15 20:01:48 +00:00
Sleep(300);
2020-02-15 23:56:05 +00:00
PostMessageWait(task,MESSAGE_MS_L_DOWN_UP,520,10);
2020-02-15 20:01:48 +00:00
Sleep(300);
2020-02-15 23:56:05 +00:00
PostMessageWait(task,MESSAGE_KEY_DOWN_UP,CH_SHIFT_ESC,0);
2020-02-15 20:01:48 +00:00
DeathWait(&task,TRUE);
}
U0 DoPalette()
{
CTask *task=User;
XTalkWait(task,"#include \"::/Demo/Graphics/Palette\";\n");
Sleep(400);
2020-02-15 23:56:05 +00:00
PostMessageWait(task,MESSAGE_KEY_DOWN_UP,CH_SPACE,0);
2020-02-15 20:01:48 +00:00
Sleep(400);
2020-02-15 23:56:05 +00:00
PostMessageWait(task,MESSAGE_KEY_DOWN_UP,CH_SPACE,0);
2020-02-15 20:01:48 +00:00
DeathWait(&task,TRUE);
}
U0 DoElephantWalk()
{
I64 i;
CTask *task=User;
XTalkWait(task,"#include \"::/Demo/Games/ElephantWalk\";\n");
for (i=0;i<15;i++) {
2020-02-15 23:56:05 +00:00
PostMessageWait(task,MESSAGE_KEY_DOWN,0,SC_CURSOR_RIGHT);
2020-02-15 20:01:48 +00:00
Sleep(50);
}
2020-02-15 23:56:05 +00:00
PostMessageWait(task,MESSAGE_KEY_DOWN_UP,CH_SHIFT_ESC,0);
2020-02-15 20:01:48 +00:00
DeathWait(&task,TRUE);
}
U0 DoHalogen()
{
CTask *task=User;
XTalkWait(task,"#include \"::/Demo/Games/Halogen\";\n");
2020-02-15 23:56:05 +00:00
PostMessageWait(task,MESSAGE_KEY_DOWN,0,SC_CURSOR_UP);
2020-02-15 20:01:48 +00:00
Sleep(1000);
2020-02-15 23:56:05 +00:00
PostMessageWait(task,MESSAGE_KEY_UP,0,SC_CURSOR_UP);
PostMessageWait(task,MESSAGE_KEY_DOWN,0,SC_CURSOR_RIGHT);
2020-02-15 20:01:48 +00:00
Sleep(333);
2020-02-15 23:56:05 +00:00
PostMessageWait(task,MESSAGE_KEY_UP,0,SC_CURSOR_RIGHT);
PostMessageWait(task,MESSAGE_KEY_DOWN_UP,CH_SHIFT_ESC,0);
2020-02-15 20:01:48 +00:00
DeathWait(&task,TRUE);
}
U0 DoTheDead()
{
I64 i;
CTask *task=User;
XTalkWait(task,"#include \"::/Demo/Games/TheDead\";\n");
for (i=0;i<15;i++) {
2020-02-15 23:56:05 +00:00
PostMessageWait(task,MESSAGE_KEY_DOWN_UP,0,SC_CURSOR_DOWN);
PostMessageWait(task,MESSAGE_KEY_DOWN_UP,CH_SPACE,0);
2020-02-15 20:01:48 +00:00
Sleep(50);
}
for (i=0;i<15;i++) {
2020-02-15 23:56:05 +00:00
PostMessageWait(task,MESSAGE_KEY_DOWN_UP,0,SC_CURSOR_UP);
PostMessageWait(task,MESSAGE_KEY_DOWN_UP,CH_SPACE,0);
2020-02-15 20:01:48 +00:00
Sleep(50);
}
2020-02-15 23:56:05 +00:00
PostMessageWait(task,MESSAGE_KEY_DOWN_UP,CH_SHIFT_ESC,0);
2020-02-15 20:01:48 +00:00
DeathWait(&task,TRUE);
}
U0 DoBomberGolf()
{
I64 i;
CTask *task=User;
XTalkWait(task,"#include \"::/Demo/Games/BomberGolf\";\n");
for (i=0;i<7;i++) {
2020-02-15 23:56:05 +00:00
PostMessageWait(task,MESSAGE_KEY_DOWN_UP,0,SC_CURSOR_UP);
PostMessageWait(task,MESSAGE_KEY_DOWN_UP,0,SC_CURSOR_RIGHT);
2020-02-15 20:01:48 +00:00
Sleep(100);
}
2020-02-15 23:56:05 +00:00
PostMessageWait(task,MESSAGE_KEY_DOWN_UP,CH_SPACE,0);
2020-02-15 20:01:48 +00:00
for (i=0;i<7;i++) {
2020-02-15 23:56:05 +00:00
PostMessageWait(task,MESSAGE_KEY_DOWN_UP,0,SC_CURSOR_UP);
PostMessageWait(task,MESSAGE_KEY_DOWN_UP,0,SC_CURSOR_LEFT);
PostMessageWait(task,MESSAGE_KEY_DOWN_UP,0,SC_CURSOR_LEFT);
2020-02-15 20:01:48 +00:00
Sleep(200);
}
2020-02-15 23:56:05 +00:00
PostMessageWait(task,MESSAGE_KEY_DOWN_UP,CH_SHIFT_ESC,0);
2020-02-15 20:01:48 +00:00
DeathWait(&task,TRUE);
}
U0 DoZoneOut()
{
I64 i;
CTask *task=User("#include \"::/Demo/Games/ZoneOut\";\n");
BirthWait(&task->popup_task);
TaskWait(task->popup_task);
2020-02-15 23:56:05 +00:00
PostMessageWait(task->popup_task,MESSAGE_KEY_DOWN_UP,CH_SPACE,0);
2020-02-15 20:01:48 +00:00
for (i=0;i<15;i++) {
2020-02-15 23:56:05 +00:00
PostMessageWait(task,MESSAGE_KEY_DOWN_UP,0,SC_CURSOR_RIGHT);
PostMessageWait(task,MESSAGE_KEY_DOWN_UP,0,SC_CURSOR_DOWN);
PostMessageWait(task,MESSAGE_KEY_DOWN_UP,CH_SPACE,0);
2020-02-15 20:01:48 +00:00
Sleep(100);
}
2020-02-15 23:56:05 +00:00
PostMessageWait(task,MESSAGE_KEY_DOWN_UP,CH_SHIFT_ESC,0);
2020-02-15 20:01:48 +00:00
DeathWait(&task,TRUE);
}
U0 DoVaroom()
{
I64 i;
CTask *task=User;
XTalkWait(task,"#include \"::/Demo/Games/Varoom\";\n");
for (i=0;i<10;i++) {
2020-02-15 23:56:05 +00:00
PostMessageWait(task,MESSAGE_KEY_DOWN_UP,0,SC_CURSOR_UP);
2020-02-15 20:01:48 +00:00
Sleep(50);
2020-02-15 23:56:05 +00:00
PostMessageWait(task,MESSAGE_KEY_DOWN_UP,0,SC_CURSOR_UP);
2020-02-15 20:01:48 +00:00
Sleep(50);
2020-02-15 23:56:05 +00:00
PostMessageWait(task,MESSAGE_KEY_DOWN_UP,0,SC_CURSOR_UP);
PostMessageWait(task,MESSAGE_KEY_DOWN_UP,0,SC_CURSOR_LEFT);
2020-02-15 20:01:48 +00:00
Sleep(50);
}
2020-02-15 23:56:05 +00:00
PostMessageWait(task,MESSAGE_KEY_DOWN_UP,CH_SHIFT_ESC,0);
2020-02-15 20:01:48 +00:00
DeathWait(&task,TRUE);
}
U0 DoFlatTops()
{
CTask *task=User("#include \"::/Demo/Games/FlatTops\";\n");
BirthWait(&task->popup_task);
TaskWait(task->popup_task);
2020-02-15 23:56:05 +00:00
PostMessageWait(task->popup_task,MESSAGE_KEY_DOWN_UP,CH_SPACE,0);
2020-02-15 20:01:48 +00:00
DeathWait(&task->popup_task);
2020-02-15 23:56:05 +00:00
PostMessageWait(task,MESSAGE_MS_R_DOWN_UP,RandI16%400+200,RandI16%300+150);
2020-02-15 20:01:48 +00:00
Sleep(1500);
2020-02-15 23:56:05 +00:00
PostMessageWait(task,MESSAGE_KEY_DOWN_UP,CH_SHIFT_ESC,0);
2020-02-15 20:01:48 +00:00
DeathWait(&task,TRUE);
}
U0 DoWenceslas()
{
I64 i;
CTask *task=User("#include \"::/Demo/Games/Wenceslas\";\n");
BirthWait(&task->popup_task);
TaskWait(task->popup_task);
2020-02-15 23:56:05 +00:00
PostMessageWait(task->popup_task,MESSAGE_KEY_DOWN_UP,CH_SPACE,0);
2020-02-15 20:01:48 +00:00
Sleep(100);
BirthWait(&task->popup_task);
TaskWait(task->popup_task);
2020-02-15 23:56:05 +00:00
PostMessageWait(task->popup_task,MESSAGE_KEY_DOWN_UP,CH_SPACE,0);
2020-02-15 20:01:48 +00:00
Sleep(100);
BirthWait(&task->popup_task);
TaskWait(task->popup_task);
2020-02-15 23:56:05 +00:00
PostMessageWait(task->popup_task,MESSAGE_KEY_DOWN_UP,CH_SPACE,0);
2020-02-15 20:01:48 +00:00
Sleep(100);
for (i=0;i<25;i++) {
2020-02-15 23:56:05 +00:00
PostMessageWait(task,MESSAGE_KEY_DOWN_UP,0,SC_CURSOR_DOWN);
PostMessageWait(task,MESSAGE_KEY_DOWN_UP,0,SC_CURSOR_RIGHT);
2020-02-15 20:01:48 +00:00
Sleep(25);
}
2020-02-15 23:56:05 +00:00
PostMessageWait(task,MESSAGE_KEY_DOWN_UP,CH_SHIFT_ESC,0);
2020-02-15 20:01:48 +00:00
DeathWait(&task,TRUE);
}
U0 DoTreeCheckers()
{
I64 task_num;
CTask *task=User("#include \"::/Demo/Games/TreeCheckers\";\n");
task_num=BirthWait(&task->popup_task);
TaskWait(task->popup_task);
2020-02-15 23:56:05 +00:00
PostMessageWait(task->popup_task,MESSAGE_KEY_DOWN_UP,0,SC_CURSOR_DOWN);
PostMessageWait(task->popup_task,MESSAGE_KEY_DOWN_UP,0,SC_CURSOR_DOWN);
PostMessageWait(task->popup_task,MESSAGE_KEY_DOWN_UP,CH_SPACE,0);
2020-02-15 20:01:48 +00:00
BirthWait(&task->popup_task,task_num);
TaskWait(task->popup_task);
2020-02-15 23:56:05 +00:00
PostMessageWait(task->popup_task,MESSAGE_KEY_DOWN_UP,CH_SPACE,0);
2020-02-15 20:01:48 +00:00
Sleep(500);
2020-02-15 23:56:05 +00:00
PostMessageWait(task,MESSAGE_KEY_DOWN_UP,'\n',0);
2020-02-15 20:01:48 +00:00
Sleep(500);
2020-02-15 23:56:05 +00:00
PostMessageWait(task,MESSAGE_KEY_DOWN_UP,CH_SHIFT_ESC,0);
2020-02-15 20:01:48 +00:00
DeathWait(&task,TRUE);
}
U0 DoMorseCode()
{
CTask *task=User;
2020-02-16 00:49:37 +00:00
XTalkWait(task,"#include \"::/Demo/Sound/MorseCode\";\n");
2020-02-15 20:01:48 +00:00
Sleep(50);
2020-02-15 23:56:05 +00:00
PostMessage(task,MESSAGE_KEY_DOWN,CH_SPACE,0);
2020-02-15 20:01:48 +00:00
Sleep(200);
2020-02-15 23:56:05 +00:00
PostMessage(task,MESSAGE_KEY_UP,CH_SPACE,0);
2020-02-15 20:01:48 +00:00
Sleep(350);
2020-02-15 23:56:05 +00:00
PostMessage(task,MESSAGE_KEY_DOWN,CH_SPACE,0);
2020-02-15 20:01:48 +00:00
Sleep(50);
2020-02-15 23:56:05 +00:00
PostMessage(task,MESSAGE_KEY_UP,CH_SPACE,0);
2020-02-15 20:01:48 +00:00
Sleep(350);
2020-02-15 23:56:05 +00:00
PostMessage(task,MESSAGE_KEY_DOWN,CH_SPACE,0);
2020-02-15 20:01:48 +00:00
Sleep(50);
2020-02-15 23:56:05 +00:00
PostMessage(task,MESSAGE_KEY_UP,CH_SPACE,0);
2020-02-15 20:01:48 +00:00
Sleep(25);
2020-02-15 23:56:05 +00:00
PostMessage(task,MESSAGE_KEY_DOWN,CH_SPACE,0);
2020-02-15 20:01:48 +00:00
Sleep(200);
2020-02-15 23:56:05 +00:00
PostMessage(task,MESSAGE_KEY_UP,CH_SPACE,0);
2020-02-15 20:01:48 +00:00
Sleep(25);
2020-02-15 23:56:05 +00:00
PostMessage(task,MESSAGE_KEY_DOWN,CH_SPACE,0);
2020-02-15 20:01:48 +00:00
Sleep(50);
2020-02-15 23:56:05 +00:00
PostMessage(task,MESSAGE_KEY_UP,CH_SPACE,0);
2020-02-15 20:01:48 +00:00
Sleep(500);
2020-02-15 23:56:05 +00:00
PostMessageWait(task,MESSAGE_KEY_DOWN_UP,CH_SHIFT_ESC,0);
2020-02-15 20:01:48 +00:00
DeathWait(&task,TRUE);
}
U0 DoPixCollision()
{
I64 w,h;
CTask *task=User;
XTalkWait(task,"#include \"::/Demo/Graphics/Collision\";\n");
w=task->pix_width>>1 +task->pix_left+task->scroll_x;
h=task->pix_height>>1+task->pix_top +task->scroll_y;
MouseSet(w-35,h-35);
InSetMouse(10,w+35,w+35);
2020-02-15 23:56:05 +00:00
PostMessageWait(task,MESSAGE_KEY_DOWN_UP,CH_SPACE,0);
2020-02-15 20:01:48 +00:00
DeathWait(&task,TRUE);
}
U0 DoBlackDiamond()
{
I64 i;
CTask *task=User;
XTalkWait(task,"#include \"::/Demo/Games/BlackDiamond\";\n");
for (i=0;i<15;i++) {
2020-02-15 23:56:05 +00:00
PostMessageWait(task,MESSAGE_KEY_DOWN_UP,0,SC_CURSOR_RIGHT);
2020-02-15 20:01:48 +00:00
Sleep(75);
}
for (i=0;i<12;i++) {
2020-02-15 23:56:05 +00:00
PostMessageWait(task,MESSAGE_KEY_DOWN_UP,0,SC_CURSOR_DOWN);
2020-02-15 20:01:48 +00:00
Sleep(75);
}
2020-02-15 23:56:05 +00:00
PostMessageWait(task,MESSAGE_KEY_DOWN_UP,CH_SHIFT_ESC,0);
2020-02-15 20:01:48 +00:00
DeathWait(&task,TRUE);
}
U0 DoCtrlR1()
{
I64 i,task_num;
CTask *task=User;
XTalkWait(task,"//");
2020-02-15 23:56:05 +00:00
PostMessage(task,MESSAGE_KEY_DOWN_UP,CH_CTRLR,0);
2020-02-15 20:01:48 +00:00
task_num=BirthWait(&task->popup_task);
TaskWait(task->popup_task);
for (i=0;i<1;i++)
2020-02-15 23:56:05 +00:00
PostMessageWait(task->popup_task,MESSAGE_KEY_DOWN_UP,0,SC_CURSOR_DOWN);
PostMessage(task->popup_task,MESSAGE_KEY_DOWN_UP,CH_SPACE,0);
2020-02-15 20:01:48 +00:00
//Color
task_num=BirthWait(&task->popup_task,task_num);
TaskWait(task->popup_task);
for (i=0;i<2;i++)
2020-02-15 23:56:05 +00:00
PostMessageWait(task->popup_task,MESSAGE_KEY_DOWN_UP,0,SC_CURSOR_DOWN);
PostMessage(task->popup_task,MESSAGE_KEY_DOWN_UP,CH_SPACE,0);
2020-02-15 20:01:48 +00:00
task_num=BirthWait(&task->popup_task,task_num);
TaskWait(task->popup_task);
for (i=0;i<2;i++)
2020-02-15 23:56:05 +00:00
PostMessageWait(task->popup_task,MESSAGE_KEY_DOWN_UP,0,SC_CURSOR_DOWN);
PostMessage(task->popup_task,MESSAGE_KEY_DOWN_UP,CH_SPACE,0);
2020-02-15 20:01:48 +00:00
//Width
task_num=BirthWait(&task->popup_task,task_num);
TaskWait(task->popup_task);
for (i=0;i<4;i++)
2020-02-15 23:56:05 +00:00
PostMessageWait(task->popup_task,MESSAGE_KEY_DOWN_UP,0,SC_CURSOR_DOWN);
PostMessage(task->popup_task,MESSAGE_KEY_DOWN_UP,CH_SPACE,0);
2020-02-15 20:01:48 +00:00
task_num=BirthWait(&task->popup_task,task_num);
TaskWait(task->popup_task);
for (i=0;i<4;i++)
2020-02-15 23:56:05 +00:00
PostMessageWait(task->popup_task,MESSAGE_KEY_DOWN_UP,0,SC_CURSOR_DOWN);
PostMessage(task->popup_task,MESSAGE_KEY_DOWN_UP,CH_SPACE,0);
2020-02-15 20:01:48 +00:00
//Line
task_num=BirthWait(&task->popup_task,task_num);
TaskWait(task->popup_task);
for (i=0;i<7;i++)
2020-02-15 23:56:05 +00:00
PostMessageWait(task->popup_task,MESSAGE_KEY_DOWN_UP,0,SC_CURSOR_DOWN);
PostMessage(task->popup_task,MESSAGE_KEY_DOWN_UP,CH_SPACE,0);
2020-02-15 20:01:48 +00:00
DeathWait(&task->popup_task);
2020-02-15 23:56:05 +00:00
PostMessageWait(task,MESSAGE_MS_L_DOWN,150,150);
PostMessageWait(task,MESSAGE_MS_L_UP,150,95);
2020-02-15 20:01:48 +00:00
Sleep(250);
2020-02-15 23:56:05 +00:00
PostMessageWait(task,MESSAGE_MS_L_DOWN,150,150);
PostMessageWait(task,MESSAGE_MS_L_UP,190,190);
2020-02-15 20:01:48 +00:00
Sleep(250);
2020-02-15 23:56:05 +00:00
PostMessageWait(task,MESSAGE_MS_L_DOWN,150,150);
PostMessageWait(task,MESSAGE_MS_L_UP,110,190);
2020-02-15 20:01:48 +00:00
Sleep(250);
2020-02-15 23:56:05 +00:00
PostMessage(task,MESSAGE_MS_R_DOWN_UP,100,100);
2020-02-15 20:01:48 +00:00
//Color
task_num=BirthWait(&task->popup_task,task_num);
TaskWait(task->popup_task);
for (i=0;i<2;i++)
2020-02-15 23:56:05 +00:00
PostMessageWait(task->popup_task,MESSAGE_KEY_DOWN_UP,0,SC_CURSOR_DOWN);
PostMessage(task->popup_task,MESSAGE_KEY_DOWN_UP,CH_SPACE,0);
2020-02-15 20:01:48 +00:00
task_num=BirthWait(&task->popup_task,task_num);
TaskWait(task->popup_task);
for (i=0;i<3;i++)
2020-02-15 23:56:05 +00:00
PostMessageWait(task->popup_task,MESSAGE_KEY_DOWN_UP,0,SC_CURSOR_DOWN);
PostMessage(task->popup_task,MESSAGE_KEY_DOWN_UP,CH_SPACE,0);
2020-02-15 20:01:48 +00:00
//Circle
task_num=BirthWait(&task->popup_task,task_num);
TaskWait(task->popup_task);
for (i=0;i<10;i++)
2020-02-15 23:56:05 +00:00
PostMessageWait(task->popup_task,MESSAGE_KEY_DOWN_UP,0,SC_CURSOR_DOWN);
PostMessage(task->popup_task,MESSAGE_KEY_DOWN_UP,CH_SPACE,0);
2020-02-15 20:01:48 +00:00
DeathWait(&task->popup_task);
2020-02-15 23:56:05 +00:00
PostMessageWait(task,MESSAGE_MS_L_DOWN,150,150);
PostMessageWait(task,MESSAGE_MS_L_UP,190,190);
2020-02-15 20:01:48 +00:00
Sleep(250);
2020-02-15 23:56:05 +00:00
PostMessage(task,MESSAGE_MS_R_DOWN_UP,100,100);
2020-02-15 20:01:48 +00:00
//Exit
BirthWait(&task->popup_task);
2020-02-15 23:56:05 +00:00
PostMessageWait(task->popup_task,MESSAGE_KEY_DOWN_UP,0,SC_CURSOR_DOWN+SCF_CTRL);
PostMessageWait(task->popup_task,MESSAGE_KEY_DOWN_UP,0,SC_CURSOR_UP);
PostMessage(task->popup_task,MESSAGE_KEY_DOWN_UP,CH_SPACE,0);
2020-02-15 20:01:48 +00:00
DeathWait(&task->popup_task);
Sleep(1000);
XTalk(task,"\n");
DeathWait(&task,TRUE);
}
U0 DoF2Macro()
{
I64 i;
U8 *ptr="\"Boo!\\n\";\n";
CTask *task=User;
DeathWait(&sys_macro_task);
2020-02-15 23:56:05 +00:00
PostMessageWait(task,MESSAGE_KEY_DOWN_UP,0,SC_F2);
2020-02-15 20:01:48 +00:00
BirthWait(&sys_macro_task);
TaskWait(sys_macro_task);
2020-02-15 23:56:05 +00:00
PostMessageWait(sys_macro_task,MESSAGE_KEY_DOWN_UP,0,SC_CURSOR_RIGHT|SCF_CTRL);
PostMessageWait(sys_macro_task,MESSAGE_KEY_DOWN_UP,0,SC_CURSOR_DOWN);
PostMessageWait(sys_macro_task,MESSAGE_KEY_DOWN_UP,0,SC_CURSOR_RIGHT);
PostMessageWait(sys_macro_task,MESSAGE_KEY_DOWN_UP,CH_SPACE,0); //Press RECORD
2020-02-15 20:01:48 +00:00
while (!Bt(&sys_semas[SEMA_RECORD_MACRO],0))
Yield;
while (*ptr)
2020-02-15 23:56:05 +00:00
PostMessageWait(task,MESSAGE_KEY_DOWN,*ptr++,0);
2020-02-15 20:01:48 +00:00
2020-02-15 23:56:05 +00:00
PostMessageWait(sys_macro_task,MESSAGE_KEY_DOWN_UP,0,SC_CURSOR_DOWN);
PostMessageWait(sys_macro_task,MESSAGE_KEY_DOWN_UP,0,SC_CURSOR_DOWN);
PostMessageWait(sys_macro_task,MESSAGE_KEY_DOWN_UP,CH_SPACE,0); //Press STOP
2020-02-15 20:01:48 +00:00
for (i=0;i<10;i++)
2020-02-15 23:56:05 +00:00
PostMessageWait(task,MESSAGE_KEY_DOWN_UP,0,SC_F2|SCF_SHIFT);
2020-02-15 20:01:48 +00:00
2020-02-15 23:56:05 +00:00
PostMessage(sys_macro_task,MESSAGE_KEY_DOWN_UP,CH_SHIFT_ESC,0);
2020-02-15 20:01:48 +00:00
DeathWait(&sys_macro_task);
Sleep(1000);
XTalk(task,"\n");
DeathWait(&task,TRUE);
}
U0 DoLightTable()
{
CTask *task=User("#include \"::/Demo/Graphics/LightTable\";\n\n");
TaskWait(task);
2020-02-15 23:56:05 +00:00
PostMessageWait(task,MESSAGE_KEY_DOWN_UP,'2',0);
PostMessageWait(task,MESSAGE_MS_L_DOWN, 100 ,200);
PostMessageWait(task,MESSAGE_MS_L_UP, 640-100 ,200);
PostMessageWait(task,MESSAGE_KEY_DOWN_UP,'3',0);
PostMessageWait(task,MESSAGE_MS_L_DOWN_UP,100 ,200);
PostMessageWait(task,MESSAGE_MS_L_DOWN_UP,100 ,200);
PostMessageWait(task,MESSAGE_MS_L_DOWN_UP,100 ,200);
PostMessageWait(task,MESSAGE_MS_L_DOWN_UP,120 ,180);
PostMessageWait(task,MESSAGE_MS_L_DOWN_UP,160 ,120);
PostMessageWait(task,MESSAGE_MS_L_DOWN_UP,320 ,10);
PostMessageWait(task,MESSAGE_MS_L_DOWN_UP,640-160 ,120);
PostMessageWait(task,MESSAGE_MS_L_DOWN_UP,640-120 ,180);
PostMessageWait(task,MESSAGE_MS_L_DOWN_UP,640-100 ,200);
PostMessageWait(task,MESSAGE_MS_L_DOWN_UP,640-100 ,200);
PostMessageWait(task,MESSAGE_MS_L_DOWN_UP,640-100 ,200);
PostMessageWait(task,MESSAGE_MS_R_DOWN_UP,0,0);
PostMessageWait(task,MESSAGE_KEY_DOWN_UP,'4',0);
PostMessageWait(task,MESSAGE_MS_L_DOWN_UP,320,190);
PostMessageWait(task,MESSAGE_KEY_DOWN_UP,'5',0);
PostMessageWait(task,MESSAGE_MS_L_DOWN,460,280);
PostMessageWait(task,MESSAGE_MS_L_UP ,500,220);
2020-02-15 20:01:48 +00:00
Sleep(1500);
2020-02-15 23:56:05 +00:00
PostMessageWait(task,MESSAGE_KEY_DOWN_UP,CH_ESC,0);
2020-02-15 20:01:48 +00:00
DeathWait(&task,TRUE);
}
U0 DoPredatorPrey()
{
CTask *task=User("#include \"::/Demo/Graphics/PredatorPrey\";\n");
BirthWait(&task->popup_task);
TaskWait(task->popup_task);
2020-02-15 23:56:05 +00:00
PostMessageWait(task->popup_task,MESSAGE_KEY_DOWN_UP,CH_SPACE,0);
2020-02-15 20:01:48 +00:00
Sleep(1500);
2020-02-15 23:56:05 +00:00
PostMessageWait(task,MESSAGE_KEY_DOWN_UP,CH_SPACE,0);
2020-02-15 20:01:48 +00:00
DeathWait(&task,TRUE);
}
U0 DoCharDemo()
{
CTask *task=User;
XTalkWait(task,"#include \"::/Demo/Games/CharDemo\";\n");
2020-02-15 23:56:05 +00:00
PostMessageWait(task,MESSAGE_KEY_DOWN_UP,0,SC_CURSOR_UP);
PostMessageWait(task,MESSAGE_KEY_DOWN_UP,0,SC_CURSOR_LEFT);
2020-02-15 20:01:48 +00:00
Sleep(750);
2020-02-15 23:56:05 +00:00
PostMessage(task,MESSAGE_KEY_DOWN_UP,CH_SHIFT_ESC,0);
2020-02-15 20:01:48 +00:00
DeathWait(&task,TRUE);
}
U0 DoLattice()
{
I64 i;
CTask *task=User;
XTalkWait(task,"#include \"::/Demo/Graphics/Lattice\";\n");
for (i=0;i<20;i++)
2020-02-15 23:56:05 +00:00
PostMessageWait(task,MESSAGE_KEY_DOWN_UP,0,SC_CURSOR_UP);
2020-02-15 20:01:48 +00:00
for (i=0;i<6;i++) {
2020-02-15 23:56:05 +00:00
PostMessageWait(task,MESSAGE_KEY_DOWN_UP,'+',0);
PostMessageWait(task,MESSAGE_KEY_DOWN_UP,0,SC_CURSOR_LEFT);
2020-02-15 20:01:48 +00:00
}
for (i=0;i<6;i++) {
2020-02-15 23:56:05 +00:00
PostMessageWait(task,MESSAGE_KEY_DOWN_UP,CH_SPACE,0);
PostMessageWait(task,MESSAGE_KEY_DOWN_UP,0,SC_CURSOR_LEFT);
2020-02-15 20:01:48 +00:00
}
for (i=0;i<16;i++) {
2020-02-15 23:56:05 +00:00
PostMessageWait(task,MESSAGE_KEY_DOWN_UP,CH_SPACE,0);
PostMessageWait(task,MESSAGE_KEY_DOWN_UP,0,SC_CURSOR_RIGHT);
2020-02-15 20:01:48 +00:00
}
Sleep(500);
2020-02-15 23:56:05 +00:00
PostMessageWait(task,MESSAGE_KEY_DOWN_UP,CH_SHIFT_ESC,0);
2020-02-15 20:01:48 +00:00
DeathWait(&task,TRUE);
}
U0 DoCartesian()
{
CTask *task=User;
XTalkWait(task,"#include \"::/Demo/Graphics/Cartesian\";\n");
XTalkWait(task,"0.2*x`1.5\n");
Sleep(750);
2020-02-15 23:56:05 +00:00
PostMessageWait(task,MESSAGE_KEY_DOWN_UP,CH_SHIFT_ESC,0);
2020-02-15 20:01:48 +00:00
DeathWait(&task,TRUE);
}
U0 DoMPAdd()
{
CTask *task=User;
XTalkWait(task,"#include \"::/Demo/MultiCore/MPAdd\";\n");
Sleep(750);
2020-02-15 23:56:05 +00:00
PostMessageWait(task,MESSAGE_KEY_DOWN_UP,CH_SPACE,0);
2020-02-15 20:01:48 +00:00
Sleep(750);
2020-02-15 23:56:05 +00:00
PostMessageWait(task,MESSAGE_KEY_DOWN_UP,CH_SPACE,0);
2020-02-15 20:01:48 +00:00
DeathWait(&task,TRUE);
}
U0 DoFlapBat()
{
I64 i;
CTask *task=User("#include \"::/Demo/Games/FlapBat\";\n");
BirthWait(&task->popup_task);
TaskWait(task->popup_task);
2020-02-15 23:56:05 +00:00
PostMessageWait(task->popup_task,MESSAGE_KEY_DOWN_UP,CH_SPACE,0);
2020-02-15 20:01:48 +00:00
Sleep(500);
for (i=0;i<4;i++) {
2020-02-15 23:56:05 +00:00
PostMessageWait(task,MESSAGE_KEY_DOWN,CH_SPACE,0);
2020-02-15 20:01:48 +00:00
Sleep(100);
2020-02-15 23:56:05 +00:00
PostMessageWait(task,MESSAGE_KEY_UP,CH_SPACE,0);
2020-02-15 20:01:48 +00:00
Sleep(100);
}
2020-02-15 23:56:05 +00:00
PostMessageWait(task,MESSAGE_KEY_DOWN_UP,CH_SHIFT_ESC,0);
2020-02-15 20:01:48 +00:00
DeathWait(&task,TRUE);
}
U0 DoBattleLines()
{
CTask *task=User("#include \"::/Demo/Games/BattleLines\";\n");
BirthWait(&task->popup_task);
TaskWait(task->popup_task);
2020-02-15 23:56:05 +00:00
PostMessageWait(task->popup_task,MESSAGE_KEY_DOWN_UP,CH_SPACE,0);
2020-02-15 20:01:48 +00:00
DeathWait(&task->popup_task);
MouseSet(430,300,,TRUE);
InSetMouse(10,530,400);
MouseSet(,,,FALSE);
2020-02-15 23:56:05 +00:00
PostMessageWait(task,MESSAGE_KEY_DOWN_UP,CH_SHIFT_ESC,0);
2020-02-15 20:01:48 +00:00
DeathWait(&task,TRUE);
}
U0 DoBigGuns()
{
I64 i,task_num;
CTask *task=User("#include \"::/Demo/Games/BigGuns\";\n");
task_num=BirthWait(&task->popup_task);
TaskWait(task->popup_task);
2020-02-15 23:56:05 +00:00
PostMessageWait(task->popup_task,MESSAGE_KEY_DOWN_UP,CH_SPACE,0);
2020-02-15 20:01:48 +00:00
BirthWait(&task->popup_task,task_num);
TaskWait(task->popup_task);
2020-02-15 23:56:05 +00:00
PostMessageWait(task->popup_task,MESSAGE_KEY_DOWN_UP,CH_SPACE,0);
2020-02-15 20:01:48 +00:00
for (i=0;i<5;i++) {
2020-02-15 23:56:05 +00:00
PostMessageWait(task,MESSAGE_KEY_DOWN_UP,0,SC_CURSOR_LEFT);
PostMessageWait(task,MESSAGE_KEY_DOWN_UP,0,SC_CURSOR_LEFT);
PostMessageWait(task,MESSAGE_KEY_DOWN_UP,0,SC_CURSOR_LEFT);
PostMessageWait(task,MESSAGE_KEY_DOWN_UP,0,SC_CURSOR_LEFT);
2020-02-15 20:01:48 +00:00
Sleep(200);
2020-02-15 23:56:05 +00:00
PostMessageWait(task,MESSAGE_KEY_DOWN_UP,CH_SPACE,0);
2020-02-15 20:01:48 +00:00
}
2020-02-15 23:56:05 +00:00
PostMessageWait(task,MESSAGE_KEY_DOWN_UP,CH_SHIFT_ESC,0);
2020-02-15 20:01:48 +00:00
DeathWait(&task,TRUE);
}
U0 DoDunGen()
{
I64 i;
CTask *task=User;
XTalkWait(task,"#include \"::/Demo/Games/DunGen\";\n");
for (i=0;i<10;i++) {
2020-02-15 23:56:05 +00:00
PostMessageWait(task,MESSAGE_KEY_DOWN_UP,0,SC_CURSOR_RIGHT);
2020-02-15 20:01:48 +00:00
Sleep(100);
}
for (i=0;i<12;i++) {
2020-02-15 23:56:05 +00:00
PostMessageWait(task,MESSAGE_KEY_DOWN_UP,0,SC_CURSOR_DOWN);
2020-02-15 20:01:48 +00:00
Sleep(100);
}
for (i=0;i<6;i++) {
2020-02-15 23:56:05 +00:00
PostMessageWait(task,MESSAGE_KEY_DOWN_UP,0,SC_CURSOR_RIGHT);
2020-02-15 20:01:48 +00:00
Sleep(100);
}
2020-02-15 23:56:05 +00:00
PostMessageWait(task,MESSAGE_KEY_DOWN_UP,CH_SHIFT_ESC,0);
2020-02-15 20:01:48 +00:00
DeathWait(&task,TRUE);
}
U0 DoTitanium()
{
I64 i;
CTask *task=User;
XTalkWait(task,"#include \"::/Apps/Titanium/Run\";\n");
Sleep(200);
2020-02-15 23:56:05 +00:00
PostMessageWait(task,MESSAGE_KEY_DOWN_UP,CH_SPACE,0);
2020-02-15 20:01:48 +00:00
for (i=0;i<3;i++) {
2020-02-15 23:56:05 +00:00
PostMessageWait(task,MESSAGE_KEY_DOWN,CH_SPACE,0);
2020-02-15 20:01:48 +00:00
LBts(kbd.down_bitmap,SC_CURSOR_RIGHT);
Sleep(200);
2020-02-15 23:56:05 +00:00
PostMessageWait(task,MESSAGE_KEY_UP,CH_SPACE,0);
2020-02-15 20:01:48 +00:00
LBtr(kbd.down_bitmap,SC_CURSOR_RIGHT);
Sleep(200);
2020-02-15 23:56:05 +00:00
PostMessageWait(task,MESSAGE_KEY_DOWN,CH_SPACE,0);
2020-02-15 20:01:48 +00:00
LBts(kbd.down_bitmap,SC_CURSOR_LEFT);
Sleep(200);
2020-02-15 23:56:05 +00:00
PostMessageWait(task,MESSAGE_KEY_UP,CH_SPACE,0);
2020-02-15 20:01:48 +00:00
LBtr(kbd.down_bitmap,SC_CURSOR_LEFT);
Sleep(200);
}
2020-02-15 23:56:05 +00:00
PostMessageWait(task,MESSAGE_KEY_DOWN_UP,CH_SHIFT_ESC,0);
2020-02-15 20:01:48 +00:00
DeathWait(&task,TRUE);
}
U0 DoToTheFront()
{
I64 task_num;
CTask *task=User("#include \"::/Apps/ToTheFront/Run\";\n");
task_num=BirthWait(&task->popup_task);
2020-02-15 23:56:05 +00:00
PostMessageWait(task->popup_task,MESSAGE_KEY_DOWN_UP,'\n',0);
2020-02-15 20:01:48 +00:00
task_num=BirthWait(&task->popup_task,task_num);
2020-02-15 23:56:05 +00:00
PostMessageWait(task->popup_task,MESSAGE_KEY_DOWN_UP,0,SC_CURSOR_RIGHT);
PostMessageWait(task->popup_task,MESSAGE_KEY_DOWN_UP,CH_SPACE,0);
2020-02-15 20:01:48 +00:00
task_num=BirthWait(&task->popup_task,task_num);
2020-02-15 23:56:05 +00:00
PostMessageWait(task->popup_task,MESSAGE_KEY_DOWN_UP,0,SC_CURSOR_RIGHT);
PostMessageWait(task->popup_task,MESSAGE_KEY_DOWN_UP,CH_SPACE,0);
2020-02-15 20:01:48 +00:00
BirthWait(&task->popup_task,task_num);
2020-02-15 23:56:05 +00:00
PostMessageWait(task->popup_task,MESSAGE_KEY_DOWN,CH_SPACE,0);
2020-02-15 20:01:48 +00:00
DeathWait(&task->popup_task);
Sleep(5000);
2020-02-15 23:56:05 +00:00
PostMessageWait(task,MESSAGE_KEY_DOWN_UP,CH_SHIFT_ESC,0);
2020-02-15 20:01:48 +00:00
DeathWait(&task,TRUE);
}
U0 DoPsalmody()
{
CTask *task=User;
XTalkWait(task,"#include \"::/Apps/Psalmody/Run\";\n");
2020-02-15 23:56:05 +00:00
PostMessageWait(task,MESSAGE_KEY_DOWN_UP,'z',0);
PostMessageWait(task,MESSAGE_KEY_DOWN,'h',0);
2020-02-15 20:01:48 +00:00
Sleep(200);
2020-02-15 23:56:05 +00:00
PostMessageWait(task,MESSAGE_KEY_UP,'h',0);
PostMessageWait(task,MESSAGE_KEY_DOWN,'g',0);
2020-02-15 20:01:48 +00:00
Sleep(200);
2020-02-15 23:56:05 +00:00
PostMessageWait(task,MESSAGE_KEY_UP,'g',0);
PostMessageWait(task,MESSAGE_KEY_DOWN,'h',0);
2020-02-15 20:01:48 +00:00
Sleep(200);
2020-02-15 23:56:05 +00:00
PostMessageWait(task,MESSAGE_KEY_UP,'h',0);
PostMessageWait(task,MESSAGE_KEY_DOWN,'j',0);
2020-02-15 20:01:48 +00:00
Sleep(200);
2020-02-15 23:56:05 +00:00
PostMessageWait(task,MESSAGE_KEY_UP,'j',0);
PostMessageWait(task,MESSAGE_KEY_DOWN_UP,0,SC_CURSOR_LEFT+SCF_CTRL);
PostMessageWait(task,MESSAGE_KEY_DOWN_UP,'x',0);
2020-02-15 20:01:48 +00:00
Sleep(1250);
2020-02-15 23:56:05 +00:00
PostMessageWait(task,MESSAGE_KEY_DOWN_UP,CH_SHIFT_ESC,0);
2020-02-15 20:01:48 +00:00
DeathWait(&task,TRUE);
}
U0 DoJukeBox()
{
CTask *task=User("#include \"::/Apps/Psalmody/Load\";"
"JukeBox(\"::/Apps/Psalmody/Examples\");\n");
BirthWait(&task->popup_task);
2020-02-15 23:56:05 +00:00
PostMessageWait(task->popup_task,MESSAGE_KEY_DOWN_UP,0,SC_CURSOR_RIGHT);
PostMessageWait(task->popup_task,MESSAGE_KEY_DOWN_UP,CH_SPACE,0);
2020-02-15 20:01:48 +00:00
Sleep(1500);
2020-02-15 23:56:05 +00:00
PostMessageWait(task->popup_task,MESSAGE_KEY_DOWN_UP,CH_SHIFT_ESC,0);
2020-02-15 20:01:48 +00:00
DeathWait(&task->popup_task);
DeathWait(&task,TRUE);
}
U0 DoSpan()
{
CTask *task=User("#include \"::/Apps/Span/Run\";\n");
BirthWait(&task->popup_task);
TaskWait(task->popup_task);
2020-02-15 23:56:05 +00:00
PostMessageWait(task->popup_task,MESSAGE_KEY_DOWN_UP,CH_SPACE,0);
2020-02-15 20:01:48 +00:00
Sleep(1500);
2020-02-15 23:56:05 +00:00
PostMessageWait(task,MESSAGE_KEY_DOWN_UP,CH_SHIFT_ESC,0);
2020-02-15 20:01:48 +00:00
DeathWait(&task,TRUE);
}
U0 DoStrut()
{
CTask *task=User;
XTalkWait(task,"#include \"::/Apps/Strut/Run\";\n");
2020-02-15 23:56:05 +00:00
PostMessageWait(task,MESSAGE_KEY_DOWN_UP,CH_SPACE,0);
2020-02-15 20:01:48 +00:00
MouseSet(200,200,,TRUE);
2020-02-15 23:56:05 +00:00
PostMessageWait(task,MESSAGE_MS_L_DOWN,0,0);
2020-02-15 20:01:48 +00:00
Refresh(2);
MouseSet(GR_WIDTH-200,200,,TRUE);
2020-02-15 23:56:05 +00:00
PostMessageWait(task,MESSAGE_MS_L_DOWN,0,0);
2020-02-15 20:01:48 +00:00
MouseSet(GR_WIDTH/2,400,,TRUE);
2020-02-15 23:56:05 +00:00
PostMessageWait(task,MESSAGE_MS_L_DOWN,0,0);
2020-02-15 20:01:48 +00:00
2020-02-15 23:56:05 +00:00
PostMessageWait(task,MESSAGE_KEY_DOWN_UP,'s',0);
2020-02-15 20:01:48 +00:00
MouseSet(200,200,,TRUE);
2020-02-15 23:56:05 +00:00
PostMessageWait(task,MESSAGE_MS_L_DOWN,0,0);
MouseSet(GR_WIDTH-200,200,,TRUE);
2020-02-15 23:56:05 +00:00
PostMessageWait(task,MESSAGE_MS_L_UP,0,0);
2020-02-15 20:01:48 +00:00
MouseSet(200,200,,TRUE);
2020-02-15 23:56:05 +00:00
PostMessageWait(task,MESSAGE_MS_L_DOWN,0,0);
MouseSet(GR_WIDTH/2,400,,TRUE);
2020-02-15 23:56:05 +00:00
PostMessageWait(task,MESSAGE_MS_L_UP,0,0);
2020-02-15 20:01:48 +00:00
MouseSet(GR_WIDTH-200,200,,TRUE);
2020-02-15 23:56:05 +00:00
PostMessageWait(task,MESSAGE_MS_L_DOWN,0,0);
MouseSet(GR_WIDTH/2,400,,TRUE);
2020-02-15 23:56:05 +00:00
PostMessageWait(task,MESSAGE_MS_L_UP,0,0);
2020-02-15 20:01:48 +00:00
MouseSet(GR_WIDTH/2,GR_HEIGHT/2,,TRUE);
2020-02-15 23:56:05 +00:00
PostMessageWait(task,MESSAGE_MS_L_DOWN,0,0);
MouseSet(GR_WIDTH-200,200,,TRUE);
2020-02-15 23:56:05 +00:00
PostMessageWait(task,MESSAGE_MS_L_UP,0,0);
2020-02-15 20:01:48 +00:00
MouseSet(GR_WIDTH/2,GR_HEIGHT/2,,TRUE);
2020-02-15 23:56:05 +00:00
PostMessageWait(task,MESSAGE_MS_L_DOWN,0,0);
MouseSet(GR_WIDTH/2,400,,TRUE);
2020-02-15 23:56:05 +00:00
PostMessageWait(task,MESSAGE_MS_L_UP,0,0);
2020-02-15 20:01:48 +00:00
MouseSet(GR_WIDTH/2,GR_HEIGHT/2,,TRUE);
2020-02-15 23:56:05 +00:00
PostMessageWait(task,MESSAGE_MS_L_DOWN,0,0);
MouseSet(200,200,,TRUE);
2020-02-15 23:56:05 +00:00
PostMessageWait(task,MESSAGE_MS_L_UP,0,0);
2020-02-15 20:01:48 +00:00
2020-02-15 23:56:05 +00:00
PostMessageWait(task,MESSAGE_KEY_DOWN_UP,'t',0);
2020-02-15 20:01:48 +00:00
MouseSet(GR_WIDTH/2,400,,TRUE);
2020-02-15 23:56:05 +00:00
PostMessageWait(task,MESSAGE_MS_L_DOWN,0,0);
MouseSet(GR_WIDTH-200,200,,TRUE);
2020-02-15 23:56:05 +00:00
PostMessageWait(task,MESSAGE_MS_L_UP,0,0);
2020-02-15 20:01:48 +00:00
MouseSet(GR_WIDTH/2,400,,TRUE);
2020-02-15 23:56:05 +00:00
PostMessageWait(task,MESSAGE_MS_L_DOWN,0,0);
MouseSet(200,200,,TRUE);
2020-02-15 23:56:05 +00:00
PostMessageWait(task,MESSAGE_MS_L_UP,0,0);
2020-02-15 20:01:48 +00:00
MouseSet(,,,FALSE);
2020-02-15 20:01:48 +00:00
2020-02-15 23:56:05 +00:00
PostMessageWait(task,MESSAGE_KEY_DOWN_UP,CH_SPACE,0);
2020-02-15 20:01:48 +00:00
LBts(kbd.down_bitmap,Char2ScanCode('1'));
Sleep(600);
LBtr(kbd.down_bitmap,Char2ScanCode('1'));
2020-02-15 23:56:05 +00:00
PostMessageWait(task,MESSAGE_KEY_DOWN_UP,'Z',0);
2020-02-15 20:01:48 +00:00
Sleep(200);
2020-02-15 23:56:05 +00:00
PostMessageWait(task,MESSAGE_KEY_DOWN_UP,'Z',0);
2020-02-15 20:01:48 +00:00
Sleep(200);
2020-02-15 23:56:05 +00:00
PostMessageWait(task,MESSAGE_KEY_DOWN_UP,'Z',0);
2020-02-15 20:01:48 +00:00
Sleep(200);
2020-02-15 23:56:05 +00:00
PostMessageWait(task,MESSAGE_KEY_DOWN_UP,CH_SHIFT_ESC,0);
2020-02-15 20:01:48 +00:00
DeathWait(&task,TRUE);
}
U0 DoRawHide()
{
CTask *task=User("#include \"::/Demo/Games/RawHide\";\n");
BirthWait(&task->popup_task);
TaskWait(task->popup_task);
2020-02-15 23:56:05 +00:00
PostMessageWait(task->popup_task,MESSAGE_KEY_DOWN_UP,CH_SPACE,0);
2020-02-15 20:01:48 +00:00
Sleep(2500);
2020-02-15 23:56:05 +00:00
PostMessageWait(task,MESSAGE_KEY_DOWN_UP,CH_SHIFT_ESC,0);
2020-02-15 20:01:48 +00:00
DeathWait(&task,TRUE);
}
U0 DoPoleZeros()
{
CTask *task=User("#include \"::/Demo/Graphics/PoleZeros\";\n");
BirthWait(&task->popup_task);
TaskWait(task->popup_task);
2020-02-15 23:56:05 +00:00
PostMessageWait(task->popup_task,MESSAGE_KEY_DOWN_UP,CH_SPACE,0);
2020-02-15 20:01:48 +00:00
Sleep(750);
2020-02-15 23:56:05 +00:00
PostMessageWait(task,MESSAGE_KEY_DOWN_UP,CH_ESC,0);
2020-02-15 20:01:48 +00:00
DeathWait(&task,TRUE);
}
U0 DoWhap()
{
CTask *task=User;
XTalkWait(task,"#include \"::/Demo/Games/Whap\";\n");
MouseSet(300,200);
2020-02-15 20:01:48 +00:00
Sleep(500);
InSetMouse(3,350,300);
2020-02-15 20:01:48 +00:00
Sleep(500);
InSetMouse(3,450,200);
2020-02-15 20:01:48 +00:00
Sleep(500);
2020-02-15 23:56:05 +00:00
PostMessageWait(task,MESSAGE_KEY_DOWN_UP,CH_SHIFT_ESC,0);
2020-02-15 20:01:48 +00:00
DeathWait(&task,TRUE);
}
U0 DoGrid()
{
CTask *task=User("#include \"::/Demo/Graphics/Grid\";\n");
MouseSet(200,200);
2020-02-15 20:01:48 +00:00
Sleep(150);
InSetMouse(2,400,400);
InSetMouse(2,200,400);
InSetMouse(2,200,200);
MouseSet(,,,TRUE);
2020-02-15 20:01:48 +00:00
Sleep(50);
MouseSet(,,,FALSE);
2020-02-15 20:01:48 +00:00
DocBottom(DocPut(task));
DeathWait(&task,TRUE);
}
U0 DoPick()
{
CTask *task=User;
XTalkWait(task,"#include \"::/Demo/Graphics/Pick\";\n");
MouseSet(200,200);
2020-02-15 20:01:48 +00:00
Sleep(500);
MouseSet(,,,TRUE);
InSetMouse(4,400,400);
MouseSet(,,,FALSE);
2020-02-15 20:01:48 +00:00
Sleep(500);
2020-02-15 23:56:05 +00:00
PostMessageWait(task,MESSAGE_KEY_DOWN_UP,CH_SHIFT_ESC,0);
2020-02-15 20:01:48 +00:00
DeathWait(&task,TRUE);
}
U0 DoPick3D()
{
CTask *task=User;
XTalkWait(task,"#include \"::/Demo/Graphics/Pick3D\";\n");
MouseSet(200,200);
2020-02-15 20:01:48 +00:00
Sleep(500);
MouseSet(,,,TRUE);
InSetMouse(4,400,400);
MouseSet(,,,FALSE);
2020-02-15 20:01:48 +00:00
Sleep(500);
2020-02-15 23:56:05 +00:00
PostMessageWait(task,MESSAGE_KEY_DOWN_UP,CH_SHIFT_ESC,0);
2020-02-15 20:01:48 +00:00
DeathWait(&task,TRUE);
}
U0 DoGrModels()
{
CTask *task=User;
I64 i,j,task_num=-1;
XTalkWait(task,"#include \"::/Apps/GrModels/Run\";\n");
2020-02-15 23:56:05 +00:00
PostMessageWait(task,MESSAGE_KEY_DOWN_UP,CH_SPACE,0);
PostMessage(task,MESSAGE_KEY_DOWN_UP,CH_ESC,0);
2020-02-15 20:01:48 +00:00
for (i=0;i<4;i++) {
task_num=BirthWait(&task->popup_task,task_num);
TaskWait(task->popup_task);
for (j=0;j<=i;j++)
2020-02-15 23:56:05 +00:00
PostMessageWait(task->popup_task,MESSAGE_KEY_DOWN_UP,0,SC_CURSOR_DOWN);
PostMessageWait(task->popup_task,MESSAGE_KEY_DOWN_UP,CH_SPACE,0);
2020-02-15 20:01:48 +00:00
}
Sleep(1000);
2020-02-15 23:56:05 +00:00
PostMessageWait(task,MESSAGE_KEY_DOWN_UP,'n',0);
2020-02-15 20:01:48 +00:00
DeathWait(&task,TRUE);
}
U0 DoKeepAway()
{
CTask *task=User("#include \"::/Apps/KeepAway/Run\";\n");
BirthWait(&task->popup_task);
TaskWait(task->popup_task);
2020-02-15 23:56:05 +00:00
PostMessageWait(task->popup_task,MESSAGE_KEY_DOWN_UP,CH_SPACE,0);
MouseSet(100,100);
2020-02-15 20:01:48 +00:00
Sleep(1500);
PostMessageWait(task,MESSAGE_MS_R_DOWN_UP,mouse.pos.x,mouse.pos.y);
2020-02-15 20:01:48 +00:00
Sleep(1000);
2020-02-15 23:56:05 +00:00
PostMessageWait(task,MESSAGE_KEY_DOWN_UP,CH_SHIFT_ESC,0);
2020-02-15 20:01:48 +00:00
DeathWait(&task,TRUE);
}
U0 DoRocket()
{
CTask *task=User;
XTalkWait(task,"#include \"::/Demo/Games/Rocket\";\n");
2020-02-15 23:56:05 +00:00
PostMessageWait(task,MESSAGE_KEY_DOWN_UP,0,SC_CURSOR_UP);
2020-02-15 20:01:48 +00:00
Bts(kbd.down_bitmap,SC_CURSOR_UP);
Sleep(1000);
Btr(kbd.down_bitmap,SC_CURSOR_UP);
2020-02-15 23:56:05 +00:00
PostMessageWait(task,MESSAGE_KEY_DOWN_UP,0,SC_CURSOR_RIGHT);
2020-02-15 20:01:48 +00:00
Bts(kbd.down_bitmap,SC_CURSOR_RIGHT);
Sleep(1000);
Btr(kbd.down_bitmap,SC_CURSOR_RIGHT);
Sleep(1000);
2020-02-15 23:56:05 +00:00
PostMessageWait(task,MESSAGE_KEY_DOWN_UP,CH_SHIFT_ESC,0);
2020-02-15 20:01:48 +00:00
DeathWait(&task,TRUE);
}
U0 DoRocketScience()
{
CTask *task=User("#include \"::/Demo/Games/RocketScience\";\n");
BirthWait(&task->popup_task);
TaskWait(task->popup_task);
2020-02-15 23:56:05 +00:00
PostMessageWait(task->popup_task,MESSAGE_KEY_DOWN_UP,0,SC_CURSOR_DOWN);
PostMessageWait(task->popup_task,MESSAGE_KEY_DOWN_UP,CH_SPACE,0);
2020-02-15 20:01:48 +00:00
Sleep(750);
2020-02-15 23:56:05 +00:00
PostMessageWait(task,MESSAGE_KEY_DOWN_UP,CH_SPACE,0);
2020-02-15 20:01:48 +00:00
Sleep(2000);
2020-02-15 23:56:05 +00:00
PostMessageWait(task,MESSAGE_KEY_DOWN_UP,CH_SHIFT_ESC,0);
2020-02-15 20:01:48 +00:00
DeathWait(&task,TRUE);
}
U0 DoMassSpring()
{
CTask *task=User("#include \"::/Demo/Games/MassSpring\";\n");
BirthWait(&task->popup_task);
TaskWait(task->popup_task);
2020-02-15 23:56:05 +00:00
PostMessageWait(task->popup_task,MESSAGE_KEY_DOWN_UP,CH_SPACE,0);
2020-02-15 20:01:48 +00:00
DeathWait(&task->popup_task);
2020-02-15 23:56:05 +00:00
PostMessageWait(task,MESSAGE_MS_L_DOWN_UP,50,50); //#1
PostMessageWait(task,MESSAGE_MS_L_DOWN_UP,50,200); //#2
PostMessageWait(task,MESSAGE_MS_L_DOWN_UP,210,50); //#3
PostMessageWait(task,MESSAGE_MS_L_DOWN_UP,310,200);//#4
2020-02-15 20:01:48 +00:00
Sleep(500);
2020-02-15 23:56:05 +00:00
PostMessageWait(task,MESSAGE_MS_R_DOWN,50,50); //1-2
PostMessageWait(task,MESSAGE_MS_R_UP,50,200);
2020-02-15 20:01:48 +00:00
Sleep(500);
2020-02-15 23:56:05 +00:00
PostMessageWait(task,MESSAGE_MS_R_DOWN,210,50);//3-4
PostMessageWait(task,MESSAGE_MS_R_UP,310,200);
2020-02-15 20:01:48 +00:00
Sleep(500);
2020-02-15 23:56:05 +00:00
PostMessageWait(task,MESSAGE_MS_R_DOWN,50,200);//2-4
PostMessageWait(task,MESSAGE_MS_R_UP,310,200);
2020-02-15 20:01:48 +00:00
Sleep(500);
2020-02-15 23:56:05 +00:00
PostMessageWait(task,MESSAGE_MS_R_DOWN,50,50); //1-3
PostMessageWait(task,MESSAGE_MS_R_UP,210,50);
2020-02-15 20:01:48 +00:00
Sleep(1500);
2020-02-15 23:56:05 +00:00
PostMessageWait(task,MESSAGE_KEY_DOWN_UP,CH_SHIFT_ESC,0);
2020-02-15 20:01:48 +00:00
DeathWait(&task,TRUE);
}
U0 DoSquirt()
{
I64 i;
CTask *task=User;
XTalkWait(task,"#include \"::/Demo/Games/Squirt\";\n");
for (i=0;i<5;i++) {
2020-02-15 23:56:05 +00:00
PostMessageWait(task,MESSAGE_KEY_DOWN_UP,0,SC_CURSOR_UP);
2020-02-15 20:01:48 +00:00
Sleep(100);
}
for (i=0;i<5;i++) {
2020-02-15 23:56:05 +00:00
PostMessageWait(task,MESSAGE_KEY_DOWN_UP,0,SC_CURSOR_LEFT);
2020-02-15 20:01:48 +00:00
Sleep(100);
}
for (i=0;i<5;i++) {
2020-02-15 23:56:05 +00:00
PostMessageWait(task,MESSAGE_KEY_DOWN_UP,0,SC_CURSOR_DOWN);
2020-02-15 20:01:48 +00:00
Sleep(100);
}
for (i=0;i<5;i++) {
2020-02-15 23:56:05 +00:00
PostMessageWait(task,MESSAGE_KEY_DOWN_UP,0,SC_CURSOR_RIGHT);
2020-02-15 20:01:48 +00:00
Sleep(100);
}
2020-02-15 23:56:05 +00:00
PostMessageWait(task,MESSAGE_KEY_DOWN_UP,CH_SHIFT_ESC,0);
2020-02-15 20:01:48 +00:00
DeathWait(&task,TRUE);
}
U0 DoXCaliber()
{
I64 i;
CTask *task=User;
XTalk(task,"#include \"::/Apps/X-Caliber/Run\";\n");
Sleep(100);
if(TaskValidate(task->popup_task)) {
2020-02-15 23:56:05 +00:00
PostMessageWait(task->popup_task,MESSAGE_KEY_DOWN_UP,0,SCF_CTRL|SC_CURSOR_DOWN);
PostMessageWait(task->popup_task,MESSAGE_KEY_DOWN_UP,CH_SPACE,0);
2020-02-15 20:01:48 +00:00
DeathWait(&task->popup_task);
}
for (i=0;i<5;i++) {
2020-02-15 23:56:05 +00:00
PostMessageWait(task,MESSAGE_KEY_DOWN_UP,0,SCF_SHIFT|SC_CURSOR_UP);
PostMessageWait(task,MESSAGE_KEY_DOWN_UP,0,SCF_SHIFT|SC_CURSOR_RIGHT);
2020-02-15 20:01:48 +00:00
}
for (i=0;i<10;i++) {
2020-02-15 23:56:05 +00:00
PostMessageWait(task,MESSAGE_KEY_DOWN_UP,CH_SPACE,0);
PostMessageWait(task,MESSAGE_KEY_DOWN,0,SC_CURSOR_RIGHT,0);
2020-02-15 20:01:48 +00:00
Sleep(100);
2020-02-15 23:56:05 +00:00
PostMessageWait(task,MESSAGE_KEY_UP,0,SC_CURSOR_RIGHT,0);
2020-02-15 20:01:48 +00:00
Sleep(50);
}
2020-02-15 23:56:05 +00:00
PostMessageWait(task,MESSAGE_KEY_DOWN_UP,CH_SHIFT_ESC,0);
2020-02-15 20:01:48 +00:00
DeathWait(&task,TRUE);
}
U0 DoFPS()
{
I64 i;
CTask *task=User;
XTalkWait(task,"#include \"::/Demo/Games/CastleFrankenstein\";\n");
for (i=0;i<15;i++) {
2020-02-15 23:56:05 +00:00
PostMessageWait(task,MESSAGE_KEY_DOWN_UP,0,SC_CURSOR_UP);
2020-02-15 20:01:48 +00:00
Sleep(50);
}
for (i=0;i<8;i++) {
2020-02-15 23:56:05 +00:00
PostMessageWait(task,MESSAGE_KEY_DOWN_UP,0,SC_CURSOR_RIGHT);
2020-02-15 20:01:48 +00:00
Sleep(50);
}
for (i=0;i<9;i++) {
2020-02-15 23:56:05 +00:00
PostMessageWait(task,MESSAGE_KEY_DOWN_UP,0,SC_CURSOR_UP);
2020-02-15 20:01:48 +00:00
Sleep(50);
}
for (i=0;i<6;i++) {
2020-02-15 23:56:05 +00:00
PostMessageWait(task,MESSAGE_KEY_DOWN_UP,0,SC_CURSOR_RIGHT);
2020-02-15 20:01:48 +00:00
Sleep(50);
}
2020-02-15 23:56:05 +00:00
PostMessageWait(task,MESSAGE_KEY_DOWN_UP,CH_SHIFT_ESC,0);
2020-02-15 20:01:48 +00:00
DeathWait(&task,TRUE);
}
U0 DoTalons()
{
I64 i;
CTask *task=User;
XTalkWait(task,"#include \"::/Demo/Games/Talons\";\n");
Sleep(500);
for (i=0;i<10;i++) {
2020-02-15 23:56:05 +00:00
PostMessageWait(task,MESSAGE_KEY_DOWN_UP,0,SC_CURSOR_UP);
2020-02-15 20:01:48 +00:00
Sleep(50);
}
for (i=0;i<10;i++) {
2020-02-15 23:56:05 +00:00
PostMessageWait(task,MESSAGE_KEY_DOWN_UP,0,SC_CURSOR_DOWN);
2020-02-15 20:01:48 +00:00
Sleep(50);
}
2020-02-15 23:56:05 +00:00
PostMessageWait(task,MESSAGE_KEY_DOWN_UP,CH_SHIFT_ESC,0);
2020-02-15 20:01:48 +00:00
DeathWait(&task,TRUE);
}
U0 DoPhoneNumWords()
{
CTask *task=User;
XTalkWait(task,"#include \"::/Demo/PhoneNumWords\";\n");
XTalkWait(task,"702-254-4223\n\n");
Sleep(750);
DeathWait(&task,TRUE);
}
U0 DoSuggestedSpelling()
{
CTask *task=User;
XTalkWait(task,"#include \"::/Demo/SuggestSpelling\";\n");
XTalkWait(task,"effecient\n\n");
Sleep(750);
DeathWait(&task,TRUE);
}
U0 DoFPrintF()
{
CTask *task=User;
2020-02-15 22:25:33 +00:00
XTalkWait(task,"#include \"::/Demo/Disk/FPrintF\";\n");
2020-02-15 20:01:48 +00:00
XTalkWait(task,"~/DemoFPrintF.DD");
2020-02-15 23:56:05 +00:00
PostMessageWait(task,MESSAGE_KEY_DOWN_UP,CH_ESC,0);
2020-02-15 20:01:48 +00:00
XTalkWait(task,"Type(\"~/DemoFPrintF.DD\");\n");
2020-02-15 23:56:05 +00:00
PostMessageWait(task,MESSAGE_KEY_DOWN_UP,CH_CTRLO,0);
2020-02-15 20:01:48 +00:00
XTalkWait(task,"Del(\"~/DemoFPrintF.DD*\");\n");
Sleep(500);
DeathWait(&task,TRUE);
}
U0 DoLastClass()
{
CTask *task=User;
XTalkWait(task,"#include \"::/Demo/LastClass\";\n");
Sleep(500);
2020-02-15 23:56:05 +00:00
PostMessageWait(task,MESSAGE_KEY_DOWN_UP,CH_SPACE,0);
2020-02-15 20:01:48 +00:00
Sleep(500);
2020-02-15 23:56:05 +00:00
PostMessageWait(task,MESSAGE_KEY_DOWN_UP,CH_SPACE,0);
2020-02-15 20:01:48 +00:00
Sleep(500);
DeathWait(&task,TRUE);
}
U0 DoMiniCompiler()
{
CTask *task=User;
XTalkWait(task,"#include \"::/Demo/Lectures/MiniCompiler\";\n");
XTalkWait(task,"1+2*(3+4)\n");
Sleep(750);
2020-02-15 23:56:05 +00:00
PostMessageWait(task,MESSAGE_KEY_DOWN_UP,CH_SHIFT_ESC,0);
2020-02-15 20:01:48 +00:00
DeathWait(&task,TRUE);
}
U0 DoWebLog()
{
CTask *task=User;
XTalkWait(task,"#include \"::/Demo/WebLogDemo/WebLogRep\";\n");
2020-02-15 23:56:05 +00:00
PostMessageWait(task,MESSAGE_KEY_DOWN_UP,'\n',0);
PostMessageWait(task,MESSAGE_KEY_DOWN_UP,'\n',0);
PostMessageWait(task,MESSAGE_KEY_DOWN_UP,CH_ESC,0);
2020-02-15 20:01:48 +00:00
Sleep(750);
DeathWait(&task,TRUE);
}
U0 DoRevFile()
{
CTask *task;
Del("~/DemoPoemFwd.DD*");
task=User("#include \"::/Demo/RevFileDemo/Rev\";"
"Type(\"~/DemoPoemFwd.DD\");Sleep(750);\n");
DeathWait(&task,TRUE);
}
U0 DoSortFile()
{
CTask *task=User("#include \"::/Demo/SortFileDemo/F64FileGen\";"
"#include \"::/Demo/SortFileDemo/F64FileSort\";Sleep(750);\n");
DeathWait(&task,TRUE);
}
U0 DoToHtmlToTXT()
{
CTask *task=User("#include \"::/Demo/ToHtmlToTXTDemo/HtmlGen\";"
"#include \"::/Demo/ToHtmlToTXTDemo/TXTGen\";"
"Type(\"~/DemoOutPage.TXT\");Sleep(750);\n");
DeathWait(&task,TRUE);
}
U0 DoLogic()
{
CTask *task=User;
XTalkWait(task,"#include \"::/Apps/Logic/Run\";\n");
XTalkWait(task,"NAND\nNOR\n\n0x100\n0xF0\n0xCC\n0xAA\n\n0x12\n\n");
Sleep(750);
2020-02-15 23:56:05 +00:00
PostMessageWait(task,MESSAGE_KEY_DOWN_UP,CH_SPACE,0);
2020-02-15 20:01:48 +00:00
DeathWait(&task,TRUE);
}
U0 DoPrompt()
{
CTask *task=User;
XTalkWait(task,"#include \"::/Demo/Prompt\";\n");
XTalkWait(task,"1+2*3<<4\n");
XTalkWait(task,"1.0+2*3`2\n");
XTalkWait(task,"Terry Davis\n");
XTalkWait(task,"*-1\n");
Sleep(750);
2020-02-15 23:56:05 +00:00
PostMessageWait(task,MESSAGE_KEY_DOWN_UP,CH_SPACE,0);
2020-02-15 20:01:48 +00:00
DeathWait(&task,TRUE);
}
U0 DoNumBible()
{
CTask *task=User;
XTalkWait(task,"#include \"::/Demo/DolDoc/NumBible\";\n");
Del("~/DemoNumBible.DD*");
DeathWait(&task,TRUE);
}
U0 DoForm()
{
CTask *task=User;
XTalkWait(task,"#include \"::/Demo/DolDoc/Form\";\n");
Sleep(250);
XTalk(task,"54321");
Sleep(250);
2020-02-15 23:56:05 +00:00
PostMessageWait(task,MESSAGE_KEY_DOWN_UP,0,SC_CURSOR_DOWN);
2020-02-15 20:01:48 +00:00
Sleep(250);
2020-02-15 23:56:05 +00:00
PostMessageWait(task,MESSAGE_KEY_DOWN_UP,0,SCF_CTRL|SC_CURSOR_LEFT);
2020-02-15 20:01:48 +00:00
XTalk(task,"77777");
Sleep(250);
2020-02-15 23:56:05 +00:00
PostMessageWait(task,MESSAGE_KEY_DOWN_UP,0,SC_CURSOR_DOWN);
PostMessageWait(task,MESSAGE_KEY_DOWN_UP,0,SC_CURSOR_DOWN);
PostMessageWait(task,MESSAGE_KEY_DOWN_UP,0,SC_CURSOR_DOWN);
PostMessageWait(task,MESSAGE_KEY_DOWN_UP,0,SC_CURSOR_DOWN);
2020-02-15 20:01:48 +00:00
Sleep(250);
XTalk(task,"MyName");
Sleep(750);
2020-02-15 23:56:05 +00:00
PostMessageWait(task,MESSAGE_KEY_DOWN_UP,CH_ESC,0);
2020-02-15 20:01:48 +00:00
Sleep(750);
DeathWait(&task,TRUE);
}
U0 DoClickCallBack()
{
I64 i;
CTask *task=User("#include \"::/Demo/DolDoc/ClickCallBack\";\n");
for (i=0;i<3;i++) {
BirthWait(&task->popup_task);
TaskWait(task->popup_task);
2020-02-15 23:56:05 +00:00
PostMessageWait(task->popup_task,MESSAGE_KEY_DOWN_UP,CH_SPACE,0);
2020-02-15 20:01:48 +00:00
Sleep(250);
}
Sleep(500);
DeathWait(&task,TRUE);
}
U0 DoMenuBttn()
{
CTask *task=User;
XTalkWait(task,"#include \"::/Demo/DolDoc/MenuBttn\";\n");
2020-02-15 23:56:05 +00:00
PostMessageWait(task,MESSAGE_KEY_DOWN_UP,CH_SPACE,0);
2020-02-15 20:01:48 +00:00
Sleep(500);
2020-02-15 23:56:05 +00:00
PostMessageWait(task,MESSAGE_KEY_DOWN_UP,0,SC_CURSOR_DOWN,0);
2020-02-15 20:01:48 +00:00
Sleep(500);
2020-02-15 23:56:05 +00:00
PostMessage(task,MESSAGE_KEY_DOWN_UP,CH_SPACE,0);
2020-02-15 20:01:48 +00:00
BirthWait(&task->popup_task);
TaskWait(task->popup_task);
Sleep(500);
2020-02-15 23:56:05 +00:00
PostMessageWait(sys_focus_task,MESSAGE_KEY_DOWN_UP,0,SC_CURSOR_RIGHT);
2020-02-15 20:01:48 +00:00
Sleep(500);
2020-02-15 23:56:05 +00:00
PostMessageWait(task->popup_task,MESSAGE_KEY_DOWN_UP,CH_SPACE,0);
2020-02-15 20:01:48 +00:00
DeathWait(&task->popup_task);
Sleep(750);
2020-02-15 23:56:05 +00:00
PostMessageWait(task,MESSAGE_KEY_DOWN_UP,CH_SHIFT_ESC,0);
2020-02-15 20:01:48 +00:00
DeathWait(&task,TRUE);
}
U0 DoMenuSprite()
{
CTask *task=User;
XTalkWait(task,"#include \"::/Demo/DolDoc/MenuSprite\";\n");
2020-02-15 23:56:05 +00:00
PostMessageWait(task,MESSAGE_KEY_DOWN_UP,0,SC_CURSOR_DOWN,0);
2020-02-15 20:01:48 +00:00
Sleep(50);
2020-02-15 23:56:05 +00:00
PostMessageWait(task,MESSAGE_KEY_DOWN_UP,CH_SPACE,0);
2020-02-15 20:01:48 +00:00
Sleep(300);
2020-02-15 23:56:05 +00:00
PostMessageWait(task,MESSAGE_KEY_DOWN_UP,0,SC_CURSOR_DOWN,0);
2020-02-15 20:01:48 +00:00
Sleep(50);
2020-02-15 23:56:05 +00:00
PostMessageWait(task,MESSAGE_KEY_DOWN_UP,0,SC_CURSOR_DOWN,0);
2020-02-15 20:01:48 +00:00
Sleep(50);
2020-02-15 23:56:05 +00:00
PostMessageWait(task,MESSAGE_KEY_DOWN_UP,CH_SPACE,0);
2020-02-15 20:01:48 +00:00
Sleep(300);
2020-02-15 23:56:05 +00:00
PostMessageWait(task,MESSAGE_KEY_DOWN_UP,CH_SHIFT_ESC,0);
2020-02-15 20:01:48 +00:00
DeathWait(&task,TRUE);
}
U0 DoExceptions()
{
CTask *task=User;
XTalkWait(task,"#include \"::/Demo/Exceptions\";\n");
XTalkWait(task,"yy");
Sleep(750);
DeathWait(&task,TRUE);
}
U0 DoDemoDoc()
{
CTask *task=User;
XTalkWait(task,"Ed(\"::/Demo/DolDoc/DemoDoc.DD\");\n");
2020-02-15 23:56:05 +00:00
PostMessageWait(task,MESSAGE_KEY_DOWN_UP,CH_CTRLG,0);
2020-02-15 20:01:48 +00:00
XTalkWait(task,"100");
2020-02-15 23:56:05 +00:00
PostMessageWait(task,MESSAGE_KEY_DOWN_UP,CH_ESC,0);
2020-02-15 20:01:48 +00:00
Sleep(750);
2020-02-15 23:56:05 +00:00
PostMessageWait(task,MESSAGE_KEY_DOWN_UP,CH_SHIFT_ESC,0);
2020-02-15 20:01:48 +00:00
DeathWait(&task,TRUE);
}
U0 DoFileRead()
{
CTask *task=User;
XTalkWait(task,"#include \"::/Demo/DolDoc/FileRead\";\n");
Sleep(750);
2020-02-15 23:56:05 +00:00
PostMessageWait(task,MESSAGE_KEY_DOWN_UP,CH_SPACE,0);
2020-02-15 20:01:48 +00:00
Sleep(750);
2020-02-15 23:56:05 +00:00
PostMessageWait(task,MESSAGE_KEY_DOWN_UP,CH_SPACE,0);
2020-02-15 20:01:48 +00:00
DeathWait(&task,TRUE);
}
U0 DoDefine()
{
CTask *task=User;
XTalkWait(task,"#include \"::/Demo/Define\";\n");
XTalkWait(task,"YS\n");
Sleep(750);
DeathWait(&task,TRUE);
}
U0 DoAsmAndC1()
{
CTask *task=User;
XTalkWait(task,"#include \"::/Demo/Asm/AsmAndC1\";\n2\n");
DeathWait(&task,TRUE);
}
U0 DoAsmAndC2()
{
CTask *task=User;
XTalkWait(task,"#include \"::/Demo/Asm/AsmAndC2\";\n2\n");
DeathWait(&task,TRUE);
}
U0 OSTestSuite()
{
CTask *task;
ts_t0=tS;
ts_i=0;
TS("BlackDiamond"); DoBlackDiamond;
TS("Talons"); DoTalons;
TS("FlatTops"); DoFlatTops;
TS("DunGen"); DoDunGen;
TS("FPS"); DoFPS;
TS("ZoneOut"); DoZoneOut;
TS("Varoom"); DoVaroom;
TS("Rocket"); DoRocket;
TS("RocketScience"); DoRocketScience;
TS("BattleLines"); DoBattleLines;
TS("BigGuns"); DoBigGuns;
TS("FlapBat"); DoFlapBat;
2020-02-15 21:11:16 +00:00
// TS("Titanium"); DoTitanium;
2020-02-15 20:01:48 +00:00
TS("ToTheFront"); DoToTheFront;
TS("Psalmody"); DoPsalmody;
TS("JukeBox"); DoJukeBox;
TS("Span"); if (!sys_heap_init_flag) DoSpan; //Has FloodFill
2020-02-15 22:25:33 +00:00
// TS("Strut"); DoStrut;
2020-02-15 20:01:48 +00:00
TS("RawHide"); DoRawHide;
TS("KeepAway"); DoKeepAway;
TS("XCaliber"); DoXCaliber;
TS("Wenceslas"); DoWenceslas;
TS("BomberGolf"); DoBomberGolf;
TS("TheDead"); DoTheDead;
TS("TreeCheckers"); DoTreeCheckers;
TS("RadixDort"); TSFile("::/Demo/RadixSort");
TS("MPAdd"); DoMPAdd;
TS("Primes"); TSFile("::/Demo/MultiCore/Primes");
TS("Palindrome"); if (FileFind(BIBLE_FILENAME))
TSFile("::/Demo/MultiCore/Palindrome");
2020-02-16 00:20:04 +00:00
TS("MPRadix"); if (mp_count>1) TSFile("::/Demo/MultiCore/MPRadix");
TS("LoadTest"); if (mp_count>1 && DriveIsWritable(':'))
2020-02-15 20:01:48 +00:00
TSFileChar("::/Demo/MultiCore/LoadTest");
2020-02-16 00:20:04 +00:00
TS("MPPrint"); if (mp_count>1) TSFile("::/Demo/MultiCore/MPPrint");
TS("Lock"); if (mp_count>1) TSFile("::/Demo/MultiCore/Lock");
TS("Interrupts"); if (mp_count>1) TSFile("::/Demo/MultiCore/Interrupts");
2020-02-15 20:01:48 +00:00
TS("SpritePlot"); TSFileChar("::/Demo/Graphics/SpritePlot");
TS("Elephants"); TSFileChar("::/Demo/Graphics/Elephant",,CH_SHIFT_ESC);
TS("SpritePlot3D"); TSFileChar("::/Demo/Graphics/SpritePlot3D");
TS("SpritePut"); TSFile("::/Demo/Graphics/SpritePut");
TS("SpritePutExt"); TSFile("::/Demo/Graphics/SpritePutExt");
TS("SpriteText"); TSFile("::/Demo/Graphics/SpriteText");
TS("SpriteRaw"); TSFile("::/Demo/Graphics/SpriteRaw");
TS("EdSprite"); TSFile("::/Demo/Graphics/EdSprite");
TS("Balloon"); TSFile("::/Demo/Graphics/Balloon",0);
TS("Carry"); TSFile("::/Demo/Carry");
TS("Directives"); TSFile("::/Demo/Directives");
TS("RandDemo"); DoRandDemo;
TS("Extents"); TSFileChar("::/Demo/Graphics/Extents");
TS("NetOfDots"); TSFileChar("::/Demo/Graphics/NetOfDots");
TS("SunMoon"); TSFileChar("::/Demo/Graphics/SunMoon");
TS("LowPassFilter"); DoLowPassFilter;
TS("MathAudioDemo"); DoMathAudioDemo;
TS("Lines"); TSFileChar("::/Demo/Graphics/Lines");
TS("Bounce"); TSFileChar("::/Demo/Graphics/Bounce",,CH_SHIFT_ESC,FALSE);
2020-02-15 23:56:05 +00:00
TS("MessageLoop"); DoMessageLoop;
2020-02-15 20:01:48 +00:00
TS("ASCIIOrgan"); DoASCIIOrgan;
TS("MorseCode"); DoMorseCode;
TS("PixCollision"); DoPixCollision;
TS("Doodle"); DoDoodle;
TS("MassSpring"); DoMassSpring;
TS("SpeedLine"); DoSpeedLine;
TS("KeyBitMap"); DoKeyBitMap;
TS("BSpline"); DoBSpline;
TS("GrModels"); DoGrModels;
TS("Blot"); TSFileChar("::/Demo/Graphics/Blot",1800);
2020-02-15 23:19:08 +00:00
TS("ScreenCapture"); if (DriveIsWritable('~')) DoScreenCapture;
2020-02-15 20:01:48 +00:00
TS("Grid"); DoGrid;
TS("Pick"); DoPick;
TS("Pick3D"); DoPick3D;
TS("Whap"); DoWhap;
TS("Palette"); DoPalette;
TS("Print"); TSFile("::/Demo/Print");
TS("Shading"); TSFileChar("::/Demo/Graphics/Shading",1500);
TS("RotateTank"); TSFileChar("::/Demo/Graphics/RotateTank",1500);
TS("3DPoly"); TSFileChar("::/Demo/Graphics/3DPoly",1500);
TS("Box"); TSFileChar("::/Demo/Graphics/Box",1500);
TS("Symmetry"); DoSymmetry;
TS("Shadow"); TSFileChar("::/Demo/Graphics/Shadow",1500);
TS("Transform"); TSFileChar("::/Demo/Graphics/Transform",,CH_SHIFT_ESC);
TS("LightTable"); DoLightTable;
TS("PredatorPrey"); DoPredatorPrey;
TS("PoleZeros"); DoPoleZeros;
TS("Digits"); DoDigits;
TS("Stadium"); DoStadium;
TS("ElephantWalk"); DoElephantWalk;
TS("Halogen"); DoHalogen;
TS("Maze"); TSFileChar("::/Demo/Games/Maze",,CH_SHIFT_ESC);
TS("FontEd"); TSFileChar("::/Demo/Graphics/FontEd",,CH_SHIFT_ESC);
TS("Lattice"); DoLattice;
TS("CtrlR1"); DoCtrlR1;
TS("F2Macro"); DoF2Macro;
TS("SubIntAccess"); TSFile("::/Demo/SubIntAccess");
TS("DemoDoc"); DoDemoDoc;
TS("TreeDemo"); TSFile("::/Demo/DolDoc/TreeDemo");
TS("TextDemo"); TSFile("::/Demo/DolDoc/TextDemo");
TS("CursorMove"); TSFile("::/Demo/DolDoc/CursorMove");
TS("MiniCompiler"); DoMiniCompiler;
TS("MiniGrLib"); TSFile("::/Demo/Lectures/MiniGrLib",0);
TS("TimeIns"); TSFileChar("::/Demo/TimeIns");
TS("PhoneNumWords"); DoPhoneNumWords;
2020-02-15 22:25:33 +00:00
TS("UnusedSpaceRep"); TSFile("::/Demo/Disk/UnusedSpaceRep");
TS("BlkDevRep"); TSFile("::/Demo/Disk/BlkDevRep");
2020-02-15 20:01:48 +00:00
TS("LastClass"); DoLastClass;
2020-02-15 22:53:02 +00:00
TS("FPrintF"); if (DriveIsWritable('~')) DoFPrintF;
2020-02-15 22:25:33 +00:00
TS("SerializeTree"); TSFile("::/Demo/Disk/SerializeTree");
2020-02-15 20:01:48 +00:00
TS("Exceptions"); DoExceptions;
2020-02-15 23:19:08 +00:00
TS("ScreenDCodes"); TSFileChar("::/Demo/ScreenCodes");
2020-02-15 20:01:48 +00:00
TS("ExtChars"); TSFile("::/Demo/ExtChars");
TS("PanText"); TSFile("::/Demo/Graphics/PanText",0);
TS("CharAnimation"); TSFile("::/Demo/Graphics/CharAnimation");
TS("CharDemo"); DoCharDemo;
TS("DateTime"); TSFile("::/Demo/DateTime");
TS("SubSwitch"); TSFile("::/Demo/SubSwitch");
TS("NullCase"); TSFile("::/Demo/NullCase");
TS("Magicpairs"); TSFile("::/Demo/MagicPairs");
TS("Hanoi"); TSFileChar("::/Demo/Graphics/Hanoi",3000);
TS("Squirt"); DoSquirt;
TS("CommonAncestor");
TSFileChar("::/Demo/Graphics/CommonAncestor",1500,CH_SHIFT_ESC);
TS("Cartesian"); DoCartesian;
TS("RainDrops"); TSFileChar("::/Demo/Games/RainDrops",,CH_SHIFT_ESC);
TS("Collision"); TSFileChar("::/Demo/Games/Collision",1500);
TS("Logic"); DoLogic;
TS("CompileDemo"); TSFile("::/Demo/CompileDemo");
TS("Prompt"); DoPrompt;
2020-02-15 22:53:02 +00:00
TS("WebLog"); if (DriveIsWritable('~')) DoWebLog;
TS("RevFile"); if (DriveIsWritable('~')) DoRevFile;
TS("SortFile"); if (DriveIsWritable('~')) DoSortFile;
TS("ToHtmlToTXT"); if (DriveIsWritable('~')) DoToHtmlToTXT;
TS("RegistryDemo"); if (DriveIsWritable('~'))
2020-02-15 20:01:48 +00:00
TSFile("::/Demo/RegistryDemo");
TS("Define"); DoDefine;
2020-02-16 00:09:08 +00:00
TS("GlobalVars"); TSFile("::/Demo/GlobalVars");
2020-02-15 20:01:48 +00:00
TS("FileRead"); DoFileRead;
TS("ParenWarn"); TSFile("::/Demo/ParenWarn");
TS("DefineStr"); TSFile("::/Demo/DolDoc/DefineStr");
TS("Data"); TSFile("::/Demo/DolDoc/Data");
TS("CallBack"); TSFile("::/Demo/DolDoc/CallBack");
TS("ClassMeta"); TSFile("::/Demo/ClassMeta");
2020-02-15 22:53:02 +00:00
TS("NumBible"); if (DriveIsWritable('~')) DoNumBible;
2020-02-15 20:01:48 +00:00
TS("Form"); DoForm;
TS("ClickCallBack"); DoClickCallBack;
TS("MenuBttn"); DoMenuBttn;
TS("MenuSprite");DoMenuSprite;
TS("SuggestedSpelling"); DoSuggestedSpelling;
TS("WordSearch"); TSFileChar("::/Demo/WordSearch");
2020-02-16 01:19:05 +00:00
TS("StackGrow"); TSFile("::/Demo/StackGrow");
2020-02-15 20:01:48 +00:00
TS("MemDemo"); TSFile("::/Demo/MemDemo");
2020-02-16 00:49:37 +00:00
TS("WaterFowl"); TSFileChar("::/Demo/Sound/WaterFowl");
2020-02-15 20:01:48 +00:00
TS("AsmHelloWorld"); TSFile("::/Demo/Asm/AsmHelloWorld");
TS("AsmAndC1"); DoAsmAndC1;
TS("AsmAndC2"); DoAsmAndC2;
TS("AsmAndC3"); TSFile("::/Demo/Asm/AsmAndC3");
TS("MulByHand"); TSFile("::/Demo/Asm/MulByHand");
TS("DivByHand"); TSFile("::/Demo/Asm/DivByHand");
TS("BuzzFizz"); TSFile("::/Demo/Asm/BuzzFizz");
TS("PutDec"); TSFile("::/Demo/Asm/PutDec");
task=User;
TS("Prof"); XTalkWait(task,"DocMax;Prof;HeapLog(ON);\n");
TS("PCIRep"); XTalkWait(task,"PCIRep;Sleep(750);\n");
TS("MemBIOSRep"); XTalkWait(task,"MemBIOSRep;Sleep(750);\n");
TS("MemPageRep"); XTalkWait(task,"MemPageRep;Sleep(750);\n");
TS("MemRep"); XTalkWait(task,"MemRep;Sleep(750);\n");
TS("ZipRep"); XTalkWait(task,"ZipRep;Sleep(750);\n");
TS("ProfRep"); XTalkWait(task,"ProfRep;Sleep(750);\n");
TS("HeapLogSizeRep"); XTalkWait(task,"HeapLogSizeRep;Sleep(750);\n");
2020-02-16 00:20:04 +00:00
TS("CPURep"); if (mp_count>1)
2020-02-15 20:01:48 +00:00
XTalkWait(task,"CPURep(TRUE);Sleep(750);\n");
2020-02-15 22:53:02 +00:00
TS("DiskCheck"); if (DriveIsWritable(':'))
2020-02-15 22:25:33 +00:00
XTalkWait(task,"DiskCheck;Sleep(750);\n");
2020-02-15 22:53:02 +00:00
TS("DriveView"); if (DriveIsWritable(':')) {
XTalkWait(task,"DriveView;\n");
2020-02-15 20:01:48 +00:00
Sleep(750);
2020-02-15 23:56:05 +00:00
PostMessageWait(task,MESSAGE_KEY_DOWN_UP,CH_SPACE,0);
2020-02-15 20:01:48 +00:00
}
2020-02-15 22:53:02 +00:00
TS("DiskView"); if (DriveIsWritable(':')) {
2020-02-15 22:25:33 +00:00
XTalkWait(task,"DiskView;\n");
2020-02-15 20:01:48 +00:00
Sleep(250); //Short because ATARep takes time.
2020-02-15 23:56:05 +00:00
PostMessageWait(task,MESSAGE_KEY_DOWN_UP,CH_SPACE,0);
2020-02-15 20:01:48 +00:00
}
TS("ATARep"); XTalkWait(task,"ATARep;\npSleep(750);\n");
TS("HashDepthRep"); XTalkWait(task,
2020-02-15 22:25:33 +00:00
"HashDepthRep(zenith_task->hash_table);Sleep(750);\n");
2020-02-15 20:01:48 +00:00
TS("Who"); XTalkWait(task,"Who;Sleep(750);\n");
2020-02-15 22:53:02 +00:00
TS("DriveRep"); XTalkWait(task,"DriveRep;Sleep(750);\n");
2020-02-15 20:01:48 +00:00
TS("TaskRep"); XTalkWait(task,"TaskRep;Sleep(750);\n");
DeathWait(&task,TRUE);
2020-02-16 00:54:39 +00:00
ProgressBarsReset("ZenithOS/OSTestSuite");
2020-02-15 20:01:48 +00:00
"Elapsed Time:%5.3f\n",tS-ts_t0;
}
OSTestSuite;