Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


HTA input examples

 
Logged in as: Guest
arrSession:exec spGetSession 2,16,35657
 Active Users: There are 0 members and 0 guests.
 Users viewing this topic: none
 

 

 
  
  Printable Version
All Forums >> [Scripting] >> Post a VBScript >> HTA input examples
  Do you like VisualBasicScript.com? Link to us and help spread the word about our forum. Thanks!
Page: [1]
Login
Message << Older Topic   Newer Topic >>
 HTA input examples - 6/22/2006 1:56:14 AM   
  krunch

 

Posts: 5
Score: 0
Joined: 7/22/2005
Status: offline
I slapped this together for my own reference but figured someone else might also find it useful.
You'll need to create a file called Phrases.txt for the "Drop down menu from file" piece with a list of options, one per line.
Option 1
Option 2
...etc


      
 
 
Post #: 1
 
 RE: HTA input examples - 6/22/2006 6:41:15 AM   
  kirrilian


Posts: 628
Score: 3
Joined: 3/15/2005
From:
Status: offline
very nicely done!

I've been meaning to look into hta files more since I have been doing more and more web development lately and this is just what I was looking for.

Thanks!

_____________________________

Have you searched here ?
VBScript Fundamentals
My Site

(in reply to krunch)
 
 
Post #: 2
 
 RE: HTA input examples - 6/22/2006 6:59:33 AM   
  mbouchard


Posts: 1916
Score: 16
Joined: 5/15/2003
From: USA
Status: offline
I agree, very nice.  A couple recomendations if you don't mind? 

The textArea.txt file is created and would appear to be opened whenever the HTA is opened.  I would move the opentext file into Submit area sub.  I would then have it close the text file as soon as it was finished writing.
I get a permission error with line 14 when I attempt to have multiple instances of the HTA

Also, Is it possible to have a "view source" button?  Would be interesting to see.

_____________________________

Mike

For useful Scripting links see the Read Me First stickey!

Always remember Search is your friend.

(in reply to kirrilian)
 
 
Post #: 3
 
 RE: HTA input examples - 6/22/2006 3:33:02 PM   
  krunch

 

Posts: 5
Score: 0
Joined: 7/22/2005
Status: offline
Changes:
Changed SINGLEINSTANCE to "No" to allow multiple instances

Moved OpenTextFile to the Submitarea sub.
  The Open button will only work properly after the first submission
  The file will now close after submission

Added a Reset Button to the Text Area Input

Added a source button to view the source of each input type



      

(in reply to mbouchard)
 
 
Post #: 4
 
 RE: HTA input examples - 6/23/2006 4:27:05 AM   
  mikeock


Posts: 124
Score: 1
Joined: 6/8/2006
Status: offline
change this line
    CONTEXTMENU = "no"
to
    CONTEXTMENU = "yes"

and then you will have the full normal right click menu that you would expect from a webpage.... such as view source!

_____________________________

My sig sucks!

(in reply to krunch)
 
 
Post #: 5
 
 RE: HTA input examples - 6/25/2006 10:44:26 PM   
  mbouchard


Posts: 1916
Score: 16
Joined: 5/15/2003
From: USA
Status: offline
quote:

ORIGINAL: mikeock

change this line
   CONTEXTMENU = "no"
to
   CONTEXTMENU = "yes"

and then you will have the full normal right click menu that you would expect from a webpage.... such as view source!

True, but the way that krunch has it setup is a good example of what can be done with an HTA.

_____________________________

Mike

For useful Scripting links see the Read Me First stickey!

Always remember Search is your friend.

(in reply to mikeock)
 
 
Post #: 6
 
 RE: HTA input examples - 6/26/2006 1:26:34 AM   
  krunch

 

Posts: 5
Score: 0
Joined: 7/22/2005
Status: offline
I hadn't planned on making any changes since I only used it for reference but I liked mbouchard's suggestion about viewing the source.  Now I don't have to open the file to find the code I want to use.

(in reply to mbouchard)
 
 
Post #: 7
 
 
 
  

If you found our site useful please link to us <a href="http://www.visualbasicscript.com">VisualBasicScript.com</a>.
All Forums >> [Scripting] >> Post a VBScript >> HTA input examples Page: [1]
Jump to: