hta

Open programs from HTA application

萝らか妹 提交于 2021-02-19 06:00:19
问题 I'm trying to create a HTA application, that can open programs(exe, bat etc..) locally on the computer. This will be used on a Kiosk PC, where the users don't have access to the desktop etc. But have some problems, with finding a script that works.. Right now I'm using this script: <script type="text/javascript"> function runApp(which) { WshShell = new ActiveXObject("WScript.Shell"); WshShell.Run (which,1,true); } </script> And this is how my links looks: <a href="javascript:window.location

Javascript in HTA File

僤鯓⒐⒋嵵緔 提交于 2021-02-08 04:10:49
问题 everytime when i try to add javascript in a hta file with vbscript it comes an error message when i click the submit button: object doesn't support this property or method I try this <script type="text/javascript" src=""></script> and this <script type="text/javascript"> ...code </script> Is there anyone who know the problem? //EDIT: I have the problem, i forgot a VBScript: to call the vbscript sub THANKS!! <input type="submit" value=" Submit " onclick="Submit" style="margin-left:100px;">

Open a file with an HTA application

做~自己de王妃 提交于 2021-01-29 08:33:50
问题 Here's a code for an HTA file: <html> <head> <title>HTA application</title> <script type="text/javascript"> function f(x){alert("You opened the file " + x)} </script> </head> <body> Here's some text in an HTA application... </body> </html> Is there a way of associating a file extension with this HTA application on Windows so that when you open a file with this extension it opens the HTA application and does the function f(path) where path is the path of the opened file? 回答1: No, any extension

Unknown Publisher warning on downloaded HTA

独自空忆成欢 提交于 2021-01-29 04:21:48
问题 When starting a HTA file downloaded in a Zip, Windows prompts the "Unknown Publisher" warning (Windows 8 even a second warning). I understand that signing applications can prevent this. How would I proceed with a HTML application, ie. an HTA file? Is there any way to avoid the warning, preferrably without changing the client´s settings? 来源: https://stackoverflow.com/questions/27841138/unknown-publisher-warning-on-downloaded-hta

Keep an HTA window from resizing

不问归期 提交于 2020-07-03 03:07:07
问题 I have an HTA which I always want to have the same size. I've already kept the window from being maximized by using <hta:application maximizebutton="no" but I also want to keep it from being resised by dragging the mouse from the border of the window. 回答1: Add this below: <HTA:APPLICATION MAXIMIZEBUTTON="NO" SCROLL="NO" BORDER="DIALOG" /> Note - If you want to allow user to scroll, change SCROLL string from NO to YES 回答2: Try like this : <HTA:APPLICATION ID="sample" APPLICATIONNAME="sample"

VBScript To Launch Internet Explorer With A URL Generated

南楼画角 提交于 2020-06-29 07:41:53
问题 Currently I'm a learning HTA programming. I have a requirement as follows. There are two input boxes in the form (both are mandatory). When I enter the values and click on search button, a url would be created based on the inputs. The should launch the Internet Explorer application with the generated url. My issue is that I'm able to launch IE browser but I'm not able to pass the url to it. I have tried many ways but I'm not able to get it done. I have the given my code below. I have removed

browse files in folder

狂风中的少年 提交于 2020-03-03 10:13:43
问题 I am building a small hta with vbs. what it does is browse the folders and pickup folder or file by click first button then copy and paste to a selected location based on file type or folder name. I need help on "Browse the files inside each folder", so far i only made "folder browser" working. Is there a way that i can browser folder and file together, picking up folder or file as i need? <html> <head> <Title>File Copy </Title> <style> img.exco { position:absolute; bottom:10px; right:10px }

browse files in folder

自闭症网瘾萝莉.ら 提交于 2020-03-03 10:12:29
问题 I am building a small hta with vbs. what it does is browse the folders and pickup folder or file by click first button then copy and paste to a selected location based on file type or folder name. I need help on "Browse the files inside each folder", so far i only made "folder browser" working. Is there a way that i can browser folder and file together, picking up folder or file as i need? <html> <head> <Title>File Copy </Title> <style> img.exco { position:absolute; bottom:10px; right:10px }