
Tiny Toolbar SDK. Other commands.
The following applies for all plugin commands mentioned below:
- PLUGIN_DATA::sFrom = your plugin tag
- PLUGIN_DATA::hBrowser = browser handle specified in Event function.
sCommand "set" sTo "balloon" Param1.pChar [in] text buffer Param2.nInt system icon ID. Plugin uses LoadIcon(NULL,Param2.nInt) in order to get icon handle Param3.dwDword Time to show, in miliseconds. Specify zero here to disable automatic balloon window closing. Param4 reserved this will show small popup balloon window that will point to plugin's window and display specified text.
sCommand "get" sTo "balloon" Param1.pChar [out] text buffer Param2 [in/out] text buffer size Param3 reserved Param4 reserved this will retrieve balloon window text (in case if it's still visible)
sCommand "set" sTo "db" Param1.pChar [in] variable name. It's global variable if its name starts with '_' character, and local otherwise. Global variables are stored in a file on a disk, and are available for all browser instances. Local variables are stored in memory only and are depend on browser instance. Param2.pVoid [in] data buffer Param3.dwDword [in] data buffer size in bytes Param4 reserved this will set variable value. Variable name may contain only digits, numbers, and '_' character
sCommand "get" sTo "db" Param1.pChar [in] variable name. Param2.pVoid [out] data buffer Param3.dwDword [in] data buffer size in bytes Param4 reserved this will retrieve variable value
sCommand "Debug" sTo "db" Param1.pChar [in] "On" will show debug window
[in] "Off" will close debug window.Param2 reserved Param3 reserved Param4 reserved this will show/close debug window (similar to choosing 'Debug' item in expert menu)
sCommand "reset_pasword" sTo "rijndael" Param1 reserved Param2 reserved Param3 reserved Param4 reserved this will reset password in memory (but not in registry).
sCommand "encode" sTo "rijndael" Param1.pVoid [in/put] data buffer Param2.dwDword [in] data buffer size Param3 reserved Param4 reserved this will encode data using Rijndael cipher
sCommand "decode" sTo "rijndael" Param1.pVoid [in/put] data buffer Param2.dwDword [in] data buffer size Param3 reserved Param4 reserved this will decode data using Rijndael cipher
sCommand "file_read" sTo "rijndael" Param1.pChar [in] file name Param2.pVoid [out] data buffer Param3.dwDword [in] data buffer size Param4.dwDword [out] number of bytes read this will load data from file and decode it.
sCommand "file_write" sTo "rijndael" Param1.pChar [in] file name Param2.pVoid [in] data buffer Param3.dwDword [in] data buffer size Param4.dwDword [out] number of bytes read this will encode data and save it to file.
Copyright © 1999-2008 SoftCab Inc. All Rights Reserved