hta

Search attribute value in XML file

杀马特。学长 韩版系。学妹 提交于 2019-12-11 20:18:37
问题 I need to search strings in an XML file that contains a unique string <CSVName Value="standard.csv" /> This value changes between "standard.csv" and "non-standard.csv". I am using VBScript to search "standard.csv" or "non-standard.csv". If it matches "standard.csv" it will echo me "This is standard", if it matches "non-standard.csv" it will echo me "This is non-stanadard". This is part of my HTA for this function when clicking a button, I dont know how to make pattern of reg exp for matching

VBScript undefined variable error

别等时光非礼了梦想. 提交于 2019-12-11 18:17:38
问题 <script language="VBScript"> Option Explicit ' On Error Resume Next Dim colIPResults, objFile, objFSO, objNIC, objWMI, objWSHNetwork, strAddresses, strIPAddress, strWQL Const FOR_APPENDING = 8 Sub DestroyObjects() If IsObject(objFile) Then Set objFile = Nothing If IsObject(objFSO) Then Set objFSO = Nothing If IsObject(objWMI) Then Set objWMI = Nothing If IsObject(objWSHNetwork) Then Set objWSHNetwork = Nothing ' If IsObject() Then Set = Nothing End Sub Set objFSO = CreateObject("Scripting

IE8 causing FILE input entry to be blank via SendKeys

天大地大妈咪最大 提交于 2019-12-11 16:03:36
问题 Application : HTA (therefore IE) This is an application that uses SendKeys to populate a FILE input field. Issue : File is never uploaded. Description : An offscreen form (invisible to user) uploads a file to the server. The file input is entered via SendKeys (javascript). Appears to be isolated to when IE8 is installed. Does anyone know of what may be causing this and any workarounds? Sorry for lack of information. I will edit the question with additional information if no answers are

Can HTAs be used to automate web browsing?

梦想与她 提交于 2019-12-11 14:45:42
问题 I am new to HTAs. I just read https://msdn.microsoft.com/en-us/library/ms536496%28v=vs.85%29.aspx and am a bit confused. Can I use HTAs to automate browsing? Say I want to download a web page and fill in a form automatically, i.e. from a script. How would an HTA help me do this, if at all? It's important that the JavaScript code in the downloaded page is run as usual. I should be able to enter somehow and fill in the form after it has finished initializing, just as if I were a human agent.

using HTA with batch file

≡放荡痞女 提交于 2019-12-11 13:42:51
问题 I have created HTA file which has userform to collect data from the user. I am calling this HTA file from batch file. After reading user inputs, i want input values to be passed to batch file from HTA. Is is possible to achieve? 回答1: Yes, you can have the HTA file return the values to the batch file, but it cannot do it directly. You have to use Javascript to create a text file with the user provided values, then your batch file can process the values. Here's a site with several methods

Simple HTA script to resize folder of photos

那年仲夏 提交于 2019-12-11 12:31:55
问题 I am using a command line version of resize.exe (a program to resize images) I am trying to create a simple HTA application that will receive user input and pass it to a CMD. The problem here is that my batch script is failing when placing it in the VBS. Am I escaping this wrong or is there something else that needs to be added? <html> <head> <title>HTA Test</title> <HTA:APPLICATION ID="objTest" APPLICATIONNAME="HTA Test" SCROLL="no" SINGLEINSTANCE="yes" > </head> <SCRIPT LANGUAGE="VBScript">

Reading and formatting Access data

烂漫一生 提交于 2019-12-11 11:24:11
问题 I'm using JavaScript and HTA to read data in access database (.mdb) on local but having a small issue. My JavaScript code is like this: function miseryBusiness() { var box = document.getElementById("lyrics"); box.innerHTML = ""; var db = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source='paramore.mdb'"; var adoConn = new ActiveXObject("ADODB.Connection"); var adoRS = new ActiveXObject("ADODB.Recordset"); adoConn.Open(db); adoRS.Open("SELECT * from 2007_RIOT WHERE track=4", adoConn, 1, 3); var

Load Subroutines From External Script File

徘徊边缘 提交于 2019-12-11 10:36:15
问题 I want to put my subroutines in an external file. When I press the help button it pops up errors. Even at startup it shows errors. If I put the contents of scripts.vbs within the HTA they work fine. Here is the code: Contents of scripts.vbs file: Sub Window_Onload Msgbox "welcome" end sub Sub Help MsgBox "This is an example of progressbar in HTA written by Fredledingue.",,MyTitle End Sub Contents of HTA file: <script type="text/vbscript" src="scripts.vbs"> </script> <body bgcolor="GreenYellow

How can i make an HTA window dependent on another?

淺唱寂寞╮ 提交于 2019-12-11 08:28:54
问题 I need to make an .hta window dependent on the other .hta window. So, basically window A cannot be closed without window B being close first. I have the two window right next to each other and they act as one window when settings is click (it basically displays a popout or extension of the first window that has options for the application). Second window is executed by: Sub Settings() Set objShell = CreateObject("WScript.Shell") objShell.Run "Launcher-Settings.hta" End Sub And the button is:

Find Specific Folder in Root of main and all drives attached vbs

岁酱吖の 提交于 2019-12-11 06:54:25
问题 I'd like to look for a specific folder that could be on the root of the main drive of a Windows 7 Machine or on the root of any usb drives attached to it. I'd prefer to do it in vbscript or in an hta (not htaaccess) using vbscript. ex. I need to find the folder "xyz". It could be either here: C:\xyz or D:\xyz or Z:\xyz etc. I don't care if it's here: c:\Users\Joe\xyz or F:\folder1\xyz. I figure the search would be fairly quick if the search is concentrated to just the root folders of each