Cheesy little JS tester (via HTA)

Post your working scripts, libraries and tools for AHK v1.1 and older
burque505
Posts: 1736
Joined: 22 Jan 2017, 19:37

Cheesy little JS tester (via HTA)

13 Jan 2019, 18:03

It sort of works :o
Spoiler
hta_tester.gif
hta_tester.gif (144.98 KiB) Viewed 1846 times
wolf_II
Posts: 2688
Joined: 08 Feb 2015, 20:55

Re: Cheesy little JS tester (via HTA)

13 Jan 2019, 19:20

Runs perfect in WinXP (virtual machine) :)
Can't get it to run on Win10 yet. :(

more tries:
There seems to be a certain order of buttons/permission/choices to make before I see it. (awkward but possible).
I'm going to test and run some more, but this Hta is cool!!
Thx for sharing :D
gregster
Posts: 9002
Joined: 30 Sep 2013, 06:48

Re: Cheesy little JS tester (via HTA)

14 Jan 2019, 00:55

Seems to work on my Win10, after agreeing to the UAC.
Interesting, thank you :thumbup:
burque505
Posts: 1736
Joined: 22 Jan 2017, 19:37

Re: Cheesy little JS tester (via HTA)

14 Jan 2019, 08:36

@wolf_II, @gregster, thanks, guys. I appreciate the Win10 info too.
I know there's not much to it, but I thought the concept was worth sharing.
Regards,
burque505
User avatar
kczx3
Posts: 1640
Joined: 06 Oct 2015, 21:39

Re: Cheesy little JS tester (via HTA)

14 Jan 2019, 19:59

What is HTA?
burque505
Posts: 1736
Joined: 22 Jan 2017, 19:37

Re: Cheesy little JS tester (via HTA)

14 Jan 2019, 20:16

That's Microsoft's "HTML Application" file extension. The Wikipedia link is here.
Save this code

Code: Select all

<HTML>
<HEAD>
<HTA:APPLICATION ID="HelloExample" 
   BORDER="thick" 
   BORDERSTYLE="complex"/>
<TITLE>HTA - Hello World</TITLE>
</HEAD>
<BODY>
<H2>HTA - Hello World</H2>
</BODY>
</HTML>
as yourfilename.hta and double-click it :)
wolf_II
Posts: 2688
Joined: 08 Feb 2015, 20:55

Re: Cheesy little JS tester (via HTA)

15 Jan 2019, 17:01

I managed to:
  • Search and find this
  • I tried the second answer on my system with the reg-file from github
  • Reboot
Result := no more button to click anywhere, *.hta are back to ...
expected behaviour := run them with AHK Run command

Side effect: I do not need to use Admin mode from AHK.
burque505
Posts: 1736
Joined: 22 Jan 2017, 19:37

Re: Cheesy little JS tester (via HTA)

15 Jan 2019, 17:28

@wolf_II, thank you! I haven't tried running any HTAs on Win10 yet, I'm sure that will come in handy.
Regards,
burque505

EDIT: Win some, lose some :?
I updated to the October 2018 version of Windows 10 Pro, and .hta apps open with no complaint.
BUT - can't drag and drop files onto AHK Guis. It doesn't even seem to recognize A_GuiEvent if GuiDropFiles is used, but other events report normally (sorry - :offtopic: ).

Return to “Scripts and Functions (v1)”

Who is online

Users browsing this forum: No registered users and 231 guests