How to link to a local file in HTA mode?(Activex?)

32 views
Skip to first unread message

arbl...@gmail.com

unread,
Apr 17, 2018, 11:27:52 AM4/17/18
to TiddlyWiki
Hello everyone,
I renamed tiddlywiki.html to tiddlywiki.hta. I used it in HTA mode.
And I have some word/excel/txt files in the same directory.
Is there any way to link to a local word/excel/txt in HTA mode?

In general html, I can use activexobject just like the following:

<script language="Javascript">  
function doword(doc)  
{  
var url=unescape(window.location.href).replace( "file:///","");  
url =url.substring(0,url.lastIndexOf("/")+1).replace("/","//");  
url=url+doc;  
var WordApp=new ActiveXObject("Word.Application");  
WordApp.Application.Visible=true;  
var Doc=WordApp.Documents.Add(url,true);  
}  
</script>  
</head>  
<body>  
<button onClick="doword('test2.doc')">OPEN</button>  

but how to use avtivexobject in tiddlywiki?any example or for instance please?

Thanks
Reply all
Reply to author
Forward
0 new messages