MJServiceAutomation

From wiki.jriver.com
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

Interface for working with a single service

Functions

BOOL Process(string bstrCurrentURL, string bstrNewURL, string bstrPostData)

Description: calls a service's Process function
Parameters:

  • bstrCurrentURL: the current URL for the service
  • bstrNewURL: the URL to visit
  • bstrPostData: empty or the name of a file containing POST data, the file will be deleted

Return Value: TRUE on success, FALSE otherwise

BOOL Execute(string bstrCommand, VARIANT vFileDisp, string *bstrResult)

Description: calls a service's Execute function
Parameters:

  • bstrCommand: the command
  • vFileDisp: MJFilesAutomation interface

bstrResult: a pointer to the result Return Value: TRUE on success, FALSE otherwise

LPDISPATCH GetWebBrowserHTMLDocument()

Description: get the currently viewed service web page
Return Value: an IDispatch pointer to an IHTMLDocument2 interface