Home Page
My Site
Photo Gallery
Photos
My Blog
WinScript
EMail

WinScript: Built-in Functions

NameArgs[Opt]Description
array
deldupl1 Return array without duplicate entries (source array must be sorted!)
field2 Get column y in array x
flat1 Make flat array from multidimentsioned array x
names1 Get array of names from vector x
redim2 Redimenstion flat array x to dimension vector y
reverse1 Reverse array x
select2 Search in vector of array x according to mask y
sum1 Sum of array x
sumby2 Sum of column y in array x
cgi
cgi  Get CGI-object
cgi_charset-1 Set/Get CGI charset
cgi_cookies  Get CGI-cookies
cgi_out  Open CGI output
cgi_query  Get CGI-query (QUERY_STRING)
escape1 Escape 8-bit characters in string x (unicode for IE4 or ASCII for others)
escape_a-1 Escape 8-bit characters in string x (ASCII version)
escape_u-1 Escape 8-bit characters in string x (unicode version)
ie4  Is USER_AGENT is IE4 ?
make_cgi_query1 Make CGI-query
parse_cgi_query1 Parse CGI-query
unescape1 Unescape string x
color
black  Make black color
blue  Make blue color
cyan  Make cyan color
gray  Make gray color
green  Make green color
magenta  Make magenta color
red  Make red color
rgb3 Make color value red=x,green=y,blue=z
white  Make white color
yellow  Make yellow color
conv
bool1 Convert value to boolean.
color1 Make color value from argument x
int1 Convert value to integer.
real1 Convert value to real.
string1 Convert value to string.
cpp
cpp1 Load CPP file.
cpplex1 Load CPP file as lexem container.
date
date1 Convert value to date, use 'dd/mm/yy hh:ss' format
dateof1 returns date part
gmt  Returns current Greenwich mean time (GMT).
local2time1 Convert local time to system time
mkdate34Build date from arguments: year,month,day,[hour,min,sec,ms]
now  Returns current date/time.
time2local1 Convert system time to local time
unix_date1 Convert unix time value to date.
utc  Returns current Coordinated Universal Time (UTC).
dbf
create_dbf2 Create dbf-file object with path=x, y=structure
dbf-1 Open dbf-file object with path=x, y=write access (bool)
dll
dll1 Load dynamic library x
file-io
fork2 Create fork object
log1 Create log-file object
out  Create std-output object
text1 Create text-file object
files
cd1 Change directory
dir  List current directory
disk1 Create disk object
file1 Create file object (or directory)
file_gif1 Create gif_file object
file_jpe1 Create jpeg_file object
file_jpeg1 Create jpeg_file object
file_jpg1 Create jpeg_file object
mkdir1 Create directory
pwd  Get current directory
rmdir1 Remove directory
search_path1 Find file in PATH
graphics
bitmap3 Create drawable bitmap object with width=x, height=y, bits per pixel=z (one of 1,4,8,16,24,32)
brush1 Create GDI solid brush object with color=x
font3 Create GDI font object with face=x, size=y, color=z
pen1 Create GDI solid pen object with color=x
html
anchor-1 Set anchor tag with url=y (with optional query z) around x (obsolete)
bold1 Set bold tag to string x (obsolete)
email2 Set anchor tag 'mailto:' x:full name, y:e-mail (obsolete)
ital1 Set italic tag to string x (obsolete)
para1 Set paragraph tag around string x (obsolete)
tag2 Set tag y around x (obsolete)
tagsubstr3 Set tag z around substring y in string x
undl1 Set underline tag to string x (obsolete)
info
class_info  All descriptions of classes (static members)
dump-1 Dump value
func_info  All descriptions of functions (base unit)
is_array1 Is argument an array
is_object1 Is argument an object
method_info1 Returns value methods information
prop_info1 Returns value properties information
string_type1 Looks at the argument and returns 'int','real' or 'string'
type_info1 Returns info string of type of value
type_name1 Returns name of type of value
unit_info  All descriptions of functions (all units)
ini
ini1 Create ini-file object
lang
buf  Create buffer object
clear  Clear global variables
error  Get last error message
eval1 Execute string
object-1 Create an object
stack  Get stack object
throw1 Throw an exception with message x
unit1 Include program unit
math
abs1 Absolute value of x
arccos1 Calculates the arc cosine of x.
arcsin1 Calculates the arc sine of x.
arctg1 Calculates the arc arc tangent of x.
arctg22 Calculates the arc tangent of y/x
ceil1 The smallest integer not less than x (returns real)
cos1 Calculates the cosine of x. Angles are specified in radians.
cosh1 Calculates hyperbolic cosine of x.
e  The value of 'e'
exp1 Calculates the exponential e to the x.
floor1 The largest integer not greater than x (returns real)
lg1 Calculates the base 10 logarithm of x.
ln1 Calculates the natural logarithm of x.
pi  The value of 'pi'
rand  Generates pseudorandom number.
remainder2 Remainder from x/y
sin1 Calculates the sine of x. Angles are specified in radians.
sinh1 Calculates hyperbolic sine of x.
sqrt1 Calculates the positive square root of x.
tg1 Calculates the tangent. Angles are specified in radians.
tgh1 Calculates hyperbolic tangent of x.
mime
convert_charset3 Convert string sharset (x-string, y-source charset (like 'koi8-r' or 'utf-8'), z-destination charset
mime1 Decode file of buffer as mime message
mime_hdr_line2 Decode header line
str2rtf2 Convert string x with charset y to rtf escapes
str2unicode2 Convert string x with charset y to unicode
unicode2str2 Convert unicode buffer x to a string with charset y
uudecode1 UUdecode mail body
ydecode1 Ydecode mail body
ole
dao  Create DAO DBEngine object
dialog3 Show HTML Dialog with url=x, parameter=y, options=z
ole11Create OLE Automation object
query2 Query Interface y='{...}' from object x, returns boolean
os
args  Create program arguments object
env  Create environment object
run-1 Run program x
service_call3 Service call using pipe x, request y, timeout z
set_priority1 Set current process priority to x ('normal','low','high')
persist
load1 Load value from file x
save2 Save value x in file y
registry
reg1 Create registry key object
strings
ascii1 Convert string to ascii codes. Return single value or array of integer.
bs  Return BACKSPACE character
char1 Convert array of ascii codes to string.
cr  Return CR character
eol  Return CR,NL string
extnums1 Extend numbers in string x
ff  Return FF character
format-1 Returns formatted string
joinstr2 Join array x to string, use string y as element separator.
lower1 Translates string x to lowercase.
match2 Compare string x with mask y. Use * and ? in y. Returns boolean.
matchstr2 Compare string x with mask y. Use * and ? in y. Returns array of string or null.
matchstrex2 Compare string x with mask y. Use * and ? in y. Returns array of string or null.
nl  Return NL character
normstr1 Remove leading, tailing and duplicate spaces and control characters.
replstr3 Replace y to z in string x. Return new string
splitstr2 Split string x into fields, where y is field separator character.
splitstrsp1 Split string x into fields by spaces.
stristr2 Case insensitive Find substring y in string x. Return position or null.
strstr2 Find substring y in string x. Return position or null.
substr3 Get substring of x, y-start position, z-number of characters
tab  Return TAB character
upper1 Translates string x to uppercase.
words1 Get indexed words from string x
wordsex1 Split string x to words and numbers
xorstr2 Xor string x with mask y.
util
event2 Write event into system log
utils
ansi2koi81 Convert string x from ansi to koi8
ansi2oem1 Convert string x from ansi to oem
code_base641 Code buffer x with base64
crc322 Calculate CRC32 code (x-buffer, y-initial value)
deflate1 Pack buffer x by deflate
deflatex2 Pack buffer x by deflate (level=y)
enum_icons1 Count icons in exe/dll file x
extract_icon2 Extract icon number y from executable file x
inflate1 Unpack buffer x by inflate
inflatex1 Unpack buffer x by inflate
koi82ansi1 Convert string x from koi8 to ansi
koi82oem1 Convert string x from koi8 to oem
load_icon1 Load icon from file
load_image1 Load bitmap from file
load_image_from_exe2 Load bitmap from executable file
load_resource3 Load resource y of type z from file x.
oem2ansi1 Convert string x from oem to ansi
oem2koi81 Convert string x from oem to koi8
rand_password  Generate random password
sleep1 Sleep x seconds
xorbuf2 Xor buffers x and y.
xxbuf1 XX buffer x.
windows
clipboard  Windows clipboard
semaphore12Open/Create semaphore with name x
wininet
internet-1 Open Internet (use proxy x and bypass it for list y)
winsock
fmtinaddr1 Format Internet address (as string)
host1 Find Internet host
hostname  Local host name
inaddr1 Get Internet address (as integer)
send_udp3 Send UDP datagram to host x port y with data z
socket2 Open text socket connection to host x port y
socks5-1 Set socks 5 firewall, parameters: host,port,user name,password
xml
citem-1 Create XML comment item. (optional: x=text)
html1 Load HTML file.
item-1 Create XML item.
sitem-1 Create XML script item. (optional: x=text, y=language)
xitem-1 Create XML non-quoted data. (optional: x=text)
xml1 Load XML file.


Valery Tolkov, © 2000-2006