CompressBitmap -
CurTime -
GetScreen - Convert to Grayscale
IntToByteStr -
IsValidMessage -
MsgLen -
TrimFirstMsg -
UnCompressBitmap - clDefault is a LOT faster than clMax
TViewMode
MSG_CLICK
MSG_COMP_MODE
MSG_DIRECTORY
MSG_DRAG
MSG_FILE
MSG_FOCUS_SERVER
MSG_KEYS
MSG_LOGON
MSG_PRIORITY_MODE
MSG_REFRESH
MSG_SCREEN_UPDATE
MSG_SEVER_DELAY
MSG_STAT_MSG
MSG_VIEW_MODE
REM_CON_PASSWORD
procedure CompressBitmap(bmp: TBitmap; var Data: string);
function CurTime: string;
procedure GetScreen(var bmp: TBitmap; ViewMode: TViewMode);
Convert to Grayscale
function IntToByteStr(Value: integer): string;
function IsValidMessage(const Msg: string): boolean;
function MsgLen(const Msg: string): integer;
function TrimFirstMsg(var Msg: string): string;
procedure UnCompressBitmap(const Data: string; bmp: TBitmap);
clDefault is a LOT faster than clMax
TViewMode = (vmColor4, vmGray4, vmGray8, vmColor24, vmDefault);
Server Thread Priority Data = Priority (integer
MSG_CLICK = 4
Server sends client a screen update Data = Compressed BMP (to XOR
MSG_COMP_MODE = 13
Generic Status Msg Data = Status Message (string
MSG_DIRECTORY = 7
Send keystrokes Data = KeyCode(s
MSG_DRAG = 5
Mouse click (single or double, left or right) Data = X, Y, Single (1) / Double (2), Left (1) / Right (2
MSG_FILE = 8
Request a directory Data = File Stringlist (dirs end in "\"), Size StringList, Date/Time StringList
MSG_FOCUS_SERVER = 10
Set the amount of time the server should wait before sending back the screen image Data = Delay in milliseconds
MSG_KEYS = 6
Mouse drag Data = Left (1) / Right (2), Num Pts, X/Y/time sets
MSG_LOGON = 1
Messages All numbers are 4-byte integers Strings include a null terminating zero
MSG_PRIORITY_MODE = 14
Screen Compression Mode Data = CompMode (TCompressionLevel as integer
MSG_REFRESH = 2
Client logs on to the server Data = password
MSG_SCREEN_UPDATE = 3
Client wants the entire screen Data = Compressed BMP
MSG_SEVER_DELAY = 9
Request a file Data = File Contents
MSG_STAT_MSG = 12
Set the view mode for the graphics Data = View Mode (TViewMode as integer
MSG_VIEW_MODE = 11
To restore & focus the Server Window
REM_CON_PASSWORD = 'Remote Control Password'