14.11.2014 Views

POISE-SkyLite User Guide - Palmer College of Chiropractic, Intranet ...

POISE-SkyLite User Guide - Palmer College of Chiropractic, Intranet ...

POISE-SkyLite User Guide - Palmer College of Chiropractic, Intranet ...

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

CHAPTER 4<br />

ADVANCED SKYLITE<br />

Macro Commands<br />

The following macro language commands are available:<br />

Command Description Example<br />

CALL<br />

Calls a (previously defined) procedure.<br />

DELAY,<br />

DELAYTILL<br />

Delays a set number <strong>of</strong> seconds, or until a<br />

specified time.<br />

DELAY 5<br />

DIM Declares a variable as INTEGER or REAL. DIM A AS INTEGER.<br />

DO (WHILE) ...<br />

LOOP<br />

END<br />

EXIT<br />

Starts a program loop, continuing while the<br />

WHILE condition holds, exited when WHILE<br />

condition is fulfilled.<br />

Stops a macro.<br />

Exits from the current loop or IF statement.<br />

For example, to exit a FOR loop.<br />

LET A=10<br />

DO WHILE A>=2<br />

LET A=A-1<br />

PRINT A<br />

LOOP<br />

EXIT FOR<br />

FOR ... NEXT Creates a loop <strong>of</strong> a specific duration. FOR i = 1 TO 10<br />

GOTO<br />

Transfers control to a part <strong>of</strong> a program with a L20: : PRINT A<br />

predefined label.<br />

GOTO L20<br />

IF ... THEN ...<br />

ELSEIF<br />

LET<br />

Specifies one or more actions to take if a<br />

condition is fulfilled.<br />

Assigns a value to a variable. Variables must be<br />

declared with DIM before being assigned.<br />

DIM A AS INTEGER<br />

LET A = 5<br />

PASSKEYS Suspends macro processing to allow the user<br />

to enter keystrokes to the host.<br />

PRINT<br />

Prints a text message to the host, the session PRINT “HELLO”<br />

screen, or the status bar.<br />

REM Used for code comments. REM This will<br />

automatically log<br />

you on to a host<br />

SELECT<br />

Selects alternative actions based on specified<br />

conditions.<br />

SENDTERM Sends text to the host. SENDTERM PASSWORD,<br />

CHR$(13)<br />

SEND, SENDWIN Sends special characters to the host, or to the<br />

currently active Windows application.<br />

WAIT (TIMEOUT) Waits for a host response (optionally, for a WAIT TIMEOUT 20<br />

maximum timeout period).<br />

WHILE ... WEND Specifies a loop containing one or more DIM B AS INTEGER<br />

instructions to be carried out while a condition WHILE B >=1<br />

holds.<br />

PRINT B<br />

LET B = B-1<br />

WEND<br />

<strong>POISE</strong>-<strong>SkyLite</strong> <strong>User</strong> <strong>Guide</strong> 53

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!