|
Auto Debug On Line Help |
|
addMenuItemThe addMenuItem function to add a menuitem to Auto Debug System, user can click the menu to call script function. void addMenuItem( BSTR szDescript, // Menu descript BSTR szFunction // Menu function ); Parameters
Return ValuesNo return value. ExamplesVBscript Example: sub main addMenuItem "Save Log", "SaveLogFile" addMenuItem "Kill Trace Process", "KillTraceProcess" startProcess "Notepad.exe", "c:\a.txt" end sub sub SaveLogFile MsgBox "Call Save Log File" saveLog "c:\aaa.dsf" end sub sub KillTraceProcess MsgBox "Call Kill Process" killProcess false end sub JavaScript Example: function main(){ addMenuItem("Save Log", "SaveLogFile"); addMenuItem("Kill Trace Process", "KillTraceProcess"); startProcess("Notepad.exe", "c:\a.txt"); } function SaveLogFile(){ echo("Call Save Log File"); saveLog("c:\aaa.dsf"); } function KillTraceProcess(){ echo("Call Kill Process"); killProcess(false); } RequirementsAuto Debug for Windows: Unsupport. See AlsoScript Information Overview, Script Functions, startProcess,killProcess ,saveLog |
Copyright c 2003-2025, www.autodebug.com All Rights Reserved |