Difference between revisions of "Syntax Reference - QB64"

From QB64 Wiki
Jump to navigation Jump to search
imported>Cyperium
imported>Cyperium
m
(45 intermediate revisions by 3 users not shown)
Line 1: Line 1:
 
In alphabetical order. GET/PUT/PRINT/INPUT reffer to TCP/IP. Keyword that syntax refers to is linked. A brief explanation in grey next to the syntax.
 
In alphabetical order. GET/PUT/PRINT/INPUT reffer to TCP/IP. Keyword that syntax refers to is linked. A brief explanation in grey next to the syntax.
  
Best viewed fullscreen.
+
Best viewed with maximized browser window.
  
 +
__NOTOC__
 +
<div id="toc"><p style="text-align: center"> 
 +
[[#A|_A]]  [[#B|_B]]  [[#C|_C]]  [[#D|_D]]  [[#E|_E]]  [[#F|_F]]  [[#G|_G]]  [[#H|_H]]  [[#I|_I]] _J  _K  [[#L|_L]]  [[#M|_M]] [[#N|_N]]  [[#O|_O]]  [[#P|_P]]  _Q  [[#R|_R]]  [[#S|_S]]  [[#T|_T]]  [[#U|_U]]  _V  [[#W|_W]]  _X  _Y  _Z</p></div>
  
 +
==<div id="A">_A</div>==
 +
* <code>{{Parameter|result&}} = {{KW|_ALPHA}}({{Parameter|c&}}[, {{Parameter|imageHandle&}}])</code>  {{discrete|&rarr; Returns the alpha opacity for the image specified or the current image.}}
  
* [[_AUTODISPLAY]] <span style="color:#808080">&rarr; Turns on autodisplay if it was disabled using _DISPLAY.</span>
+
* <code>{{Parameter|result&}} = {{KW|_ALPHA32}}({{Parameter|c&}}[, {{Parameter|imageHandle&}}])</code> {{discrete|&rarr; Returns the alpha opacity for the image specified or the current image.}}
  
 +
* <code>{{KW|_AUTODISPLAY}}</code> {{discrete|&rarr; Turns on autodisplay if it was disabled using _DISPLAY.}}
  
* BG = [[_BACKGROUNDCOLOR]] <span style="color:#808080">&rarr; Returns the current background color.</span>
 
* ...AS [ _UNSIGNED ] [[_BIT]] [*numberofbits] <span style="color:#808080">&rarr; The bit can only hold -1 or 0, unsigned bit can hold 1 or 0.</span>
 
* [[_BLEND]] [imagehandle]
 
* enabledflag = [[_BLEND (function)|_BLEND]] [(imagehandle)]
 
* blue = [[_BLUE]](palette_index/32_bit_color[, image_handle])
 
* blue_intensity% = [[_BLUE32]](color32value)
 
* ...AS [ _UNSIGNED ] [[_BYTE]] <span style="color:#808080">&rarr; A byte can hold 256 values from -128 to 127, unsigned byte can hold 0 to 255.</span>
 
  
 +
==<div id="B">_B</div>==
 +
* <code>{{Parameter|BG}} = {{KW|_BACKGROUNDCOLOR}}</code> {{discrete|&rarr; Returns the current background color.}}
  
* [[_CLEARCOLOR]] RGBsettings[, ImageHandle] <span style="color:#808080">&rarr; Defines the transparent color for all images or a specific one.</span>
+
* <code>...AS [_UNSIGNED] {{KW|_BIT}} [*{{Parameter|numberofbits}}]</code> {{discrete|&rarr; The bit can only hold -1 or 0, unsigned bit can hold 1 or 0.}}
* colorvalue = [[_CLEARCOLOR (function)|_CLEARCOLOR]] [(handle)] <span style="color:#808080">&rarr; Returns the current transparent color.</span>
 
* status = [[_CONNECTED]](handle)
 
* address$ = [[_CONNECTIONADDRESS]](handle)
 
* copyhandle& = [[_COPYIMAGE]]& [(handle)] <span style="color:#808080">&rarr; Returns a handle to a copy of a image.</span>
 
  
 +
* <code>{{KW|_BLEND}} [{{Parameter|imagehandle}}]</code>  {{discrete|&rarr; Turns on alpha blending.}}
  
* [[_DEFINE]] range or letter[, range2 or letter2[, range3 or letter3[, ...]]] AS [ _UNSIGNED ] datatype <span style="color:#808080">&rarr; Defines variables starting with a letter or range of letters (like A-Z) as a datatype.</span>
+
* <code>{{Parameter|enabledflag}} = {{KW|_BLEND (function)|_BLEND}} [({{Parameter|imagehandle}})]</code> {{discrete|&rarr; Returns -1 if alpha blending is enabled on the current image or a specific one, otherwise it returns 0.}}
* [[_DELAY]] seconds! <span style="color:#808080">&rarr; Delays the program the specified number of seconds.</span>
 
* [[_DEST]] {handle | 0|1|2|3|...} <span style="color:#808080">&rarr; Sets the drawing destination image.</span>
 
* handle = [[_DEST]] <span style="color:#808080">&rarr; Returns the current drawing destination image handle.</span>
 
* [[_DISPLAY]] <span style="color:#808080">&rarr; Turns off automatic display, while displaying the buffer to the screen.</span>
 
* displayedimage = [[_DISPLAY (function)|_DISPLAY]] <span style="color:#808080">&rarr; Returns the current displayed image.</span>
 
* [[_DONTBLEND]] [imagehandle]
 
  
* erline = [[_ERRORLINE]] <span style="color:#808080">&rarr; In case of error returns the line that produced the error.</span>
+
* <code>{{Parameter|blue}} = {{KW|_BLUE}}({{Parameter|palette_index/32_bit_color}}[, {{Parameter|image_handle}}])</code>
  
 +
* <code>{{Parameter|blue_intensity%}} = {{KW|_BLUE32}}({{Parameter|color32value}})</code>
  
* ...AS [ _UNSIGNED ] [[_FLOAT]]
+
* <code>...AS [_UNSIGNED] {{KW|_BYTE}}</code> {{discrete|&rarr; A byte can hold 256 values from -128 to 127, unsigned byte can hold 0 to 255.}}
* [[_FONT]] Font_handle[, Image_handle&] <span style="color:#808080">&rarr; Set the font for the current image or a specified one.</span>
 
* font_handle = [[_FONT (function)|_FONT]] [(image_handle)] <span style="color:#808080">&rarr; Returns the font handle for the current image or a specified one.</span>
 
* character_height_in_pixels = [[_FONTHEIGHT]] [(font_handle)] <span style="color:#808080">&rarr; Returns the height of a font defined by font_handle.</span>
 
* character_width_in_pixels = [[_FONTWIDTH]] [(font_handle)] <span style="color:#808080">&rarr; Returns the width of a font defined by font_handle.</span>
 
* [[_FREEFONT]] font_handle <span style="color:#808080">&rarr; Closes the font defined by font_handle.</span>
 
* [[_FREEIMAGE]] [handle] <span style="color:#808080">&rarr; Closes the image defined by handle.</span>
 
  
  
* [[GET (TCP/IP statement)|GET]] #handle, ,b$ <span style="color:#808080">&rarr; In QB64 gets a raw (unformatted) string from a open TCP/IP connection handle.</span>
+
==<div id="C">_C</div>==
** [[GET (TCP/IP statement)|GET]] #handle, ,x% <span style="color:#808080">&rarr; In QB64 gets a raw (unformatted) integer from a open TCP/IP connection handle.</span>
+
* <code>{{KW|_CLEARCOLOR}} {{Parameter|RGBsettings}}[, {{Parameter|ImageHandle}}]</code> {{discrete|&rarr; Defines the transparent color for all images or a specific one.}}
* green = [[_GREEN]](palette_index/32_bit_color[, image_handle])
 
* green_intensity% = [[_GREEN32]](color32value)
 
  
 +
* <code>{{Parameter|colorvalue}} = {{KW|_CLEARCOLOR (function)|_CLEARCOLOR}} [({{Parameter|handle}})]</code> {{discrete|&rarr; Returns the current transparent color.}}
  
* height& = [[_HEIGHT]](i&) <span style="color:#808080">&rarr; Returns the height of image i&.</span>
+
* <code>PUT [STEP]({{Parameter|column}}, {{Parameter|row}}), {{Parameter|image}}[, {{KW|_CLIP}}] [{XOR|PSET|AND|OR|PRESET}][, {{Parameter|omitcolor}}]]</code> {{discrete|&rarr; Clips parts of the image that is offscreen.}}
  
 +
* <code>{{Parameter|result$}} = {{KW|_CLIPBOARD$}}</code>{{discrete|&rarr; Retrieve the contents of the clipboard.}}
  
* [[_ICON]] handle <span style="color:#808080">&rarr; Sets the program icon to the image defined by handle.</span>
+
* <code>{{KW|_CLIPBOARD$ (statement)|_CLIPBOARD$}} = {{Parameter|string_expression$}}</code>{{discrete|&rarr; Set the contents of the clipboard.}}
* [[INPUT (TCP/IP statement)|INPUT]] #handle, data1[, data2, ...etc] <span style="color:#808080">&rarr; In QB64 retrieves data using the QB64 format from a open TCP/IP connection handle.</span>
 
* ...AS [_UNSIGNED] [[_INTEGER64]]
 
  
 +
* <code>{{Parameter|status}} = {{KW|_CONNECTED}}({{Parameter|handle}})</code>
  
* [[_LIMIT]] (FramesPerSecond%) <span style="color:#808080">&rarr; Limits the framerate of a loop.</span>
+
* <code>{{Parameter|address$}} = {{KW|_CONNECTIONADDRESS}}({{Parameter|handle}})</code>
* font_handle = [[_LOADFONT]](ttf_filename$,height [,"BOLD,ITALIC,UNDERLINE,DONTBLEND,MONOSPACE"]) <span style="color:#808080">&rarr; Loads a font and returns the handle to it.</span>
 
* handle& = [[_LOADIMAGE]]& (filename$[, mode]) <span style="color:#808080">&rarr; Loads a image and returns the handle to it.</span>
 
  
 +
* <code>{{KW|_CONTROLCHR}} {OFF|ON}</code> {{discrete|&rarr; Turns on/off functionality of ASCII control characters}}
  
* buttontriggered = [[_MOUSEBUTTON]] (Button%) <span style="color:#808080">&rarr; Returns -1 if the mouse button is triggered.</span>
+
* <code>{{Parameter|copyhandle&}} = {{KW|_COPYIMAGE}}& [({{Parameter|handle}})]</code> {{discrete|&rarr; Returns a handle to a copy of a image.}}
* [[_MOUSEHIDE]] <span style="color:#808080">&rarr; Hides the mouse.</span>
 
* newmouseinput = [[_MOUSEINPUT]] <span style="color:#808080">&rarr; Returns -1 if there are new input from the mouse.</span>
 
* [[_MOUSESHOW]] <span style="color:#808080">&rarr; Shows the mouse.</span>
 
* xposmouse = [[_MOUSEX]] <span style="color:#808080">&rarr; Returns the x position of the mouse.</span>
 
* yposmouse = [[_MOUSEY]] <span style="color:#808080">&rarr; Returns the y position of the mouse.</span>
 
  
 +
* <code>{{KW|_COPYPALETTE}} [{{Parameter|sourceImageHandle&}}[, {{Parameter|destinationImageHandle&}}]]</code>
  
* handle& = [[_NEWIMAGE]]& (width, height[, BPPmode]) <span style="color:#808080">&rarr; Creates and gives the handle to a new image.</span>
+
* <code>''result'' = {{KW|_CV}}({{Parameter|numericalType}}, {{Parameter|stringValue$}})</code>
  
  
* client_handle = [[_OPENCLIENT]](stringargument)
+
==<div id="D">_D</div>==
* connect_handle = [[_OPENCONNECTION]](host_handle)
+
* <code>''result&'' = {{KW|_DEFAULTCOLOR}} [({{Parameter|imageHandle&}})]</code> {{discrete|&rarr; Returns the current default color of a specified image}}
* host_handle = [[_OPENHOST]](stringargument)
 
  
 +
* <code>{{KW|_DEFINE}} {{Parameter|range or letter}}[, {{Parameter|range2 or letter2}}[, {{Parameter|range3 or letter3}}[, ...]]] AS [_UNSIGNED] datatype</code> {{discrete|&rarr; Defines variables starting with a letter as a datatype.}}
  
* color32value& = [[_PALETTECOLOR (function)|_PALETTECOLOR]](attribute_number&, handle&)
+
* <code>{{KW|_DELAY}} {{Parameter|seconds!}}</code> {{discrete|&rarr; Delays the program the specified number of seconds.}}
* BytesPerPixel& = [[_PIXELSIZE]] (imagehandle&) <span style="color:#808080">&rarr; Returns the number of bytes a pixel takes up in a certain image.</span>
 
* [[PRINT (TCP/IP statement)|PRINT]] #handle, data [,data2, ...etc] <span style="color:#808080">&rarr; In QB64 sends data using the QB64 format to a open TCP/IP connection handle.</span>
 
* [[_PRINTMODE]] mode[,image_handle]
 
* status% = [[_PRINTMODE]] [(image_handle)]
 
* [[_PRINTSTRING]] (column,row), text_to_print$[,image_handle&] <span style="color:#808080">&rarr; Prints text to the screen.</span>
 
* pixel_width = [[_PRINTWIDTH]](text_to_print$[,image_handle&])
 
* [[PUT (TCP/IP statement)|PUT]] #handle, , data <span style="color:#808080">&rarr; In QB64; Transmits raw data to a open TCP/IP connection handle.</span>
 
* [[_PUTIMAGE]] [(srcx, srcy)][-(srcx2, srcy2)], [srchandle], [desthandle][,(destx, desty)][-(destx2, desty2)] <span style="color:#808080">&rarr; Puts a image from a area of a source image to a area of a destination image.</span>
 
  
 +
* <code>{{KW|_DEST}} {{{Parameter|handle | 0|1|2|3|...}}}</code> {{discrete|&rarr; Sets the drawing destination image.}}
  
* red = [[_RED]](palette_index/32_bit_color[, image_handle])
+
* <code>{{Parameter|handle}} = {{KW|_DEST}}</code> {{discrete|&rarr; Returns the current drawing destination image handle.}}
* red_intensity% = [[_RED32]](color32value)
 
* colorindex = [[_RGB]](red, green, blue[, image_handle]) <span style="color:#808080">&rarr; Returns the color index for a mix of Red, Green and Blue components.</span>
 
* color32 = [[_RGB32]](red, green, blue) <span style="color:#808080">&rarr; Returns the 32-bit color value for a mix of Red, Green and Blue components.</span>
 
* colorindex = [[_RGBA]](red, green, blue, alpha[, image_handle]) <span style="color:#808080">&rarr; Returns the color index for a mix of Red, Green, Blue and alpha components.</span>
 
* color32 = [[_RGBA32]](red, green, blue, alpha) <span style="color:#808080">&rarr; Returns the 32-bit color value for a mix of Red, Green, Blue and alpha components.</span>
 
* roundedvalue = [[_ROUND]](value)
 
  
 +
* <code>{{Parameter|device$}} = {{KW|_DEVICE$}}({{Parameter|device_number}})</code> {{discrete|&rarr; Returns the name and type of the device for a given device number}}
  
* [[_SNDBAL]] handle&[,x!][, y!][,z!]
+
* <code>{{Parameter|devicecount}} = {{KW|_DEVICES}}</code> {{discrete|&rarr; Returns the number of devices. Must be used before _DEVICE$ and _LASTBUTTON}}
* [[_SNDCLOSE]] handle&
 
* new_handle& = [[_SNDCOPY]]& (handle&)
 
* seconds = [[_SNDGETPOS]]!(handle&)
 
* lenseconds = [[_SNDLEN]]! (handle&)
 
* [[_SNDLIMIT]] handle&, limit!
 
* [[_SNDLOOP]] handle&
 
* sound_handle& = [[_SNDOPEN]] (filename$,[capabilities$])
 
* [[_SNDPAUSE]] handle&
 
* paused% = [[_SNDPAUSED]] (handle&)
 
* [[_SNDPLAY]] handle&
 
* [[_SNDPLAYCOPY]] handle&[, volume!]
 
* [[_SNDPLAYFILE]] filename$[, sync%][, volume!]
 
* playing% = [[_SNDPLAYING]]% (handle&)
 
* [[_SNDSETPOS]] handle&, position!
 
* [[_SNDSTOP]] handle&
 
* [[_SNDVOL]] handle&, volume!
 
* [[_SOURCE]] {handle& | 0|1|2|3...} <span style="color:#808080">&rarr; Sets the source image that information is retrieved from.</span>
 
* present_source& = [[_SOURCE (function)|_SOURCE]] <span style="color:#808080">&rarr; Returns the handle of the current source image.</span>
 
  
 +
* <code>{{Parameter|direxists}} = {{KW|_DIREXISTS}} ({{Parameter|filepath$}})</code> {{discrete|&rarr; Returns -1 if the directory exists that the filepath points to.}}
  
* t = [[TIMER (QB64)|TIMER]](accuracy) <span style="color:#808080">&rarr; Returns the current timer value with a chosen accuracy (can be down to .001, which is millisecond accuracy).</span>
+
* <code>{{KW|_DISPLAY}}</code> {{discrete|&rarr; Turns off automatic display, while displaying the buffer to the screen.}}
* [[_TITLE]] Text$ <span style="color:#808080">&rarr; Sets the title of the program window.</span>
 
* ...AS [ [[_UNSIGNED]] ] datatype <span style="color:#808080">&rarr; _UNSIGNED makes the datatype always positive, increases the maximum value of the datatype.</span>
 
  
 +
* <code>{{Parameter|displayedimage}} = {{KW|_DISPLAY (function)|_DISPLAY}}</code> {{discrete|&rarr; Returns the current displayed image.}}
  
* ImageWidth& = [[_WIDTH (QB64)|_WIDTH]](i&) <span style="color:#808080">&rarr; Returns the width of a image defined by i&.</span>
+
* <code>{{KW|_DONTBLEND}} [{{Parameter|imagehandle}}]</code>  {{discrete|&rarr; Turns off alpha blending.}}
 +
 
 +
* <code>SHELL [{{KW|_DONTWAIT}}] [{{Parameter|commandline$}}]</code> {{discrete|&rarr; Don't wait for the SHELLed program to end before returning control to the calling program.}}
 +
 
 +
 
 +
==<div id="E">_E</div>==
 +
* <code>{{Parameter|erline}} = {{KW|_ERRORLINE}}</code> {{discrete|&rarr; In case of error returns the line that produced the error.}}
 +
 
 +
* <code>{{Parameter|quit%}} = {{KW|_EXIT}}</code> {{discrete|&rarr; Turns control over exit to program, gives values depending on how the user tries to exit.}}
 +
 
 +
 
 +
==<div id="F">_F</div>==
 +
* <code>{{Parameter|fileexists}} = {{KW|_FILEEXISTS}} ({{Parameter|filepath$}})</code> {{discrete|&rarr; Returns -1 if file exists at the specified path}}
 +
 
 +
* <code>...AS [_UNSIGNED] {{KW|_FLOAT}}</code> {{discrete|&rarr; Defines a variable or array to use float precision values, gives maximum precision in QB64.}}
 +
 
 +
* <code>{{KW|_FONT}} {{Parameter|Font_handle}}[, {{Parameter|Image_handle&}}]</code> {{discrete|&rarr; Set the font for the current image or a specified one.}}
 +
 
 +
* <code>{{Parameter|font_handle}} = {{KW|_FONT (function)|_FONT}} [({{Parameter|image_handle}})]</code> {{discrete|&rarr; Returns the font handle for the current image or a specified one.}}
 +
 
 +
* <code>{{Parameter|character_height_in_pixels}} = {{KW|_FONTHEIGHT}} [({{Parameter|font_handle}})]</code> {{discrete|&rarr; Returns the height of a font defined by font_handle.}}
 +
 
 +
* <code>{{Parameter|character_width_in_pixels}} = {{KW|_FONTWIDTH}} [({{Parameter|font_handle}})]</code> {{discrete|&rarr; Returns the width of a font defined by font_handle.}}
 +
 
 +
* <code>{{KW|_FREEFONT}} {{Parameter|font_handle}}</code> {{discrete|&rarr; Closes the font defined by font_handle.}}
 +
 
 +
* <code>{{KW|_FREEIMAGE}} [{{Parameter|handle}}]</code> {{discrete|&rarr; Closes the image defined by handle.}}
 +
 
 +
* <code>{{Parameter|timerhandle}} = {{KW|_FREETIMER}}</code> {{discrete|&rarr; Returns the handle of the next free timer.}}
 +
 
 +
* <code>{{Parameter|full}} = {{KW|_FULLSCREEN (function)|_FULLSCREEN}}</code> {{discrete|&rarr; Returns the current fullscreen mode.}}
 +
 
 +
* <code>{{KW|_FULLSCREEN}} [{{{Parameter|_OFF}}|{{Parameter|_STRETCH}}|{{Parameter|_SQUAREPIXELS}}}]</code> {{discrete|&rarr; Set fullscreen mode.}}
 +
 
 +
 
 +
==<div id="G">_G</div>==
 +
* <code>{{KW|GET (TCP/IP statement)|GET}} {{Parameter|#handle}}, ,{{Parameter|b$}}</code> {{discrete|&rarr; In QB64 gets a raw (unformatted) string from a open TCP/IP connection handle.}}
 +
** <code>{{KW|GET (TCP/IP statement)|GET}} {{Parameter|#handle}}, ,{{Parameter|x%}}</code> {{discrete|&rarr; In QB64 gets a raw (unformatted) integer from a open TCP/IP connection handle.}}
 +
 
 +
* <code>{{Parameter|green}} = {{KW|_GREEN}}({{Parameter|palette_index/32_bit_color}}[, {{Parameter|image_handle}}])</code> {{discrete|&rarr; Returns the green component of the color specified.}}
 +
 
 +
* <code>{{Parameter|green_intensity%}} = {{KW|_GREEN32}}({{Parameter|color32value}})</code> {{discrete|&rarr; Returns the green component of the color specified.}}
 +
 
 +
 
 +
==<div id="H">_H</div>==
 +
* <code>{{Parameter|height&}} = {{KW|_HEIGHT}}({{Parameter|i&}})</code> {{discrete|&rarr; Returns the height of image i&.}}
 +
 
 +
* <code>SHELL {{KW|_HIDE}} {{Parameter|StringCommandLine$}}</code> {{discrete|&rarr; Used to hide the SHELLed program.}}
 +
 
 +
 
 +
==<div id="I">_I</div>==
 +
* <code>{{KW|_ICON}} {{Parameter|handle}}</code> {{discrete|&rarr; Sets the program icon to the image defined by handle.}}
 +
 
 +
* <code>{{KW|INPUT (TCP/IP statement)|INPUT}} {{Parameter|#handle}}, {{Parameter|data1}}[, {{Parameter|data2}}, ...etc]</code> {{discrete|&rarr; In QB64 retrieves data using the QB64 format from a open TCP/IP connection handle.}}
 +
 
 +
* <code>...AS [_UNSIGNED] {{KW|_INTEGER64}}</code> {{discrete|&rarr; Defines a variable or array to use 64-bit integers.}}
 +
 
 +
 
 +
==<div id="L">_L</div>==
 +
* <code>{{Parameter|button_count%}} = {{KW|_LASTBUTTON}}({{Parameter|device_number}})</code> {{discrete|&rarr; Returns the number of buttons of the specified device. _DEVICES must have been called first.}}
 +
 
 +
* <code>{{KW|_LIMIT}} ({{Parameter|FramesPerSecond%}})</code> {{discrete|&rarr; Limits the framerate of a loop.}}
 +
 
 +
* <code>{{Parameter|font_handle}} = {{KW|_LOADFONT}}({{Parameter|ttf_filename$}}, {{Parameter|height}} [,"BOLD,ITALIC,UNDERLINE,DONTBLEND,MONOSPACE"])</code> {{discrete|&rarr; Loads a font and returns the handle to it.}}
 +
 
 +
* <code>{{Parameter|handle&}} = {{KW|_LOADIMAGE}}& ({{Parameter|filename$}}[, {{Parameter|mode}}])</code> {{discrete|&rarr; Loads a image and returns the handle to it.}}
 +
 
 +
 
 +
==<div id="M">_M</div>==
 +
* <code>{{KW|_MAPTRIANGLE}} {{Parameter|(sx1, sy1)-(sx2, sy2)-(sx3, sy3), source&,}} {{KW|TO}} {{Parameter|(dx1, dy1)-(dx2, dy2)-(dx3, dy3)[, destination&]}}</code>
 +
 
 +
* <code>{{KW|_MAPUNICODE}} {{Parameter|Unicode&}} {{KW|TO}} {{Parameter|ascii_code%}}</code>
 +
 
 +
* <code>{{Parameter|UTFvalue&}} = {{KW|_MAPUNICODE}}({{Parameter|Ascii_code%}})</code>
 +
 
 +
* <code>_SCREENMOVE {{{Parameter|column&}}, {{Parameter|row&}}|{{KW|_SCREENMOVE|_MIDDLE}}}</code> {{discrete|&rarr; Used to move the window to the center of the screen.}}
 +
 
 +
* <code>{{Parameter|stringvalue$}} = {{KW|_MK$}}({{Parameter|numericaltype}}, {{Parameter|numbervalue}})</code>
 +
 
 +
* <code>{{Parameter|buttontriggered}} = {{KW|_MOUSEBUTTON}} ({{Parameter|Button%}})</code> {{discrete|&rarr; Returns -1 if the mouse button is triggered.}}
 +
 
 +
* <code>{{KW|_MOUSEHIDE}}</code> {{discrete|&rarr; Hides the mouse.}}
 +
 
 +
* <code>{{Parameter|newmouseinput}} = {{KW|_MOUSEINPUT}}</code> {{discrete|&rarr; Returns -1 if there are new input from the mouse.}}
 +
 
 +
* {{KW|_MOUSEMOVE}} ''x'', ''y''  {{discrete|&rarr; Moves the mouse pointer to a designated position.}}
 +
 
 +
* <code>{{Parameter|xmovement}} = {{KW|_MOUSEMOVEMENTX}}</code> {{discrete|&rarr; Returns the number of pixels in the x direction that the mouse has moved since the latest call. Also hides the mouse.}}
 +
 
 +
* <code>{{Parameter|ymovement}} = {{KW|_MOUSEMOVEMENTY}}</code> {{discrete|&rarr; Returns the number of pixels in the y direction that the mouse has moved since the latest call. Also hides the mouse.}}
 +
 
 +
* <code>{{KW|_MOUSESHOW}}</code> {{discrete|&rarr; Shows the mouse.}}
 +
 
 +
* <code>{{Parameter|scroll%}} = {{KW|_MOUSEWHEEL}}</code> {{discrete|&rarr; Returns the number of wheel turns of the mouse.}}
 +
 
 +
* <code>{{Parameter|xposmouse}} = {{KW|_MOUSEX}}</code> {{discrete|&rarr; Returns the x position of the mouse.}}
 +
 
 +
* <code>{{Parameter|yposmouse}} = {{KW|_MOUSEY}}</code> {{discrete|&rarr; Returns the y position of the mouse.}}
 +
 
 +
 
 +
==<div id="N">_N</div>==
 +
* <code>{{Parameter|handle&}} = {{KW|_NEWIMAGE}}& ({{Parameter|width}}, {{Parameter|height}}[, {{Parameter|BPPmode}}])</code> {{discrete|&rarr; Creates and gives the handle to a new image.}}
 +
 
 +
* <code>_CLEARCOLOR {{KW|_CLEARCOLOR|_NONE}}[, {{Parameter|imageHandle&}}]</code> {{discrete|&rarr; Used to specify that there should be no clearcolor (transparent color) on the image.}}
 +
 
 +
 
 +
==<div id="O">_O</div>==
 +
* <code>...{{Parameter|variable}} AS {{KW|_OFFSET}}</code> {{discrete|&rarr; Defines a variable to be of the type _OFFSET which is used to hold a pointer to memory.}}
 +
 
 +
* <code>{{Parameter|offset%&}} = {{KW|_OFFSET (function)|_OFFSET}}({{Parameter|variable}})</code> {{discrete|&rarr; Returns the memory offset that is used to hold the variable.}}
 +
 
 +
* <code>{{Parameter|client_handle}} = {{KW|_OPENCLIENT}}({{Parameter|stringargument}})</code>
 +
 
 +
* <code>{{Parameter|connect_handle}} = {{KW|_OPENCONNECTION}}({{Parameter|host_handle}})</code>
 +
 
 +
* <code>{{Parameter|host_handle}} = {{KW|_OPENHOST}}({{Parameter|stringargument}})</code>
 +
 
 +
* <code>{{Parameter|osinfo$}} = {{KW|_OS$}}</code> {{discrete|&rarr; Returns a string representing the Operating System and if it is 32 or 64 bit.}}
 +
 
 +
 
 +
==<div id="P">_P</div>==
 +
* <code>{{KW|_PALETTECOLOR}} {{Parameter|index%}}, {{Parameter|colour&}}[, {{Parameter|imageHandle&}}]</code> {{discrete|&rarr; Set the color of a palette index in a 8-bit (or less) image.}}
 +
 
 +
* <code>{{Parameter|color32value&}} = {{KW|_PALETTECOLOR (function)|_PALETTECOLOR}}({{Parameter|attribute_number&}}, {{Parameter|handle&}})</code>
 +
 
 +
* <code>{{Parameter|BytesPerPixel&}} = {{KW|_PIXELSIZE}} ({{Parameter|imagehandle&}})</code> {{discrete|&rarr; Returns the number of bytes a pixel takes up in a certain image.}}
 +
 
 +
* <code>REDIM {{KW|_PRESERVE}} {{Parameter|Array(newelements%)}}</code>{{discrete|&rarr; Optional argument to REDIM used to preserve the contents of an array while re-dimensioning.}}
 +
 
 +
* <code>{{KW|PRINT (TCP/IP statement)|PRINT}} {{Parameter|#handle}}, {{Parameter|data}} [, {{Parameter|data2}}, ...etc]</code>{{discrete|&rarr; In QB64 sends data using the QB64 format to a open TCP/IP connection handle.}}
 +
 
 +
* <code>{{KW|_PRINTIMAGE}} {{Parameter|imagehandle}}</code> {{discrete|&rarr; Sends the image to the printer, stretching it to full paper size first}}
 +
 
 +
* <code>{{KW|_PRINTMODE}} {{Parameter|mode}}[, {{Parameter|image_handle}}]</code>
 +
 
 +
* <code>{{Parameter|status%}} = {{KW|_PRINTMODE}} [({{Parameter|image_handle}})]</code>
 +
 
 +
* <code>{{KW|_PRINTSTRING}} ({{Parameter|column}}, {{Parameter|row}}), {{Parameter|text_to_print$}}[, {{Parameter|image_handle&}}]</code> {{discrete|&rarr; Prints text to the screen.}}
 +
 
 +
* <code>{{Parameter|pixel_width}} = {{KW|_PRINTWIDTH}}({{Parameter|text_to_print$}}[, {{Parameter|image_handle&}}])</code>
 +
 
 +
* <code>{{KW|PUT (TCP/IP statement)|PUT}} {{Parameter|#handle}}, , {{Parameter|data}}</code> {{discrete|&rarr; In QB64; Transmits raw data to a open TCP/IP connection handle.}}
 +
 
 +
* <code>{{KW|_PUTIMAGE}} [({{Parameter|destx}}, {{Parameter|desty}})][-({{Parameter|destx2}}, {{Parameter|desty2}})], [{{Parameter|srchandle}}], [{{Parameter|desthandle}}][,({{Parameter|srcx}}, {{Parameter|srcy}})][-({{Parameter|srcx2}}, {{Parameter|srcy2}})]</code> {{discrete|&rarr; Puts an area of one image onto an area of another.}}
 +
 
 +
 
 +
==<div id="R">_R</div>==
 +
* <code>{{Parameter|red}} = {{KW|_RED}}({{Parameter|palette_index/32_bit_color}}[, {{Parameter|image_handle}}])</code> {{discrete|&rarr; Returns the red component of the color specified.}}
 +
 
 +
* <code>{{Parameter|red_intensity%}} = {{KW|_RED32}}({{Parameter|color32value}})</code> {{discrete|&rarr; Returns the red component of the color specified.}}
 +
 
 +
* <code>{{Parameter|colorindex}} = {{KW|_RGB}}({{Parameter|red}}, {{Parameter|green}}, {{Parameter|blue}}[, {{Parameter|image_handle}}])</code> {{discrete|&rarr; Returns the color index for a mix of Red, Green and Blue components.}}
 +
 
 +
* <code>{{Parameter|color32}} = {{KW|_RGB32}}({{Parameter|red}}, {{Parameter|green}}, {{Parameter|blue}})</code> {{discrete|&rarr; Returns the 32-bit color value for a mix of Red, Green and Blue components.}}
 +
 
 +
* <code>{{Parameter|colorindex}} = {{KW|_RGBA}}({{Parameter|red}}, {{Parameter|green}}, {{Parameter|blue}}, {{Parameter|alpha}}[, {{Parameter|image_handle}}])</code> {{discrete|&rarr; Returns the color index for a mix of Red, Green, Blue and alpha components.}}
 +
 
 +
* <code>{{Parameter|color32}} = {{KW|_RGBA32}}({{Parameter|red}}, {{Parameter|green}}, {{Parameter|blue}}, {{Parameter|alpha}})</code> {{discrete|&rarr; Returns the 32-bit color value for a mix of Red, Green, Blue and alpha components.}}
 +
 
 +
* <code>{{Parameter|roundedvalue}} = {{KW|_ROUND}}({{Parameter|value}})</code> {{discrete|&rarr; Rounds to the nearest integer with preference for even numbers, 1.5 and 2.5 rounds to 2}}
 +
 
 +
 
 +
==<div id="S">_S</div>==
 +
* <code>{{KW|_SCREENCLICK}} {{Parameter|x%}}, {{Parameter|y%}}</code> {{discrete|&rarr; Simulates clicking on the screen at the specified location.}}
 +
 
 +
* <code>{{Parameter|handle&}} = {{KW|_SCREENIMAGE}}</code> {{discrete|&rarr; Takes a snapshot of the screen and gives the image to it.}}
 +
 
 +
* <code>{{KW|_SCREENMOVE}} {{{Parameter|x&}}, {{Parameter|y&}}|{{Parameter|_MIDDLE}}}</code> {{discrete|&rarr; Moves the window to the specified location.}}
 +
 
 +
* <code>{{KW|_SCREENPRINT}} {{Parameter|text$}}</code> {{discrete|&rarr; Simulates typing on the keyboard.}}
 +
 
 +
* <code>{{Parameter|xpos}} = {{KW|_SCREENX}}</code> {{discrete|&rarr; Returns the current x position of the window.}}
 +
 
 +
* <code>{{Parameter|ypos}} = {{KW|_SCREENY}}</code> {{discrete|&rarr; Returns the current y position of the window.}}
 +
 
 +
* <code>{{KW|_SETALPHA}} {{Parameter|alpha&}}, [{{Parameter|c&}} [TO {{Parameter|c2&}}]] [, {{Parameter|imageHandle&}}]</code>
 +
 
 +
* <code>{{KW|_SNDBAL}} {{Parameter|handle&}}[, {{Parameter|x!}}][, {{Parameter|y!}}][, {{Parameter|z!}}]</code>
 +
 
 +
* <code>{{KW|_SNDCLOSE}} {{Parameter|handle&}}</code> {{discrete|&rarr; Closes the sound specified by the handle}}
 +
 
 +
* <code>{{Parameter|new_handle&}} = {{KW|_SNDCOPY}}& ({{Parameter|handle&}})</code> {{discrete|&rarr; Copies the sound and gives the handle to the copy.}}
 +
 
 +
* <code>{{Parameter|seconds}} = {{KW|_SNDGETPOS}}!({{Parameter|handle&}})</code> {{discrete|&rarr; Get play position in seconds of the sound specified}}
 +
 
 +
* <code>{{Parameter|lenseconds}} = {{KW|_SNDLEN}}! ({{Parameter|handle&}})</code> {{discrete|&rarr; Get the length in seconds of the sound specified}}
 +
 
 +
* <code>{{KW|_SNDLIMIT}} {{Parameter|handle&}}, {{Parameter|limit!}}</code>
 +
 
 +
* <code>{{KW|_SNDLOOP}} {{Parameter|handle&}}</code>
 +
 
 +
* <code>{{Parameter|sound_handle&}} = {{KW|_SNDOPEN}} ({{Parameter|filename$}}, [{{Parameter|capabilities$}}])</code> {{discrete|&rarr; Open and load a sound into memory, the handle to the sound is returned.}}
 +
 
 +
* <code>{{KW|_SNDPAUSE}} {{Parameter|handle&}}</code> {{discrete|&rarr; Pause the sound specified.}}
 +
 
 +
* <code>{{Parameter|paused%}} = {{KW|_SNDPAUSED}} ({{Parameter|handle&}})</code> {{discrete|&rarr; Returns -1 if specified sound is paused, otherwise returns 0.}}
 +
 
 +
* <code>{{KW|_SNDPLAY}} {{Parameter|handle&}}</code> {{discrete|&rarr; Start playing the sound specified.}}
 +
 
 +
* <code>{{KW|_SNDPLAYCOPY}} {{Parameter|handle&}}[, {{Parameter|volume!}}]</code>
 +
 
 +
* <code>{{KW|_SNDPLAYFILE}} {{Parameter|filename$}}[, {{Parameter|sync%}}][, {{Parameter|volume!}}]</code>
 +
 
 +
* <code>{{Parameter|playing%}} = {{KW|_SNDPLAYING}}% ({{Parameter|handle&}})</code> {{discrete|&rarr; Returns -1 if sound is playing, otherwise returns 0.}}
 +
 
 +
* <code>{{Parameter|rate}} = {{KW|_SNDRATE}}</code> {{discrete|&rarr; Returns the sample frequency.}}
 +
 
 +
* <code>{{KW|_SNDRAW}} {{Parameter|leftsample&}} [{{Parameter|rightsample&}}]</code> {{discrete|&rarr; Turns the speaker membrane in or out -1 to 1 (1 being fully out).}}
 +
 
 +
* <code>{{Parameter|length#}} = {{KW|_SNDRAWLEN}}</code> {{discrete|&rarr; Returns the length in seconds of the sample.}}
 +
 
 +
* <code>{{KW|_SNDSETPOS}} {{Parameter|handle&}}, {{Parameter|position!}}</code> {{discrete|&rarr; Set the position in seconds of the sound specified.}}
 +
 
 +
* <code>{{KW|_SNDSTOP}} {{Parameter|handle&}}</code> {{discrete|&rarr; Stop the sound specified.}}
 +
 
 +
* <code>{{KW|_SNDVOL}} {{Parameter|handle&}}, {{Parameter|volume}}</code> {{discrete|&rarr; Set the volume of the sound specified.}}
 +
 
 +
* <code>{{KW|_SOURCE}} {{{Parameter|handle& | 0|1|2|3...}}}</code> {{discrete|&rarr; Sets the source image that information is retrieved from.}}
 +
 
 +
* <code>{{Parameter|present_source&}} = {{KW|_SOURCE (function)|_SOURCE}}</code> {{discrete|&rarr; Returns the handle of the current source image.}}
 +
 
 +
 
 +
==<div id="T">_T</div>==
 +
* <code>{{Parameter|t}} = {{KW|TIMER}}({{Parameter|accuracy}})</code> {{discrete|&rarr; Returns the current timer value with a chosen accuracy (can be down to .001, which is millisecond accuracy).}}
 +
 
 +
* <code>{{KW|_TITLE}} {{Parameter|Text$}}</code> {{discrete|&rarr; Sets the title of the program window.}}
 +
 
 +
 
 +
==<div id="U">_U</div>==
 +
* <code>...AS [{{KW|_UNSIGNED}}] datatype</code> {{discrete|&rarr; _UNSIGNED makes the datatype always positive, increases the maximum value of the datatype.}}
 +
 
 +
 
 +
==<div id="W">_W</div>==
 +
* <code>{{Parameter|ImageWidth&}} = {{KW|_WIDTH (QB64)|_WIDTH}}({{Parameter|i&}})</code> {{discrete|&rarr; Returns the width of a image defined by i&.}}
 +
 
 +
 
 +
{{PageNavigation}}

Revision as of 00:55, 17 March 2012

In alphabetical order. GET/PUT/PRINT/INPUT reffer to TCP/IP. Keyword that syntax refers to is linked. A brief explanation in grey next to the syntax.

Best viewed with maximized browser window.


_A _B _C _D _E _F _G _H _I _J _K _L _M _N _O _P _Q _R _S _T _U _V _W _X _Y _Z

_A

  • result& = _ALPHA(c&[, imageHandle&])
    → Returns the alpha opacity for the image specified or the current image.
  • result& = _ALPHA32(c&[, imageHandle&])
    → Returns the alpha opacity for the image specified or the current image.
  • _AUTODISPLAY
    → Turns on autodisplay if it was disabled using _DISPLAY.


_B

  • ...AS [_UNSIGNED] _BIT [*numberofbits]
    → The bit can only hold -1 or 0, unsigned bit can hold 1 or 0.
  • _BLEND [imagehandle]
    → Turns on alpha blending.
  • enabledflag = _BLEND [(imagehandle)]
    → Returns -1 if alpha blending is enabled on the current image or a specific one, otherwise it returns 0.
  • blue = _BLUE(palette_index/32_bit_color[, image_handle])
  • blue_intensity% = _BLUE32(color32value)
  • ...AS [_UNSIGNED] _BYTE
    → A byte can hold 256 values from -128 to 127, unsigned byte can hold 0 to 255.


_C

  • _CLEARCOLOR RGBsettings[, ImageHandle]
    → Defines the transparent color for all images or a specific one.
  • colorvalue = _CLEARCOLOR [(handle)]
    → Returns the current transparent color.
  • PUT [STEP](column, row), image[, _CLIP] [{XOR|PSET|AND|OR|PRESET}][, omitcolor]]
    → Clips parts of the image that is offscreen.
  • result$ = _CLIPBOARD$
    → Retrieve the contents of the clipboard.
  • _CLIPBOARD$ = string_expression$
    → Set the contents of the clipboard.
  • _CONTROLCHR {OFF|ON}
    → Turns on/off functionality of ASCII control characters
  • copyhandle& = _COPYIMAGE& [(handle)]
    → Returns a handle to a copy of a image.
  • _COPYPALETTE [sourceImageHandle&[, destinationImageHandle&]]
  • result = _CV(numericalType, stringValue$)


_D

  • result& = _DEFAULTCOLOR [(imageHandle&)]
    → Returns the current default color of a specified image
  • _DEFINE range or letter[, range2 or letter2[, range3 or letter3[, ...]]] AS [_UNSIGNED] datatype
    → Defines variables starting with a letter as a datatype.
  • _DELAY seconds!
    → Delays the program the specified number of seconds.
  • _DEST handle
    → Sets the drawing destination image.
  • handle = _DEST
    → Returns the current drawing destination image handle.
  • device$ = _DEVICE$(device_number)
    → Returns the name and type of the device for a given device number
  • devicecount = _DEVICES
    → Returns the number of devices. Must be used before _DEVICE$ and _LASTBUTTON
  • direxists = _DIREXISTS (filepath$)
    → Returns -1 if the directory exists that the filepath points to.
  • _DISPLAY
    → Turns off automatic display, while displaying the buffer to the screen.
  • displayedimage = _DISPLAY
    → Returns the current displayed image.
  • _DONTBLEND [imagehandle]
    → Turns off alpha blending.
  • SHELL [_DONTWAIT] [commandline$]
    → Don't wait for the SHELLed program to end before returning control to the calling program.


_E

  • erline = _ERRORLINE
    → In case of error returns the line that produced the error.
  • quit% = _EXIT
    → Turns control over exit to program, gives values depending on how the user tries to exit.


_F

  • fileexists = _FILEEXISTS (filepath$)
    → Returns -1 if file exists at the specified path
  • ...AS [_UNSIGNED] _FLOAT
    → Defines a variable or array to use float precision values, gives maximum precision in QB64.
  • _FONT Font_handle[, Image_handle&]
    → Set the font for the current image or a specified one.
  • font_handle = _FONT [(image_handle)]
    → Returns the font handle for the current image or a specified one.
  • character_height_in_pixels = _FONTHEIGHT [(font_handle)]
    → Returns the height of a font defined by font_handle.
  • character_width_in_pixels = _FONTWIDTH [(font_handle)]
    → Returns the width of a font defined by font_handle.
  • _FREEFONT font_handle
    → Closes the font defined by font_handle.
  • _FREEIMAGE [handle]
    → Closes the image defined by handle.
  • timerhandle = _FREETIMER
    → Returns the handle of the next free timer.
  • full = _FULLSCREEN
    → Returns the current fullscreen mode.
  • _FULLSCREEN [{_OFF|_STRETCH|_SQUAREPIXELS}]
    → Set fullscreen mode.


_G

  • GET #handle, ,b$
    → In QB64 gets a raw (unformatted) string from a open TCP/IP connection handle.
    • GET #handle, ,x%
      → In QB64 gets a raw (unformatted) integer from a open TCP/IP connection handle.
  • green = _GREEN(palette_index/32_bit_color[, image_handle])
    → Returns the green component of the color specified.
  • green_intensity% = _GREEN32(color32value)
    → Returns the green component of the color specified.


_H

  • height& = _HEIGHT(i&)
    → Returns the height of image i&.
  • SHELL _HIDE StringCommandLine$
    → Used to hide the SHELLed program.


_I

  • _ICON handle
    → Sets the program icon to the image defined by handle.
  • INPUT #handle, data1[, data2, ...etc]
    → In QB64 retrieves data using the QB64 format from a open TCP/IP connection handle.
  • ...AS [_UNSIGNED] _INTEGER64
    → Defines a variable or array to use 64-bit integers.


_L

  • button_count% = _LASTBUTTON(device_number)
    → Returns the number of buttons of the specified device. _DEVICES must have been called first.
  • _LIMIT (FramesPerSecond%)
    → Limits the framerate of a loop.
  • font_handle = _LOADFONT(ttf_filename$, height [,"BOLD,ITALIC,UNDERLINE,DONTBLEND,MONOSPACE"])
    → Loads a font and returns the handle to it.
  • handle& = _LOADIMAGE& (filename$[, mode])
    → Loads a image and returns the handle to it.


_M

  • _MAPTRIANGLE (sx1, sy1)-(sx2, sy2)-(sx3, sy3), source&, TO (dx1, dy1)-(dx2, dy2)-(dx3, dy3)[, destination&]
  • _SCREENMOVE {column&, row&|_MIDDLE}
    → Used to move the window to the center of the screen.
  • stringvalue$ = _MK$(numericaltype, numbervalue)
  • buttontriggered = _MOUSEBUTTON (Button%)
    → Returns -1 if the mouse button is triggered.
  • newmouseinput = _MOUSEINPUT
    → Returns -1 if there are new input from the mouse.
  • _MOUSEMOVE x, y
    → Moves the mouse pointer to a designated position.
  • xmovement = _MOUSEMOVEMENTX
    → Returns the number of pixels in the x direction that the mouse has moved since the latest call. Also hides the mouse.
  • ymovement = _MOUSEMOVEMENTY
    → Returns the number of pixels in the y direction that the mouse has moved since the latest call. Also hides the mouse.
  • scroll% = _MOUSEWHEEL
    → Returns the number of wheel turns of the mouse.
  • xposmouse = _MOUSEX
    → Returns the x position of the mouse.
  • yposmouse = _MOUSEY
    → Returns the y position of the mouse.


_N

  • handle& = _NEWIMAGE& (width, height[, BPPmode])
    → Creates and gives the handle to a new image.
  • _CLEARCOLOR _NONE[, imageHandle&]
    → Used to specify that there should be no clearcolor (transparent color) on the image.


_O

  • ...variable AS _OFFSET
    → Defines a variable to be of the type _OFFSET which is used to hold a pointer to memory.
  • offset%& = _OFFSET(variable)
    → Returns the memory offset that is used to hold the variable.
  • osinfo$ = _OS$
    → Returns a string representing the Operating System and if it is 32 or 64 bit.


_P

  • _PALETTECOLOR index%, colour&[, imageHandle&]
    → Set the color of a palette index in a 8-bit (or less) image.
  • BytesPerPixel& = _PIXELSIZE (imagehandle&)
    → Returns the number of bytes a pixel takes up in a certain image.
  • REDIM _PRESERVE Array(newelements%)
    → Optional argument to REDIM used to preserve the contents of an array while re-dimensioning.
  • PRINT #handle, data [, data2, ...etc]
    → In QB64 sends data using the QB64 format to a open TCP/IP connection handle.
  • _PRINTIMAGE imagehandle
    → Sends the image to the printer, stretching it to full paper size first
  • _PRINTSTRING (column, row), text_to_print$[, image_handle&]
    → Prints text to the screen.
  • pixel_width = _PRINTWIDTH(text_to_print$[, image_handle&])
  • PUT #handle, , data
    → In QB64; Transmits raw data to a open TCP/IP connection handle.
  • _PUTIMAGE [(destx, desty)][-(destx2, desty2)], [srchandle], [desthandle][,(srcx, srcy)][-(srcx2, srcy2)]
    → Puts an area of one image onto an area of another.


_R

  • red = _RED(palette_index/32_bit_color[, image_handle])
    → Returns the red component of the color specified.
  • red_intensity% = _RED32(color32value)
    → Returns the red component of the color specified.
  • colorindex = _RGB(red, green, blue[, image_handle])
    → Returns the color index for a mix of Red, Green and Blue components.
  • color32 = _RGB32(red, green, blue)
    → Returns the 32-bit color value for a mix of Red, Green and Blue components.
  • colorindex = _RGBA(red, green, blue, alpha[, image_handle])
    → Returns the color index for a mix of Red, Green, Blue and alpha components.
  • color32 = _RGBA32(red, green, blue, alpha)
    → Returns the 32-bit color value for a mix of Red, Green, Blue and alpha components.
  • roundedvalue = _ROUND(value)
    → Rounds to the nearest integer with preference for even numbers, 1.5 and 2.5 rounds to 2


_S

  • _SCREENCLICK x%, y%
    → Simulates clicking on the screen at the specified location.
  • handle& = _SCREENIMAGE
    → Takes a snapshot of the screen and gives the image to it.
  • _SCREENMOVE {x&, y&|_MIDDLE}
    → Moves the window to the specified location.
  • xpos = _SCREENX
    → Returns the current x position of the window.
  • ypos = _SCREENY
    → Returns the current y position of the window.
  • _SETALPHA alpha&, [c& [TO c2&]] [, imageHandle&]
  • _SNDCLOSE handle&
    → Closes the sound specified by the handle
  • new_handle& = _SNDCOPY& (handle&)
    → Copies the sound and gives the handle to the copy.
  • seconds = _SNDGETPOS!(handle&)
    → Get play position in seconds of the sound specified
  • lenseconds = _SNDLEN! (handle&)
    → Get the length in seconds of the sound specified
  • sound_handle& = _SNDOPEN (filename$, [capabilities$])
    → Open and load a sound into memory, the handle to the sound is returned.
  • _SNDPAUSE handle&
    → Pause the sound specified.
  • paused% = _SNDPAUSED (handle&)
    → Returns -1 if specified sound is paused, otherwise returns 0.
  • _SNDPLAY handle&
    → Start playing the sound specified.
  • playing% = _SNDPLAYING% (handle&)
    → Returns -1 if sound is playing, otherwise returns 0.
  • rate = _SNDRATE
    → Returns the sample frequency.
  • _SNDRAW leftsample& [rightsample&]
    → Turns the speaker membrane in or out -1 to 1 (1 being fully out).
  • length# = _SNDRAWLEN
    → Returns the length in seconds of the sample.
  • _SNDSETPOS handle&, position!
    → Set the position in seconds of the sound specified.
  • _SNDSTOP handle&
    → Stop the sound specified.
  • _SNDVOL handle&, volume
    → Set the volume of the sound specified.
  • _SOURCE handle&
    → Sets the source image that information is retrieved from.
  • present_source& = _SOURCE
    → Returns the handle of the current source image.


_T

  • t = TIMER(accuracy)
    → Returns the current timer value with a chosen accuracy (can be down to .001, which is millisecond accuracy).
  • _TITLE Text$
    → Sets the title of the program window.


_U

  • ...AS [_UNSIGNED] datatype
    → _UNSIGNED makes the datatype always positive, increases the maximum value of the datatype.


_W

  • ImageWidth& = _WIDTH(i&)
    → Returns the width of a image defined by i&.



Navigation:
Go to Keyword Reference - Alphabetical
Go to Keyword Reference - By usage
Go to Main WIKI Page