views:

17

answers:

1

How would I output a sentence with VB.NET?

Example: Your program and Internet Explorer are open, your program outputs "http://stackoverflow.com" and presses "{ENTER}", and it will go to the page.

Example: An auto-talking bot for MSN.

+1  A: 

If you mean "send a string to a running program", I think you're looking for SendKeys

Edit

SendKeys takes a string argument (that's why it's named SendKeys, not SendKey), so yes, you can send "sentences".

egrunin
I knew about SendKeys, but can you send sentences with it?(SendKeys.Send("Blablabla"))
Anonymous the Great