Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


Inputbox

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

 

 
  
  Printable Version
All Forums >> [Scripting] >> Windows PowerShell >> Inputbox
  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 >>
 Inputbox - 1/25/2006 10:29:13 PM   
  crazymatt

 

Posts: 295
Score: 0
Joined: 3/4/2005
From:
Status: offline
Found this code on the net for making a gui kind of script.


      

Problem is that when run, it dont focus on the window it creates (it pop ups behind other windows).
So question is, is there any way with msh to make a simple inputbox. If you ever gonna make scripts for the enduser there must be a simple way to get input in some sort of gui way.
Any ideas anyone?

_____________________________

-There is only 10 sorts of people, those who understand binary and those who dont.
 
 
Post #: 1
 
 RE: Inputbox - 1/25/2006 11:00:49 PM   
  crazymatt

 

Posts: 295
Score: 0
Joined: 3/4/2005
From:
Status: offline
Now it works :)


      

Now im just gonna find out how to make a field where you can input text and maybe try and create som dropdown list.

_____________________________

-There is only 10 sorts of people, those who understand binary and those who dont.

(in reply to crazymatt)
 
 
Post #: 2
 
 RE: Inputbox - 1/26/2006 2:38:30 AM   
  ebgreen


Posts: 4613
Score: 31
Joined: 7/12/2005
Status: offline
Since you are using the windows API, there should be plenty of code examples floatin around somewhere. Find any code samples for doing forms in C# and you should have what you need.

_____________________________

"... when you are good and crazy, oooh, oooh, oooh, the sky is the limit!" - The Tick
Goog places to start:http://www.visualbasicscript.com/m_24727/tm.htm
http://www.visualbasicscript.com/m_47117/tm.htm

(in reply to crazymatt)
 
 
Post #: 3
 
 RE: Inputbox - 2/16/2006 8:07:40 AM   
  fugacity

 

Posts: 1
Score: 0
Joined: 2/16/2006
Status: offline
Thanks for this script, I wasn't able to get the examples in the GettingStarted.rtf to work without the call to Reflection.Assembly.

Remeber to do $Button.Dispose() and $Form.Dispose() to free up resources.

(in reply to crazymatt)
 
 
Post #: 4
 
 
 
  

If you found our site useful please link to us <a href="http://www.visualbasicscript.com">VisualBasicScript.com</a>.
All Forums >> [Scripting] >> Windows PowerShell >> Inputbox 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