hta

When does InnerHTML execute immediately?

假如想象 提交于 2019-12-02 12:11:41
I would expect this HTA code to print a to be replaced some time later by b . However, what it does is it prints nothing for some time, and then b . With the MsgBox line enabled, it does print a first. It seems that the execution of statusinfo.InnerHTML = "a" is postponed. Can any body tell me why this is? And how would I obtain the desired behavior (immediate refresh)? <SCRIPT LANGUAGE=VBScript> Sub doThis() statusinfo.InnerHTML = "a" 'MsgBox "stop" intensiveOperation statusinfo.InnerHTML = "b" End Sub Sub intensiveOperation() 'takes long End Sub </SCRIPT> <BODY> <button onclick="doThis">Run<

Input TextArea and Output TextArea and Save To

放肆的年华 提交于 2019-12-02 08:04:25
问题 I've written up a quick hta for quick actions via button: copy to clipboard, message boxes, and run specific files. Now I'm trying figure out how to add: 2 textarea boxes TextArea1 - Type text inside Submit button to save textarea1 to local file and load to textarea2 TextArea2 - will display text from saved local file from textarea1 Thanks for your time and consideration <html> <head> <title>**All Access QL v1.0**</title> <HTA:APPLICATION ID="TestHTA" APPLICATIONNAME="TestHTA" ICON = "C:\L.S

Launch Program after Password Verification

梦想与她 提交于 2019-12-02 08:04:02
I need some help, I have found this password program on the Internet, it is perfect, but there is one problem.What I would like to do, once the password is verified, launch my other program that I have made, the other program that I have made is HTA (Hyper Text Application), is there anyway that I can do this? Here is the code: package components; import javax.swing.*; import java.awt.*; import java.awt.event.*; import java.util.Arrays; /* PasswordDemo.java requires no other files. */ public class PasswordDemo extends JPanel implements ActionListener { private static String OK = "ok"; private

Input TextArea and Output TextArea and Save To

浪尽此生 提交于 2019-12-02 07:27:10
I've written up a quick hta for quick actions via button: copy to clipboard, message boxes, and run specific files. Now I'm trying figure out how to add: 2 textarea boxes TextArea1 - Type text inside Submit button to save textarea1 to local file and load to textarea2 TextArea2 - will display text from saved local file from textarea1 Thanks for your time and consideration <html> <head> <title>**All Access QL v1.0**</title> <HTA:APPLICATION ID="TestHTA" APPLICATIONNAME="TestHTA" ICON = "C:\L.S.L._QL_HTAv1.0\Media\RazerIcon.ico" BORDER="thin" MINIMIZEBUTTON="no" MAXIMIZEBUTTON="no" SCROLL="no"

JavaScript to call a VBA routine with parameters

女生的网名这么多〃 提交于 2019-12-02 02:46:56
问题 I need to pass arguments to a Excel VBA code from JavaScript of HTA. I can successfully call VBA function, but unable to pass string arguments correctly. JavaScript function can pass different string arguments. Below is code in simple and demo form. Excel-VBA code Sub subTest(strName As String) MsgBox strName End Sub HTA code with Javascript <!DOCTYPE html> <html> <head> <title>HTA</title> <hta:application id="oHta" applicationname="htaNavi" border="1" borderstyle = normal contextmenu = "yes"

With Excel, trying to find genuine used range from external HTA

风流意气都作罢 提交于 2019-12-02 02:16:35
I've been using this command: LastRow = ActiveSheet.UsedRange.Rows.Count But the UsedRange property can often be inaccurate. So I'm looking for an alternative. I found a great tip explaining this method: LastRow = Cells.Find("*", SearchOrder:=xlByRows, SearchDirection:=xlPrevious).Row This works a treat in Excel. However, I'm running code from an HTA, so I need to convert this line, and I'm struggling. THIS is my question --- please can someone offer guidance on how to convert this simple code into an HTA-compatible one? Out of interest, to try to circumvent this problem, I tried writing a

How do you pass a javascript variable as an argument to a vbscript function (in the context of HTAs)?

喜你入骨 提交于 2019-12-02 00:56:54
I am writing an HTA and I need to pass a variable that I have in Javascript to a VBScript function. Can you please let me know how to do this? Here is a (nonworking) example of what I'm trying to do: <!DOCTYPE ... > <html> <head> <HTA:APPLICATION ID="chrome" APPLICATIONNAME="kiosk" ... /> ... <script type="text/javascript"> ... var closer = "C:\Program Files"; ... </script> <script language="VBScript" src="close.vbs"></script> </head> <body> <a href="#" onClick="VBScript:CloseExplorerWindow(window.closer)">close</a> </body> </html> Please bear in mind that this example is waaaay oversimplified

Compiling .hta file to .exe

梦想与她 提交于 2019-12-01 16:47:54
问题 I have searched far and wide for a way to compile my .hta file (and resources) to a .exe file. There are plenty of applications that claim to be able to do this - but they have not worked for this application - which is a mixture of javascript and VB. Simply, (and naively,) I don't want people looking at / screwing with the code. Any suggestions or solutions would be greatly appreciated. EDIT: Of course, I understand that javascript and VB are not "compilable" since they are interpreted

How to add filter to a file chooser in batch?

自闭症网瘾萝莉.ら 提交于 2019-12-01 14:00:49
I'm using this code to create a file chooser with batch File / folder chooser dialog from a Windows batch script @echo off set dialog="about:<input type=file id=FILE><script>FILE.click();new ActiveXObject set dialog=%dialog%('Scripting.FileSystemObject').GetStandardStream(1).WriteLine(FILE.value); set dialog=%dialog%close();resizeTo(0,0);</script>" for /f "tokens=* delims=" %%p in ('mshta.exe %dialog%') do set "file=%%p" echo selected file is : "%file%" pause So my question is : How to add filter to a file chooser in batch ? For example I would like to add only .rar to select just winrar files

Waiting Bar in HTA and CSS

北城以北 提交于 2019-12-01 13:53:19
I got a little code to simulate a waiting bar that uses HTML and CSS, so I had the idea to add in a HTA to generate after dynamically with a vbscript. If any of you can give me a hand for good display scrolling text with the waiting bar. Thank you in advance ! The original code in question => VBScript script progress notification My modified code in a HTA : <HTML> <HEAD> <Title>Recherche dans le contenu des fichiers de type texte (Version modifié © Hackoo)</Title> <HTA:APPLICATION ICON = "magnify.exe" BORDER="THIN" INNERBORDER="NO" MAXIMIZEBUTTON="NO" MINIMIZEBUTTON="NO" SCROLL="NO" SYSMENU=