hta

Restore a minimised application via VBS within an HTA

寵の児 提交于 2019-12-24 17:06:41
问题 I have an HTA that is minimised while it carries out a backup. After this backup is complete I'd like to restore the HTA, but I'm having trouble. I've tried a few things (below), but with no success. Is anyone able to point me towards a definitive solution? First I tried to simply activate the HTA, but this failed. I'm no expert, but my understanding is that doing this should mimick a mouse click on the HTA in the task bar, thus restoring it - Sub RestoreBackupHTA() Shell.AppActivate "Backup"

HTML tags does not in HTA

点点圈 提交于 2019-12-24 16:21:00
问题 I am using Google Chrome and I tryed to make an application for my computer using HTML. Of course I just convert file to .hta and add <HTA:APPLICATION ID="GregsonTools" APPLICATIONNAME="Gregson Tools" BORDER="no" CAPTION="yes" SHOWINTASKBAR="yes" SINGLEINSTANCE="yes" SYSMENU="yes" SCROLL="no" ICON="icon.ico" WINDOWSTATE="normal"> But JavaScript alpplication didn't work. Than I made a test and open my HTML application in Internet explrer. The same things weren't working as in HTA document.

HTA writing to a <span> from a text file

余生颓废 提交于 2019-12-24 14:56:17
问题 I am trying to write data from a text file to a in an HTA. I'm running a powershell script inside of the HTA, using VBscript for the input buttons Get-TSSession -computername ismeta | where { $_.username -eq 'amis5235'} | format-table windowstationname,username,state,sessionid | out-file C:\windows\temp\PSTerminalServices.txt I'm going to be using a for each loop for about 60 servers Then I was hoping to write the output to a within the HTA, kind of like a streamer in VB or stacking a string

html/hta mutiple file in audio player

你。 提交于 2019-12-24 13:26:40
问题 ok so i started coding a .hta application , pretty much a html page with .hta extension , i adde this mp3 player and it did work <object data="test.mp3" type="audio/mp3" width="200" height="40"> <param name="src" value="test.mp3"> <param name="autostart" value="0"> </object> but it's one song playing again and again , so plz is there any way to add multiple files to the playlist i believe it's something that should be added to "src" parameters but not sure, as i'm just starting i did add ","

HTML does not update after being modified with JavaScript in .hta application

混江龙づ霸主 提交于 2019-12-24 13:02:09
问题 I have a .hta File containing JavaScript and HTML. My JavaScript Code modifies the HTML with functions like "appendChild", but the HTML does not get updated afterwards; Even if the element was corretly appended in the DOM-Structure (I can alert the .innerHTML, returning the html-code like it should be, but it doesn't show in the browser). If put in an HTML-File, it works completely fine. <!DOCTYPE html> <html> <head> <hta:application id="prjreq_v1" applicationname="ProjectRequirements">

HTA how do I get the username for the current user?

大城市里の小女人 提交于 2019-12-24 03:29:39
问题 I want to get the username for the current user and then create a link in my application name the link would look like http://localhost/?id=username I tried Dim objNetworkSet objNetwork = CreateObject("WScript.Network") But it's not supported in HTA applications 回答1: As it's prefix indicates, "objNetwork" is an object. So use "Set" to assign to the variable. Dim objNetwork : Set objNetwork = CreateObject("WScript.Network") MsgBox objNetwork.UserName Assuming you want to set the link at

Can a .BMP file be stored in an HTA (HTML/VBScript)?

China☆狼群 提交于 2019-12-23 07:29:18
问题 I've noticed in a backup of my FireFox bookmarks that the icon which is displayed to the left of each entry is held as a character stream in the A tags. For example: ICON="data:image/png;base64,iVBOR [data removed to shorten example] rkJggg==" I have 3 BMP files (2 are 4x20 (249 bytes) and 1 is 102x82 (24.7 KB)) that I would like to hide within my HTML Application so they don't get lost. The larger one appears 3 times in the style tag as follows (1 occurrence shown): <style type="text/css">

Error: Object required: 'wscript' in HTA

与世无争的帅哥 提交于 2019-12-23 03:59:17
问题 I've been searching for awhile, but I cannot seem to find the answer. I am making a gui based program selector and I am quite new to VBS and HTA. I've made a auto-typer and I cannot seem to figure out why it does not work in HTA. It works fine on its own. <head> <title>Gui Bases Program Selector.</title> <HTA:APPLICATION APPLICATIONNAME="HTA Test" SCROLL="yes" SINGLEINSTANCE="yes" WINDOWSTATE="maximize" > </head> <script language="VBScript"> Sub TestSub Set shell = CreateObject("wscript.shell

how to use vbs variables in html tags

懵懂的女人 提交于 2019-12-23 03:10:20
问题 I'm making an hta app and I'm trying to add in an option to change the color schemes. I've been trying to use a variable in the tag. ex:Color1 instead of black etc.. But everything is just default colors Heres part of what I wrote in the vbs section: Sub changecolor Colorbutton = gray Colorbuttontext = black Colortextbox = black Colortext = aqua End sub Here's a snippit of the HTML I have: <input type="text" color="Colortext"> <input type="button" color="Colorbutton"> I already have a drop

Open a Website in HTA application

前提是你 提交于 2019-12-23 02:38:40
问题 So, I have this small local website, which is the website that opens when you open router configuration. that is, 192.168.0.1. the one in which we make settings for the router. I need to open that website very frequently for turning the wireless on and off and I have to do it via a browser. Its bit of a heavy process, so I decided to switch to one click HTA applications which makes the work very Quick. The thing is, whenever the home screen of that website opens, where you have to put the