Listed below is a sample macro for use with the Century Software TinyTerm Terminal Emulator to launch a WebDocs search right from within TinyTerm.
///////////////////////////////////////////////////////////////////////////////////// // 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.