Displaypicture; Playsound; Rand - Omron CX-Supervisor Reference Manual

Script language reference
Hide thumbs Also See for CX-Supervisor:
Table of Contents

Advertisement

General Commands
6-3-3

DisplayPicture

6-3-4

PlaySound

6-3-5

Rand

56
Typical Example
PlayOLE("ole_1",0)
The object 'ole_1' is played using its primary verb.
Description
Reload a picture for a Picture object.
Syntax
returnstate = DisplayPicture("objectname", filename)
Remarks
Argument
Type
returnstate
bool
objectname
string
filename
string
Typical Example
DisplayPicture("Bitmap_1","C:\Application\Floorplan1.
bmp")
The object "Bitmap_1" will load and display the Floorplan1 bitmap.
DisplayPicture("Bitmap_2", txtFileName)
The object "Bitmap_2" will load and display the file name stored in txtFileName
text point.
Description
Plays a Windows .WAV sound file using the standard Windows sound channel
and Sound Card driver.
Syntax
returnstate = PlaySound("soundfile")
Remarks
Argument
Type
returnstate
bool
soundfile
string
Typical Example
PlaySound("c:\noise.wav")
The soundfile "c:\noise.wav" is played.
Description
Returns a random integer, between 0 and the specified limit.
Syntax
SECTION 6 Functions and Methods
Description
Returnstate is '1' if the function is successful, or
'0' otherwise.
The identifier of the bitmap object with a to be
loaded and displayed
The filename of the bitmap to be displayed.
This can be a constant (inside quotes) or a text
point.
Description
Returnstate is '1' if the function is successful, or
'0' otherwise.
Path of sound file to be played.

Advertisement

Table of Contents
loading

This manual is also suitable for:

Cx-supervisor 3.1

Table of Contents