The System Object - Script2CMD Programming Interface

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

CursorX

Value long
Access Get, Put
Notes

CursorY

Value long
Access Get, Put
Notes

FileSystem

Value Object
Access Get
Notes

OSVersionInfo

Value Object
Access Get
Notes

TickCount

Value ULONG
Access Get
Notes
Methods

CreateDirectoryWatcherObject

Return Value Object
Notes

CreateDLLVersionInfoObject

Return Value Object
Notes

CreateFileVersionInfoObject

Return Value Object
Notes

CreateGUIDObject

Return Value Object
Notes

CreateHotKeyObject

Return Value Object
Notes

CreateImageObject

Return Value Object
Notes

CreateObject

Return Value Object
Arguments:
  • BSTR progIDorCLSID
Notes

CreateProcessInfoObject

Return Value Object
Notes

CreateProcessObject

Return Value Object
Notes

CreateProxyBlanket

Return Value Object
Notes

CreateRawSocketObject

Return Value Object
Notes

CreateTimeObject

Return Value Object
Notes

CreateTimeSpanObject

Return Value Object
Notes

CreateWindowObject

Return Value Object
Notes

DllRegisterServer

Return Value long
Arguments:
  • BSTR dllPath
Notes

DllUnregisterServer

Return Value long
Arguments:
  • BSTR dllPath
Notes

EnumWindow

Return Value Object
Arguments:
  • ULONG index
Notes

GetActiveObject

Return Value Object
Arguments:
  • BSTR clsid
Notes

GetAsyncKeyState

Return Value int
Arguments:
  • int vkey
Notes

GetLocalTime

Return Value Object
Notes

GetOpenFileName

Return Value BSTR
Arguments:
  • BSTR defExt (Optional, default(""))
  • BSTR defFileName (Optional, default(""))
  • BSTR filter (Optional, default(""))
  • VARIANT_BOOL multiFiles (Optional, default(0))
Notes

GetSaveFileName

Return Value BSTR
Arguments:
  • BSTR defExt (Optional, default(""))
  • BSTR defFileName (Optional, default(""))
  • BSTR filter (Optional, default(""))
Notes

GetSystemTime

Return Value Object
Notes

HaredwareInput

Return Value ULONG
Arguments:
  • ULONG msg
  • USHORT paramL
  • USHORT paramH
Notes

KeyboardInput

Return Value ULONG
Arguments:
  • VARIANT vk
  • VARIANT scan
  • ULONG flags
  • ULONG time (Optional, default(0))
  • ULONG extraInfo (Optional, default(0))
Notes

LockWorkStation

Return Value VARIANT_BOOL
Notes

LogEvent

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

LogOff

Return Value VARIANT_BOOL
Arguments:
  • ULONG forceLevel
Notes

MouseInput

Return Value ULONG
Arguments:
  • LONG x
  • LONG y
  • ULONG dat
  • ULONG flags
  • ULONG time (Optional, default(0))
  • ULONG extraInfo (Optional, default(0))
Notes

RegisterActiveObject

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

ReportEvent

Return Value VARIANT_BOOL
Arguments:
  • BSTR name
  • BSTR text
  • ULONG type (Optional, default(4))
  • ULONG category (Optional, default(0))
  • ULONG eventID (Optional, default(0))
Notes

RestartWindows

Return Value VARIANT_BOOL
Arguments:
  • ULONG forceLevel
Notes

SetSystemTime

Return Value BOOL
Arguments:
  • VARIANT dt
Notes

SHBrowseForFolder

Return Value BSTR
Arguments:
  • BSTR defaultFolder (Optional, default(""))
  • BSTR title (Optional, default(""))
Notes

ShellExecute

Return Value VARIANT_BOOL
Arguments:
  • BSTR pathOrURL
Notes

SHGetSpecialFolderPath

Return Value BSTR
Arguments:
  • long id
Notes

ShowCursor

Return Value
Arguments:
  • VARIANT_BOOL show
Notes

ShutDown

Return Value VARIANT_BOOL
Arguments:
  • ULONG forceLevel
Notes

Sleep

Return Value
Arguments:
  • ULONG msToSleep
Notes

SystemCommand

Return Value int
Arguments:
  • BSTR cmd
Notes

TerminateProcess

Return Value ULONG
Arguments:
  • ULONG processID
Notes

UnRegisterActiveObject

Return Value
Arguments:
  • ULONG regID
Notes