hta

Can I embed an icon to a .hta file?

你说的曾经没有我的故事 提交于 2019-11-30 11:39:04
I have written an HTML Application (hta file) and am wondering if there is a way to embed an icon file into the hta file itself. I have seen html emails that include embedded graphic files, is there any way to do this with html applications and icons? HTA files have an HTA:APPLICATION tag that allows you to specify an icon, but I want to have only a single file for download. I don't want to have an external icon file. Is this possible? More info on hta files here: HTA files . I've found an hack to set the icon. Prepare an icon file icon.ico and an hta file source.hta with the following

How to return exit status from an HTA (vbscript) to the calling Batch file

谁都会走 提交于 2019-11-30 09:24:59
问题 How to return exit status from an HTA (vbscript) to the calling Batch file ? My batch file code @echo OFF echo Configuring Test... call AppConfigurationEditor.hta call TestConfigurationEditor.hta 1.If user click on CANCEL button on the first HTA I dont want to run 2nd HTA. 2.Batch script calls/displays the 2nd HTA immediately, not wait till closing of 1st HTA. 回答1: HTAs have no implemented way of returning an errorlevel to the caller process. WScript.Quit can not be used. The lenguage engine

CSS3 support for HTA

笑着哭i 提交于 2019-11-30 09:15:23
Is HTML5 and CSS3 supported by HTA? If I am planning to use my application only with Windows operating system: It is a simple application that does some basic file handling, is HTA a viable option? Will there be any serious performance issues if I use a simple flat file (text file) to store data of my HTA? HTAs not only support everything a webpage does—namely HTML, Cascading Style Sheets (CSS), scripting languages, and behaviors—but also HTA–specific functionality. This added functionality provides control over user interface design and access to the client system. http://msdn.microsoft.com

Sleep routine for HTA scripts

人盡茶涼 提交于 2019-11-30 09:07:00
问题 In several of my .HTA scripts that I created, I had the need for the VBScript WScript.Sleep command which simply waits for a number of milliseconds without utilizing the CPU. And when I browse the web, it appears that I am not the only one looking for this: https://www.google.nl/search?q=hta+sleep (I bet that if you read this, you probably need(ed) this as well) The best solution that I could find appears to be the one which uses the PING command. But especially for a situation were just need

How do I add coordinates to an SVG polyline?

断了今生、忘了曾经 提交于 2019-11-29 21:09:17
问题 How do I add coordinates to an existing SVG polyline with JavaScript? <svg height="240" width="700" id='svg'> <polyline points="0, 240 40, 25 60, 40 80, 120 120, 140 200, 180 500, 120 600, 5" style="fill:none;stroke:#000;stroke-width:3" /> </svg> I am using IE 9 (in a .hta file) and need to be able to dynamically append new points to the polyline. The goal is to be able to create a line graph. I apologize in advance, I have absolutely no idea how to reference this attribute. Any guidance for

How to return exit status from an HTA (vbscript) to the calling Batch file

隐身守侯 提交于 2019-11-29 16:07:01
How to return exit status from an HTA (vbscript) to the calling Batch file ? My batch file code @echo OFF echo Configuring Test... call AppConfigurationEditor.hta call TestConfigurationEditor.hta 1.If user click on CANCEL button on the first HTA I dont want to run 2nd HTA. 2.Batch script calls/displays the 2nd HTA immediately, not wait till closing of 1st HTA. HTAs have no implemented way of returning an errorlevel to the caller process. WScript.Quit can not be used. The lenguage engine vbscript/javascript/... is the same, but the host object that instantiates the engine is not the habitual

CSS3 support for HTA

时光毁灭记忆、已成空白 提交于 2019-11-29 14:01:13
问题 Is HTML5 and CSS3 supported by HTA? If I am planning to use my application only with Windows operating system: It is a simple application that does some basic file handling, is HTA a viable option? Will there be any serious performance issues if I use a simple flat file (text file) to store data of my HTA? 回答1: HTAs not only support everything a webpage does—namely HTML, Cascading Style Sheets (CSS), scripting languages, and behaviors—but also HTA–specific functionality. This added

Will Microsoft Edge and Windows 10 support HTA?

久未见 提交于 2019-11-29 13:30:15
I'm working on an HTML Application for Windows 8.1, and, as our office soon will use Windows 10, I'm wondering if MS Edge and Windows 10 still support HTA. No. However, you can still run legacy HTAs in IE9 mode. For new development using web technologies, Microsoft is recommending a switch to Windows Store Apps. Here's what Microsoft had to say about HTA support in IE10 and later: The Internet Explorer team is increasingly focused on standards compliance, and markup-based behaviors are not part of modern web standards. In IE10 mode support for markup based behaviors has been removed, and this

How to send user input to cmd application and get back the output result?

自作多情 提交于 2019-11-29 12:46:15
I design ".html" file that takes inputs from the user and returns some outputs. The inputs are Query sequence and Name of database. I want to put the query sequence in a txt file and execute the local program "cmd application" by type: blastn -query querySequence.txt -db databaseName -out outputFile.txt Then, present the output file to the user. I am using windows 7. I think perl is a solution but I did not know anything about perl and how it is working! Screenshot of CommandLine.hta So, just copy and paste this code on your notepad or notepad++ and save it as CommandLine.hta and execute it by

ActiveX event handlers in an HTA using Javascript

你。 提交于 2019-11-28 11:50:52
In C# I can write event handlers as follows: var wdApp = new Microsoft.Office.Interop.Word.Application(); wdApp.DocumentBeforeSave += (Document doc, ref bool saveAsUI, ref bool cancel) => { //do stuff here }; In VBA/VB6, I can use static event handling: Dim WithEvents wdApp As Word.Application Private Sub wdApp_DocumentBeforeSave(ByVal Doc As Document, SaveAsUI As Boolean, Cancel As Boolean) 'do stuff here End Sub I would prefer to use dynamic event handling. However, in Javascript, even when using static event handling with the syntax described here : var wdApp = new ActiveXObject('Word