Listed below is a sample macro for use with the Century Software TinyTerm Terminal Emulator to launch a WebDocs search right from within TinyTerm.

  1. Create the macro in the '''C:\Program files\Century\TinyTERM''' directory as file: webdocsearch.cs
  2. 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");
  3. 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();

 

Still have questions? We can help. Submit a case to technical support

Last Modified On:
You don't have the appropriate permissions.
No, open a new Support Case