Re: How do you pass a search word to the Euphoria documentation index.html search box?

new topic     » goto parent     » topic index » view thread      » older message » newer message

I assume you can run wscripts in wine? this works in windows if your editor doesn't handle context sensitive help from selected words automatically. you could link this script to a command.

//usage: openEu4Uchm.js batch 
 
//parse commandline options 
var oArgs = WScript.Arguments; 
 
var WshShell = new ActiveXObject("WScript.Shell") 
 
WshShell.Run( "c:\\Eu\\eu4chm\\eu410uo.chm") 
WScript.sleep(3990) 
 
//view->index 
WshShell.SendKeys("%V%N");       WScript.Sleep(800); 
WshShell.SendKeys(oArgs(0)+"^M");   WScript.Sleep(800); 
 
//feel lucky, hit display 
WshShell.SendKeys("%D"); 
 

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu