The Application Object - HTML2EXE Programming Interface

Document Path: Home Page / Programming / HTML2EXE / Interfaces / Application Object  
Properties ActiveFrame AppFolder AppGUID AppIsUnique AppPath argc argv BinaryResource CurrentDirectory ExitCode Frame Internet MainFrame MessageHook Misc ProcessID Property Script SocketsMan System TextResource ThreadID WebEventHandler ZIP
Methods CreateBufferObject CreateGlobalTimer CreateMailSlotObject DeleteGlobalTimer DoEvent Exit getenv GetFrameFromWebBrowserObject GetVariable InstallShellTrayIcon PumpMessages ReleaseVariable RemoveShellTrayIcon SetCursor
Properties

ActiveFrame

Value Frame Object
Access Get
Notes

AppFolder

Value BSTR
Access Get
Notes

AppGUID

Value BSTR
Access Get
Notes

AppIsUnique

Value BOOL
Access Get
Notes

AppPath

Value BSTR (path of the programm file)
Access Get
Notes

argc

Value ULONG (number of command line arguments)
Access Get
Notes

argv

Value BSTR (argument value)
Arguments:
  • ULONG index
Access Get
Notes The first argument always is the program file path

BinaryResource

Value Buffer Object
Arguments:
  • BSTR name
Access Get
Notes

CurrentDirectory

Value BSTR (directory)
Access Get, Put
Notes SDK Keywords: GetCurrentDirectory, SetCurrentDirectory

ExitCode

Value int (exit code for the program)
Access Get, Put
Notes

Frame

Value Frame Object
Arguments:
  • VARIANT indexOrName
Access Get
Notes Find a Frame object by index or name

Internet

Value Internet Object
Access Get
Notes

MainFrame

Value Frame Object
Access Get
Notes

MessageHook

Value Object
Access Get
Notes Read Hooks and Callbacks for more information.

Misc

Value Misc Object
Access Get
Notes

ProcessID

Value ULONG
Access Get
Notes

Property

Value VARIANT
Arguments:
  • BSTR name
Access Get, Put
Notes For storing runtime variables

Script

Value Object
Arguments:
  • BSTR resName
Access Get
Notes Load script object

SocketsMan

Value Socket Manager Object
Access Get
Notes

System

Value System Object
Access Get
Notes

TextResource

Value BSTR
Arguments:
  • BSTR name
Access Get
Notes

ThreadID

Value ULONG
Access Get
Notes

WebEventHandler

Value Function (web event handler)
Access Get, Put
Notes Read Hooks and Callbacks for more information.

ZIP

Value ZIP Object
Access Get
Notes
Methods

CreateBufferObject

Return Value Buffer Object
Notes

CreateGlobalTimer

Return Value ULONG
Arguments:
  • Object callbackFunc
  • ULONG interval
  • VARIANT callBackParam (Optional, default(0))
Notes Read Hooks and Callbacks for more information.

CreateMailSlotObject

Return Value MailSlot Object
Notes

DeleteGlobalTimer

Return Value
Arguments:
  • ULONG timerID
Notes

DoEvent

Return Value
Arguments:
  • ULONG msToWait
Notes

Exit

Return Value
Arguments:
  • ULONG forceFlag
Notes SDK keywords: ExitProcess, TerminateProcess

getenv

Return Value BSTR
Arguments:
  • BSTR name
Notes

GetFrameFromWebBrowserObject

Return Value Frame Object
Arguments:
  • Object web
Notes

GetVariable

Return Value Object
Arguments:
  • BSTR name
  • BOOL createIfNotExists
  • VARIANT initialValue (Optional, default(0))
Notes

InstallShellTrayIcon

Return Value
Arguments:
  • BSTR tipText
  • BSTR iconResName
  • Object callback
Notes
  • Each application can install one icon on the System Tray.
  • The callback is called on the user clicks a mouse button on the icon.
  • Callback Functin Protye (javascript):
    functin MyCallback(button)
    {
    //button: 1=left, 2=middle, 3=right
    }
    

PumpMessages

Return Value
Arguments:
  • ULONG numMS
Notes

ReleaseVariable

Return Value
Arguments:
  • Object varObj
Notes Release a appliation-wide variable. Calling this method is not necessary. But if you call, you must not call it more than once.

RemoveShellTrayIcon

Return Value
Notes Should be called before applicatin exits.

SetCursor

Return Value
Arguments:
  • BSTR cursorName
Notes SDK Keyword: SetCursor