hta

localStorage like storage alternatives for HTA

两盒软妹~` 提交于 2019-11-28 11:36:43
I am developing a HTA application, for that I need to store some data at client side using JavaScript. Like localStorage in HTML5, I am just looking for same functionality if possible. Please let me know if I can found any. In HTA you are free to use any ActiveX you want. FileSystemObject is the best solution for simple folder and file actions, though it can read and write text files only. With this ActiveX Control you can also create and delete folders and files, retrieve their properties etc. FSO and HTAs are still working in IE9. However, all development and support was ended at IE7, so all

VBScript file or folder selection

放肆的年华 提交于 2019-11-28 10:25:41
I have a small hta file with few vbs codes. It selects folder or file then make a copy to a fixed location. <html> <head> <Title>File Copy </Title> <style> img.exco { position:absolute; bottom:10px; right:10px } </style> <!--Put this sub here to avoid resize flickering.--> <script language = "VBScript"> sub DoResize 'resize window.resizeTo 690,350 screenWidth = Document.ParentWindow.Screen.AvailWidth screenHeight = Document.ParentWindow.Screen.AvailHeight posLeft = (screenWidth - 700) / 2 posTop = (screenHeight - 430) / 2 'move to centerscreen window.moveTo posLeft, posTop end sub DoResize() <

Get Output of a PowerShell Script in a HTA

别来无恙 提交于 2019-11-28 10:19:47
I am trying to call a powershell script from HTML Application [HTA] as : Set WshShell = CreateObject("WScript.Shell") Set retVal = WshShell.Exec("powershell.exe C:\PS_Scripts\test.ps1") Where the test.ps1 just has the process count returning return (Get-Process).Count I want to get the output of this powershell script and then store it in a local variable or display on HTA. How can this be done ? I tried using : retVal.StdIn.Close() result = retVal.StdOut.ReadAll() alert(result) But the printed result value is null. Please help me how to achieve this. This works for me: test.ps1: (Get-Process)

Reading and writing an INI file

送分小仙女□ 提交于 2019-11-28 10:08:32
问题 I have been toying with the below script to be able to read settings for use with my HTA (creating a game launcher). Here is my current HTA: http://pastebin.com/skTgqs5X It doesn't quite work, it complains of the WScript object being required. While I understand Echo will not work like that in a HTA I am having trouble modifying the code so it will work. Even just removing all Echo references it still has an issue with objOrgIni on line 200 of the below code (with the WScript references

Will Microsoft Edge and Windows 10 support HTA?

|▌冷眼眸甩不掉的悲伤 提交于 2019-11-28 07:09:12
问题 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. 回答1: 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

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

末鹿安然 提交于 2019-11-28 06:19:42
问题 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! 回答1: Screenshot of CommandLine.hta So,

How to debug IE9 HTA?

岁酱吖の 提交于 2019-11-28 04:35:11
问题 Has anyone gotten a debugger attached to mshta.exe after installing IE9? (64bit or WOW64) 回答1: I'm on a Vista x64, so I have to contend with the 32bit/64bit barrier. HTA c:\windows\system32\mshta.exe (mshta32) c:\windows\syswow64\mshta.exe (mshta64) Launching "mshta32 foo.hta" may use mshta32 or mshta64 depending on what is associated with HTA the same goes if "mshta64 foo.hta" is used "cmd /C start foo.hta" would have the same affect. Debugger MS Script Editor (from Office XP/2003) for JS

How to close a HTA window from another HTA?

杀马特。学长 韩版系。学妹 提交于 2019-11-28 02:17:37
I've tried to implement my own modal dialogs ( Why? ). I open a new window using WScript.Shell : dlg = shell.Run(dlgPath, 1, true); The line above creates a "semi-modal" HTA window. The script execution is stopped at this line, but the main window is still responsive. This issue is tackled within onfocusin eventhandler, which returns focus back to the new HTA window using shell.AppActivate() . This prevents even "Close Window" button to close the main window. However, in Windows7 there's a back gate to close the main window, the icon in Windows Task Bar. If the main window is closed, a decent

HTA and 'x-ua-compatible' meta tag

橙三吉。 提交于 2019-11-27 23:19:55
Added to post Jun-19-2014 Thanks Bond. Since you had IE9, I appreciate your test. Hopefully if somebody out there has IE 10 they will test it, too. It does not make any sense why under the IE 11 engine you can only run compatibility up to ie8. I created this tiny, itty-bitty HTA in order to post it so hopefully I can find out what I am missing. My system is a Win7 Pro 64bit with IE 11. When I set the meta tag as: <meta http-equiv="x-ua-compatible" content="ie=8"> the HTA runs peachy-keen. No problems. But when I change it to: <meta http-equiv="x-ua-compatible" content="ie=9"> it doesn't run so

Can I embed an icon to a .hta file?

陌路散爱 提交于 2019-11-27 16:01:49
问题 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. 回答1: I've found