Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


Adding a VBScript text input box

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

 

 
  
  Printable Version
All Forums >> [Scripting] >> WSH & Client Side VBScript >> Adding a VBScript text input box
  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 >>
 Adding a VBScript text input box - 11/15/2007 10:32:57 AM   
  andrewgalpin

 

Posts: 7
Score: 0
Joined: 11/5/2007
Status: offline
hey,

i got this script from the forum and im very new to VB scripting, so i was wondering, how can i add a box so the user can specify what proxy the change it back to? it would just need to be something that pops up so the user can enter the infomation.


where it says

Dim proxy
proxy = "proxy.000000.0000000.000.00:8080"

is where i need the box to come up asking the user to imput this infomation.


      

thanks for any help in advance!
 
 
Post #: 1
 
 RE: Adding a VBScript text input box - 11/15/2007 2:02:25 PM   
  Meg


Posts: 126
Score: 2
Joined: 7/13/2006
From: Australia
Status: offline
Hi there,

I expect a moderator will move this topic to the right forum but try something like


      

Good luck

(in reply to andrewgalpin)
 
 
Post #: 2
 
 RE: Adding a VBScript text input box - 11/18/2007 2:59:27 AM   
  andrewgalpin

 

Posts: 7
Score: 0
Joined: 11/5/2007
Status: offline
that works great thanks :) how do i set it to close if they press cancel, rather than carrying on with the rest of the script?

(in reply to Meg)
 
 
Post #: 3
 
 RE: Adding a VBScript text input box - 11/18/2007 3:41:01 AM   
  ehvbs

 

Posts: 2200
Score: 50
Joined: 6/22/2005
From: Germany
Status: online
Hi andrewgalpin,

Straight from the VBScript Docs:

  If the user clicks OK or presses ENTER, the InputBox function returns whatever

  is in the text box. If the user clicks Cancel, the function returns a zero-length string ("").

So just test proxy for "" and WScript.Quit.

< Message edited by ehvbs -- 11/18/2007 3:42:17 AM >

(in reply to andrewgalpin)
 
 
Post #: 4
 
 
 
  

If you found our site useful please link to us <a href="http://www.visualbasicscript.com">VisualBasicScript.com</a>.
All Forums >> [Scripting] >> WSH & Client Side VBScript >> Adding a VBScript text input box Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts