MISCELLANEOUS

 

Wait

Freezes the program for a wanted amount of time. The time is measured in milliseconds, so 1000 means 1 second.

Usage:

Wait time

 

SetWindow

Sets window properties. Used mainly to change its caption.

Usage:

SetWindow Caption$ [, mode][, ExitQuestion$]

 

MakeError

Creates an error message and end the program immediately.

Usage:

MakeError message$

 

SaveProgram

This command does not work properly, and will become obsolete shortly.

 

LoadProgram

This command does not work properly, and will become obsolete shortly.

 

GotoSavedLocation

This command does not work properly, and will become obsolete shortly.

 

FrameLimit

Sets the max frames per seconds of the game. This will limit speed, and prevents faster machines from outperforming. Zero will disable limit.

Usage:

FrameLimit maxFPS

 

Encrypt

You can cross-crypt data files->files, files->memory, memory->files or memory->memory with a password.

Usage:

EnCrypt in, out, password$

 

DeCrypt

See Encrypt. This is the same, and used alike, but for decrypting.

Usage:

DeCrypt in, out, password$

 

CallDLL

Usage:

CallDLL DllName$, functionName$ [, memIn] [, memOut]

 

Errors

Switch error messages ON/OFF. Defaults ON.

Usage:

Errors ON/OFF

 

Date

Tells the system date. String.

Example:

Print Date()

 

Time

Tells the system time. String.

Example:

Print Time()

 

Timer

Tells the time elapsed since Windows start. The time is measured in milliseconds.

Example:

Repeat

    Text 0,0,"Seconds "+sec

    If Timer()>nSec+1000 Then nSec=Timer():sec+1

    DrawScreen

Until EscapeKey()

 

CommandLine

If the program was launched from command line, this tells what parameters were passed.

Usage:

cmLn$ = CommandLine()

 

GetEXEName

Example:

Print GetEXEName()

WaitKey

 

FPS

Returns the number of frames drawn by DrawScreen per second. This reflects game performance (unless it's limited with FrameLimit).

Usage:

perf = FPS()

 

Crc32

Returns a 4-byte CRC-fingerprint of a file or memory data (memblock). You can use this to ensure no data as been corrupted or poked by someone in hacking purposes.

Usage:

result = CRC32(file_varilable/mem_variable)