|
Open a file in an external application.
Syntax 1 (when called from a browser script)
OpenApplicationFile(
fileName
[,queueSize = 10]
[,option = ""]
[,showCmd = ""]
)
Syntax 2 (when called from a script action)
OpenApplicationFile(
fileName
[,option = ""]
[,showCmd = ""]
)
Parameters
fileName
|
|
Type:
|
character
|
|
The file path of the external application.
|
queueSize
|
|
Type:
|
Number
|
|
If you specify a value of 1 or higher, a queue will be prepared for the call to OpenApplicationFile. This function is provided to ensure smooth execution of the method when the OpenApplicationFile method is called multiple times in succession. If you specify a value of 0, no queue will be prepared and the call will be made directly.
This parameter is only valid when calling from a browser script. This parameter cannot be specified when calling this method from a script Ver. 2 action.
|
opton
|
|
Type:
|
character
|
|
Passes options to the application being executed.
|
showCmd
|
|
Type:
|
character
|
|
You can specify the application execution format.
SHOWNORMAL --- Normal display. If empty, it will become SHOWNORMAL.
HIDE --- Hide
MAXIMIZE --- Maximum display
MINIMIZE --- Minimum display
|
Return Value
|
|
Type:
|
Boolean
|
|
FALSE - Failure. TRUE - Success.
|
Explanation
Specify a file name to automatically launch the associated external application.
|
Example
Example 1) Open a text file using Notepad etc.
|
::OpenApplicationFile("abc.txt");
|
Example 2) Open a specific URL in the WEB browser
|
::OpenApplicationFile("www.google.com");
|
Example 3) Execute a batch file from a browser script without displaying the command prompt
|
::OpenApplicationFile("test.bat", 0, "", "HIDE");
|
|
Supported
reference
OpenForm
OpenViewForm
OpenPrevForm
OpenNextForm
ClearFormHistory
OpenHomeForm
GetCurrentForm
GetForm
IsHavePrevForm
IsHaveNextForm
OpenHiddenForm
AddResourceFile
OpenFile
OpenBrowser
CloseBrowser
OpenApplication
OpenApplicationFile
AddRecentFilePath
GetRecentFilePath
ClearRecentFilePath
GetOpenFileType
ShowFullScreen
ShowTaskbarIcon
RefreshScreen
ZoomIn
ResetZoom
SetZoom
GetZoom
SetZoomInRatio
GetZoomInRatio
SetStretch
GetActiveDialogName
GetActiveViewName
GetAllDialogName
SetModalDialog
ShowDialog
BringDialogToTop
BringBrowserToTop
SetDialogState
EnableDialogMenu
GetMenuCandidate
SetBrowserState
GetBrowserState
GetBrowserType
ShowComment
UpdateTitle
SetMouseCursor
GetChildObj
|