Opens a Newlook screen (.nl) or batch (.nll) file. Corresponds to the OpenFile action.
App.OpenFile([FileName][, AlreadyConnected])
Newlook Smartclient
Newlook Server
FileName - (String, Required)
String value specifying the .nl or .nll file to open.
By default, Newlook assumes that .nl or .nll files are stored in the default Newlook solution folder, therefore any path specified must be relative to this location.
AlreadyConnected - (Integer, Optional)
Integer value specifying what action to take if Newlook is already connected. This argument may be set to any of the pre-defined Already connected constants.
If AlreadyConnected is not specified, nlConnPrompt is used.
No return value.
JSCRIPTThe following example opens the "MessageScreen.nl" file using a relative path (the full path would be C:\ProgramData\Newlook 11.1\@Properties\NL Files\MessageScreen.nl).
function OpenNLFile() { App.OpenFile("@Properties/NL Files/MessageScreen.nl", nlConnTerminate); }
The next example opens the "MessageScreen.nl", from a folder outside the solution folder, and hence the full path is specified. function OpenNLFile() { App.OpenFile("C:/Temp/MessageScreen.nl", nlConnTerminate); }
The last JScript example opens the "SendMessagePath.nll" (Newlook batch file), from a folder outside the solution folder. function OpenNLFile() { App.OpenFile("C:\\Temp\\SendMessagePath.nll", nlConnTerminate); } VB SCRIPT
Sub OpenNlFile App.OpenFile "@Properties/NL Files/SendMessagePath.nll", nlConnTerminate end Sub
|
CloseFile method | OpenFile action
© 2004-2021 looksoftware. All rights reserved.