System Functions

Description

Alpha Anywhere provides the following system functions.

Name
Description
*LOCALE_GET Function
Get the current locale. The *LOCALE_GET() function returns the Windows regional setting.
a5_close_system_toolbars Function
Called by the Deactivate event for Froms, Browse, etc. to close all of open toolbars for the layout.
A5_OS_INFO Function
Returns a pointer with information about the local operating system
A5_RESOURCE_INFO Function
use WMI to find out what resources are being used by the specified process
a5_system_function_debug Function
Set breakpoints on system functions
a5_system_short_time_formatter Function
Format a shorttime for a layout
a5_system_time_formatter Function
Format a time for a layout
a5_system_toolbar_editor Function
Edit a toolbar using V5 toolbar editor
a5_toggle_setting Function
Toggles the state of a system mode setting
API_GETDOMAINNAME Function
The API_GETDOMAINNAME() function returns the name of your network domain or the domain of the currently logged on user
API_GETENVIRONMENTVAR Function
The API_GETENVIRONMENTVAR() returns the value of a Windows environment variable.
API_GETMACHINENAME Function
API_GETMACHINENAME() returns the name of the host computer.
API_GETUSERNAME Function
API_GETUSERNAME() returns the name of Windows logon name of the current user
API_UUIDCREATE Function
Return a 128 bit globally/universally unique identifier (GUID/UUID)
API_UUIDSEQCREATE Function
Similar to the existing API_UUIDCREATE() function, but creates the GUIDs in sequential order.
DISKSPACE Function
DISKSPACE() returns the number of unused bytes on the disk where the current table is stored.
PROCESS_LIST Function
Use WMI to return a list of Windows processes.
SYS_EDIT Function
Edit a file using the files registered edit method.
SYS_EVENT_LOG Function
The SYS_EVENT_LOG() function logs events into the Windows NT system log. Under NT based systems, log events to the system log - event messages format has optional <Flag>: prefix where <Flag> is E=error,W=Warning,I=Info,S=Success,F=Failure. other options - E=<event#>,C=<Category#>
SYS_EVENT_LOG_DUMP Function
The SYS_EVENT_LOG_DUMP() function dumps events from the system event log. Dump events in event log - format S=string,C=computer,N=Name,T=time,W=Time written,K=Kind of event,E=eventid,X=subcategory.
SYS_EXPLORE Function
Explore for a file/path using the files registered explore method. SYS_EXPLORE() opens the Windows Explorer showing files in the drive and/or path specified by Drive_Folder.
SYS_FOCUS_PUT Function
Set focus to a program given a window name, alpha five window five is no window specified.
sys_is_foreground Function
Return true alpha five window is the active program.
SYS_KEY_DOWN Function
The SYS_KEY_DOWN() function returns .T. (TRUE) if the named key is being held down.
sys_key_modifiers Function
Returns the modifier keys that are currently being pressed (Control+Shift+Alt).
SYS_KEYS_ENUM Function
The SYS_KEYS_ENUM() function returns a list of named keys. It enumerates the valid keynames for sys_send_keys and other key functions.
SYS_METRIC_GET Function
The SYS_METRIC_GET() function returns the size and position of a window. Get size/position of a window (window_metric = x,y,w,h).
SYS_OPEN Function
Open a file using the files registered open method.
SYS_PRINT Function
Print a file using the files registered print method.
SYS_PROPERTIES Function
The SYS_PROPERTIES() function gets the properties for a file using the files registered properties method.
SYS_SEND_KEYS Function
SYS_SEND_KEYS() sends the specified keys to the active window. The String_of_Keys parameter is a character string that can include one or more keys, as well as special extended keys like function keys and cursor keys.
SYS_SHELL Function
Run a program, returning the hwnd of the program run.
sys_shell_result Function
Executes a 'command line' command and returns the result. Example usage: ipconfig_info = sys_shell_result("ipconfig")
SYS_SHELL_WAIT Function
Run a program and wait until the program closes before returning.
sys_window_caret Function
Return the window that is currently has the blinking caret.
sys_window_movesize Function
Return the window that is currently being resized.
system_event_add Function
Add a system event (code to be executed on system event).
system_event_invoke Function
Invoke a system event.
system_event_invoke_query Function
Invoke a system event, returns false if a system event called cancle, else returns true.
system_variables Function
Gets the system frame.
systemfonts_apply Function
Applies the system font settings stored in the Registry
UI_INFO Function
UI_INFO() returns information about the size in pixels of the Alpha Anywhere main window and the screen resolution of the user's computer.
WIN_1394_INFO Function
The WIN_1394_INFO() function returns information about the 1394 (Firewire) controller on a computer.
WIN_ACCOUNTS Function
The WIN_ACCOUNTS() function retrieves information about Windows user and group accounts.
WIN_BATTERY_INFO Function
The WIN_BATTERY_INFO() function retrieve information about the computer's battery.
WIN_BIOS_INFO Function
The WIN_BIOS_INFO() functions retrieves information about the computer's BIOS.
WIN_CREATE_SHORTCUT Function
The WIN_CREATE_SHORTCUT() function creates a Windows shortcut to the specified location.
WIN_DISK_INFO Function
The WIN_DISK_INFO() function returns information about a computer's disks.
WIN_MEMORY_INFO Function
The WIN_MEMORY_INFO() function returns information about a computer's memory configuration.
WIN_MOTHERBOARD Function
The WIN_MOTHERBOARD() function returns information about a computer's motherboard.
WIN_SERVICES Function
The WIN_SERVICES() function retrieves information about Windows services on a computer.
WIN_SPECIAL_FOLDER Function
Returns the path to the Windows special folder specified