Listed below is a sample macro for use with the Century Software TinyTerm Terminal Emulator to launch a WebDocs search right from within TinyTerm.
- Create the macro in the '''C:\Program files\Century\TinyTERM''' directory as file: webdocsearch.cs
- After the macro file is created, run it via the '''Tools/Execute Script''' option in TinyTerm or assign it to a keyboard shortcut using the following macro COMMAND: CompileFile("test.cs");
- When prompted by WebDocs for a user ID and password, use: RJSDEMO as the user and RJSDEMO as the password.
/////////////////////////////////////////////////////////////////////////////////////
// WebDocSearch.cs
//
// This will scrape the selected screen area and will launch a WebDocs search URL
// to locate all selected documents that match the key info.
/////////////////////////////////////////////////////////////////////////////////////
function
webdocsearch()
{
var screendata;
var url;
//------------------------------------------------------
// Extract 80 Characters of data from Column 1, Row 22
//------------------------------------------------------
screendata = te.GetSelection(1,22,80,1,0);
//------------------------------------------------------
// Build WebDocs Search URL based on search data
// For this example we will search by document title.
//------------------------------------------------------
url = "http://rjsdemo.webdocsonline.com/webdoc.asp?documenttitle=" + trim(screendata) + "&dosearch=1";
//------------------------------------------------------
// Run the WebDocs Browser Document Search
//------------------------------------------------------
BrowseToURL(url);
}
webdocsearch();
Last Modified On:
No, open a new Support Case