The System Object - HTML2EXE Programming Interface

Document Path: Home Page / Programming / HTML2EXE / Interfaces / System Object  
Properties CursorX CursorY FileSystem IEVersion MaxScriptStatements OSVersionInfo TickCount
Methods CreateDirectoryWatcherObject CreateDLLVersionInfoObject CreateFileVersionInfoObject CreateGUIDObject CreateHotKeyObject CreateImageObject CreateObject CreateProcessInfoObject CreateProcessObject CreateProxyBlanket CreateRawSocketObject CreateRegionObject CreateTimeObject CreateTimeSpanObject CreateWindowObject DllRegisterServer DllUnregisterServer EnumWindow GetActiveObject GetLocalTime GetOpenFileName GetSaveFileName GetSystemTime HarddwareInput KeyboardInput LockWorkStation LogEvent LogOff MouseInput RegisterActiveObject ReportEvent RestartWindows SetSystemTime SHBrowseForFolder ShellExecute SHGetSpecialFolderPath ShowCursor ShutDown Sleep SystemCommand TerminateProcess UnRegisterActiveObject
Properties

CursorX

Value long (x value of cursor position)
Access Get, Put
Notes

CursorY

Value long (y value of cursor position)
Access Get, Put
Notes

FileSystem

Value File System Object
Access Get
Notes

IEVersion

Value BSTR
Access Get
Notes

MaxScriptStatements

Value ULONG
Access Get, Put
Notes

OSVersionInfo

Value OS Version Info Object
Access Get
Notes

TickCount

Value ULONG (the number of milliseconds that have elapsed since the system was started)
Access Get
Notes SDK Keyword: GetTickCount
Methods

CreateDirectoryWatcherObject

Return Value Direcotry Watcher Object
Notes

CreateDLLVersionInfoObject

Return Value DLL Version Info Object
Notes

CreateFileVersionInfoObject

Return Value File Version Info Object
Notes

CreateGUIDObject

Return Value GUID Object
Notes

CreateHotKeyObject

Return Value Hot Key Object
Notes

CreateImageObject

Return Value Image Object
Notes

CreateObject

Return Value Object
Arguments:
  • BSTR progIDorCLSID
Notes

CreateProcessInfoObject

Return Value Process Info Object
Notes

CreateProcessObject

Return Value Process Object
Notes

CreateProxyBlanket

Return Value Proxy Blanket Object
Notes

CreateRawSocketObject

Return Value Raw Socket Object
Notes

CreateRegionObject

Return Value Region Object
Notes

CreateTimeObject

Return Value Time Object
Notes

CreateTimeSpanObject

Return Value Time Span Object
Notes

CreateWindowObject

Return Value Window Object
Notes

DllRegisterServer

Return Value long (0=success; -1=module or required procedure not found; other=return value of the moudle's registering procedure)
Arguments:
  • BSTR dllPath
Notes SDK Keyword: DllRegisterServer

DllUnregisterServer

Return Value long (0=success; -1=module or required procedure not found; other=return value of the moudle's registering procedure)
Arguments:
  • BSTR dllPath
Notes SDK Keyword: DllRegisterServer

EnumWindow

Return Value Window Object
Arguments:
  • ULONG index
Notes SDK Keyword: EnumWindows

GetActiveObject

Return Value Object
Arguments:
  • BSTR clsid
Notes

GetLocalTime

Return Value Time Object
Notes

GetOpenFileName

Return Value BSTR (file path)
Arguments:
  • BSTR defExt (Optional, default(""))
  • BSTR defFileName (Optional, default(""))
  • BSTR filter (Optional, default(""))
  • VARIANT_BOOL multiFiles (Optional, default(0))
Notes
  • Displays the "Open" file dialogbox
  • If multi-file returned, file names are separated with "\n"
  • Filter must be formated like:
    JPG Files|*.jpg;*.jpeg|GIF Files|*.gif|All Files|*.*||"
    

GetSaveFileName

Return Value BSTR (file Path)
Arguments:
  • BSTR defExt (Optional, default(""))
  • BSTR defFileName (Optional, default(""))
  • BSTR filter (Optional, default(""))
Notes
  • Displays the "Save as" file dialogbox
  • Filter must be formated like:
    JPG Files|*.jpg;*.jpeg|GIF Files|*.gif|All Files|*.*||"
    

GetSystemTime

Return Value Time Object
Notes

HarddwareInput

Return Value ULONG (return value of SendInput)
Arguments:
  • ULONG msg
  • USHORT paramL
  • USHORT paramH
Notes SDK Keyword: SendInput

KeyboardInput

Return Value ULONG (return value of SendInput)
Arguments:
  • VARIANT vk
  • VARIANT scan
  • ULONG flags
  • ULONG time (Optional, default(0))
  • ULONG extraInfo (Optional, default(0))
Notes SDK Keyword: SendInput

LockWorkStation

Return Value VARIANT_BOOL (success or fail)
Notes SDK Keyword: LockWorkStation

LogEvent

Return Value
Arguments:
  • BSTR message
  • USHORT type (Optional, default(4))
Notes

LogOff

Return Value VARIANT_BOOL (success or fail)
Arguments:
  • ULONG forceLevel
Notes SDK Keyword: ExitWindowsEx

MouseInput

Return Value ULONG (return value of SendInput)
Arguments:
  • LONG x
  • LONG y
  • ULONG dat
  • ULONG flags
  • ULONG time (Optional, default(0))
  • ULONG extraInfo (Optional, default(0))
Notes SDK Keyword: SendInput

RegisterActiveObject

Return Value ULONG
Arguments:
  • Object obj
  • BSTR clsid
  • ULONG flags (Optional, default(0))
Notes

ReportEvent

Return Value VARIANT_BOOL (success or fail)
Arguments:
  • BSTR name
  • BSTR text
  • ULONG type (Optional, default(4))
  • ULONG category (Optional, default(0))
  • ULONG eventID (Optional, default(0))
Notes SDK Keyword: ReportEvent

RestartWindows

Return Value VARIANT_BOOL (success or fail)
Arguments:
  • ULONG forceLevel
Notes SDK Keyword: ExitWindowsEx

SetSystemTime

Return Value BOOL
Arguments:
  • VARIANT dt
Notes

SHBrowseForFolder

Return Value BSTR (folder path)
Arguments:
  • BSTR defaultFolder (Optional, default(""))
  • BSTR title (Optional, default(""))
Notes SDK Keyword: SHBrowseForFolder

ShellExecute

Return Value VARIANT_BOOL (success or fail)
Arguments:
  • BSTR pathOrURL
Notes SDK Keyword: ShellExecuteEx

SHGetSpecialFolderPath

Return Value BSTR (folder path)
Arguments:
  • long id
Notes SDK Keyword: SHGetSpecialFolderPath

ShowCursor

Return Value
Arguments:
  • VARIANT_BOOL show
Notes SDK Keyword: ShowCursor

ShutDown

Return Value VARIANT_BOOL (success or fail)
Arguments:
  • ULONG forceLevel
Notes SDK Keyword: ExitWindowsEx

Sleep

Return Value
Arguments:
  • ULONG msToSleep
Notes SDK Keyword: Sleep

SystemCommand

Return Value System Command Result
Arguments:
  • BSTR cmd
  • ULONG timeoutMilliseconds (Optional, default(0xffffffff))
Notes Execute console command without displaying the console window.

TerminateProcess

Return Value ULONG
Arguments:
  • ULONG processID
Notes

UnRegisterActiveObject

Return Value
Arguments:
  • ULONG regID
Notes