Quote Originally Posted by jmcilhinney
I don't like using Runtime functions if there is a better alternative but this is not a valid argument. VB.NET is a 100% OO language. It is not possible to do anything in VB.NET that is not OO. Using a Runtime function is no different to using a Shared member of a class.
I knew someone would dispute me on that one. I don't know how to phrase it so it is "technically correct," but I think you know what I mean. Why use VB6 functions (even though they are now part of the .NET framework) when there is a .NET approach.

Yeah, I figured out what you meant Penagate. SendKeys.Send() functions does the job.

Thanks everyone. I will be posting a new version in a few minutes.