Do you want to call Newbie from your own application? Newbie accepts commandline parameters passed to NEWBIE.EXE. The following are the list of possible parameters:
/login <user name>
/password <user's password>
/script <name of script to execute>
/exec <where script will be executed>, possible values: ie or leave blank for Newbie browser
/autoclose <close program after executing script>, possible values: true or leave blank
/param1 <value1> up to /param10 <value10>, where a maximum of 10
parameters can be passed on the commandline
/windowstate 0 - normal; 1 - minimized; 2 - maximized; 3 - hidden (not
supported)
Specifying ‘login’ and ‘password’ parameters will automatically login a user to Newbie without showing the logon screen provided both values are valid.
Specifying ‘script’ will automatically execute the specified script.
Specifying ‘exec’ will execute the script either on Internet Explorer or by default on the Newbie browser.
Specifying ‘autoclose’ and using the Newbie function NewbieScriptEnd in the script will automatically close Newbie once the script is finished executing.
Specifying /param(n) will allow you to pass and access external values in the script.
For example:
"c:\program files\newbie\newbie.exe" /login admin /password admin /script "My Yahoo Mail.nbl" /exec ie /windowstate 0
Command line above will run Newbie and execute "My Yahoo Mail.nbl" script on Internet Explorer. The script should be present in the user's directory.
"c:\program files\newbie\newbie.exe" /login admin /password admin /script "My Yahoo Mail.nbl" /autoclose true
This command line will run Newbie and execute "My Yahoo Mail.nbl" script on the Newbie browser and close itself once it encounters NewbieScriptEnd() in the script.
"c:\program files\newbie\newbie.exe" /login admin /password admin /script "My Yahoo Mail.nbl" /param1 Inbox
This command line will run Newbie and execute "My Yahoo Mail.nbl" script on the Newbie browser and pass the string "Inbox" as parameter #1. You can retrieve this parameter in the script using the GetArrayParam() function.