989 questions
2
votes
2
answers
171
views
Is it possible to pull CSS values with HTA JavaScript?
I know that it is possible to get innerText values with JavaScript in an HTA file, like in the example below:
<html>
<head>
<style>
.testCss::after {
content: ...
0
votes
0
answers
40
views
how to use environment variables for file links in html [duplicate]
Our business uses Macro Express Pro to create macros to assist with daily tasks. Rather than prompting the user once for their user multiple times for pieces of data, I'm creating an HTA and using VBS ...
1
vote
1
answer
157
views
ACE OLEDB provider in vbscript in HTML application (hta) to read an excel says provider not installed, vbs is working but hta is not working
I want to read an excel sheet and display the contents with vbscript. I also want the user to be able to pick the source directory, hence the addition of hta furteron. The ACE OLEDB providor has to be ...
1
vote
1
answer
178
views
VBScript: The system cannot find the file specified
I am trying to have a script open Active Directory, but for some reason, the script refuses to locate the file. I have tried countless other exe/msc files in place of it that have worked without issue,...
0
votes
1
answer
190
views
Simple javascript functions to scroll next/previous H1 to top of screen - in an HTA application run with MSHTA.exe
I am a hobby programmer, and have made an HTA file, with some JavaScript and a single contentEditable <DIV>. Using minimal JavaScript I can make keyboard shortcuts to format, save, and exit.
I ...
0
votes
1
answer
284
views
Display cmd data into HTA and the command prompt window
I am stuck on an issue trying to get away from the cmd popup and have all the data from the command to appear in span tag. I know just enought to get the command to work but not sure how to make it ...
0
votes
0
answers
64
views
Why is HTA with VB Script vs. CSS not working? [duplicate]
I wanted to code a little HTA file which looks in a specific folder if there are any jpg files and, if yes, it displays them. For that I used VBScript. Everything works fine so far. In a second step I ...
0
votes
1
answer
74
views
Modification GIF Folder Preview Script
Maybe anyone here can help me to modify this script ? I want file name located under the gif & the text size is little bit smaller, so that more gif can appears in one row .
<script type="...
3
votes
2
answers
132
views
BAT/HTA hybrid - How do I escape percent signs in the HTML section?
I am working on a Batch/HTA hybrid file and want to add some background music to the application. When I try to add a url (containing a percent sign) to a<bgsound> tag, it doesnt play anything. ...
0
votes
0
answers
50
views
HTA VBScript: dynamically create function at runtime from a string or variable that contains a string as in JavaScript with new Function() constructor [duplicate]
I am trying to learn a bit more of HTA and VBScript and I want to know if VBS allows to create dynamically functions as in JavaScript as:
var f = new Function('functionName', functionbody);
or
window[...
0
votes
1
answer
128
views
Why does my video not show up in a modal dialog window in my VBS HTA app?
I am trying to create a modal dialog in my app where a video shows up but it doesn't. But when I open the window without using the modal dialog function in the main hta (vbs) it works perfectly.
Video ...
0
votes
0
answers
44
views
Problem with Window.event.keyCode and .dat memory read VBS hta [duplicate]
Basically, what I am trying to do is to create a system where I can store keycode in a .dat file named Bindings and use them to define the key associated with an action. For example the key escape is ...
-1
votes
1
answer
1k
views
New Connection String with Office 365
I have an HTA application that has worked for years with no issue, and I am now having issues since being forced to update to Office 365.
Here is the connection string:
objConnection.Open "...
0
votes
1
answer
264
views
Relative path on WshShell
I'm trying to use the following script on various machines, so i need to put in a relative path, if the file is in the same diretory works fine, but if i create a folder in this diretory the code dont ...
0
votes
1
answer
301
views
use a part of html tag src from script in a Hta (html application)
enter image description here I use css in my hta with ie=10.
Note: It should be noted that I am using this code as an HTA program, not on a web page
<script language = "vbscript" type = &...
1
vote
1
answer
336
views
How to run an HTA dialog with a UAC prompt and wait for a return value
Is it possible to run part of hta file with administrator's privilege? I will like to make it in a way that when i click on ADD TIME button it should prompt me to provide administrators details. I ...
0
votes
1
answer
65
views
How to properly navigate a li tag to build a OBJECT in a HTA
I am trying to build a tool to dynamically build and edit a JSON file. I created a HTA that will dynamically create elements for each data type and build it out in the UI using li and ul. The basic ...
0
votes
1
answer
271
views
How to pass HTA Form data (as months and years) to an external Vbscipt file
I'm creating an HTA from which to run some external VBS files.
I need to pass from the HTA to the VBS files, the data of some forms (Radio Button).
What should I add to the HTA file to accomplish it? ...
1
vote
0
answers
64
views
javascript class in hta [duplicate]
I am making a hta app for a home project and I would like to use javascript classes. Is this possible? If a use the basic example I find on google it gives a syntax error in hta. works as a html ...
-1
votes
1
answer
228
views
HTML/HTA set image position to VBScript variable [duplicate]
So I basically want to make a button that changes an image's, let's say, x position to a VBScript variable in HTML. This is an HTA btw, dunno if it actually changes anything.
<script language = &...
1
vote
1
answer
334
views
How to scale HTA checkboxes and radio buttons to match screen scaling
When screen scaling is changed to 125%, 150% or a custom value, the following HTA scales accordingly, except for checkboxes and radio buttons. How can I make those elements also scale proportionally ...
3
votes
2
answers
460
views
Dynamically change icon in HTA
NOTE: This question is not a duplicate of Can I embed an icon to a .hta file? - For more details, compare the issues and read the comments
I am trying to build an HTA that will automatically perform ...
3
votes
1
answer
434
views
Jump to anchor in HTA file by command line specified parameter
Have cmd script help file in HTA format, it open every time user press key 'h/H' through script. Want to HTA jump to its specific part by context from where help is called (as usual in windows help ...
0
votes
1
answer
2k
views
I have recently created a GUI using a .hta file I want to run a powershell script I wrote. I can't correct this error
I get this error:
I can not find what is actually the problem from my limited knowledge everything looks correct
Here is the code I am using:
<html>
<head>
<title>Application ...
1
vote
1
answer
377
views
Oninput event not triggering in HTA using JavaScript
I'm learning JavaScript using some examples I've found online. And in working on an HTA I've come a cropper trying to work out why the "oninput" event won't trigger. I've included the ...
2
votes
1
answer
992
views
How get variables to and from HTA called from Vbscript
UPDATE: I figured out the answer to my first question. I used two methods, actually. For the "strBoxTitle" variable, I replaced the line:
<b>strBoxTitle</b><p>
with this
...
3
votes
1
answer
3k
views
HTA Files and Microsoft Edge [duplicate]
I have a HTA application. Within the HTA, I'm calling a function to open up a webpage using:
window.open( sURL, "Working" );
This opens a page in Internet Explorer and not Edge.
Is there a ...
-1
votes
1
answer
154
views
HTA. how to fade-out the embedded music mp3 (reload) [duplicate]
I really need some help IN All the examples I found the fade out effect was relying on the "audio id" element :
<audio id="myAudio">
<source src="./LZ.mp3" ...
0
votes
1
answer
112
views
How do I use playlists in an HTA file using VBScript? [duplicate]
I have found many pieces of code to this effect but all are using WMP7.ocx. I have an installer that takes 10 to 15 minutes to complete and I would like to have something non-intensive to add a bit of ...
0
votes
1
answer
853
views
Activate and Focus HTA window using VBscripting
I have developed several HTA files where each file calls the other.
There is one HTA file that i need (if called) to stay as the "Always on top" window while it is open.
I have tried "...
0
votes
1
answer
2k
views
How can I open an .hta file automatic in fullscreen? [closed]
I have an .hta file but everytime I run it open in a small screen. Can I run it in fullscreen like any other nav?
-3
votes
1
answer
169
views
How can I make a button avoid the mouse in hta? [closed]
I have tried many ways to make the button avoid the mouse. I have tried all the onmouse functions, yet they don't seem to work, btw I am trying to make the button get the size of the computers screen, ...
1
vote
1
answer
591
views
CMD Powercfg command fails when launched from HTA VBScript [duplicate]
I have the following HTA file:
<html>
<head>
<title>test</title>
<SCRIPT Language="VBScript">
createobject("Shell.Application").ShellExecute "...
2
votes
1
answer
545
views
Elevate HTA file and all console commands that are run from it
I have an HTA file with a VBScript embedded in it. From the VBScript, I need to call a command prompt command (powercfg /energy) that requires elevated permissions. The command will be called more ...
0
votes
1
answer
157
views
HTA / VBScript /accdb: trouble with getting multiple rows from db
I am currently working on a function to get some values from my access database into some columns (called "slots" in my code).
problem exists in the function fillSlot(), the SQL queries are ...
0
votes
0
answers
190
views
Vbscript code wont execute properly in a subroutine within an HTA but does outside of subroutine
Im having an issue i cant figure out. I have a simple hta that queries an xml and displays a message box containing a specific value. From what I can tell the code should work the same but its not.
...
0
votes
1
answer
150
views
What is the relation between ASLR and the mshta.exe's error "The system cannot execute the specified program"?
I am having a problem running mshta.exe. As you can see in the picture below, I get the error: The system cannot execute the specified program.
I've created a test.hta file and it can't be executed as ...
0
votes
1
answer
567
views
Multiple commands on button click callShellApplication? [closed]
in my JScript HTA script I have a button that executes a CMD command when I press it: <button onclick="callShellApplication('ipconfig')">Your IP-Adress</button> But this is only ...
-2
votes
1
answer
2k
views
Run CMD command from hta batch file?
I have an hta script (batch file), which shows me several buttons and when I click these I want a command to be executed in my cmd. For example, when I press the "IP address" button, the ...
0
votes
2
answers
260
views
Data type conflict in criteria expression
I'm currently trying to use a db (.accdb-file) in my vbscript.
my function from a .vbs-file that's executed by a hta-file:
function dbCall(sAction, sPayload, sTable, sConCol, sConVal)
...
1
vote
1
answer
992
views
Update content of a div in HTA with external vbs-script
I'm currently trying to figure out how to update a div-element in a hta-file. the hta calls a vbs-file where the actual script is running. My intention for the moment was to write the time from when ...
-1
votes
1
answer
3k
views
Is the .hta filetype an actual program, or a file? [closed]
When I was looking into the .hta filetype online, it appears to be referenced as a program, however I know that mshta.exe is the program used for them. Does that mean .hta is actually just a file ...
-2
votes
1
answer
875
views
HTA + vbscript file not getting loaded in window 10 machine
I am facing an issue with hta file. In some machine it requires 3 to 5 clicks to get it loaded. Its not due to the slowness or computation in background. As soon as I double click the hta file It will ...
2
votes
2
answers
699
views
How to display html content in a div and add a content the html file in HTA
I successfully create a simple web-based chat app by simply following this tutorial
The only difference is I did not include the login thing. It only keeps making post messages in log.html.
Now I'm ...
0
votes
2
answers
1k
views
Is it possible to show HTA with transparent background
I want to create/open a window with transparent background.
I want to know for:
Using semi-transparent images
Rounded corners
I want to see the desktop behind the app
Fading the app in and out
Is ...
0
votes
1
answer
4k
views
Is there an HTA-like solution for modern web apps?
I have been developing an app using HTML, CSS, and JS, using the App Mode command line argument for Google Chrome. It works nice, but I would like some ability to use the local file system without ...
1
vote
1
answer
404
views
Am I able to embed HTA code into VBScript? [duplicate]
EDITED
My company used VBScript and IE to create popups for gathering and displaying information. Now that IE is going away, we can't do this in Edge. We're looking for a way to use HTA embedded in ...
0
votes
0
answers
91
views
How do I use the BigInt library with HTA applications? [duplicate]
This code throws an error that BigInt is unrecognized:
<html><head>
<HTA:APPLICATION ID="HelloExample"
BORDER="bold"
BORDERSTYLE="complex"/>
&...
4
votes
1
answer
1k
views
How do I change the color of multiple HTML elements with one click?
I have an HTA with loads of options. I have been able to change the color theme of the app with some Theme buttons using a combo of CSS and VBScript. However, I have been doing each element manually....
0
votes
0
answers
61
views
How to Escape characters in VBScript function embedded in HTA? [duplicate]
I have designed an HTA file that shows a window and displays some text and uses VBScript to query the AD directory to get the full display name of the logged in user.
Here is the VBscript i am using ...