Q
Problem solve Get help with specific problems with your technologies, process and projects.

Is there an equivalent way of doing SENDKEY commands in VB.NET?

I need to send keystrokes to an application. In VS.NET there is a module for VBScript. But I cannot find any info on running VBScript from VS.NET. Is there an equivalent way of doing SENDKEY commands in VB.NET?
Actually, .NET provides the System.Windows.Forms.SendKeys class. However, it may not always work. If you want to ensure your keystrokes will always play, you may want to get my latest book, Debugging Applications for Microsoft .NET and Microsoft Windows. In there, I developed a pretty nice key and mouse stroke recording and playback application called Tester. You can use the Tester.DLL COM object to do the playback for your application.

Dig Deeper on Win Development Resources

Have a question for an expert?

Please add a title for your question

Get answers from a TechTarget expert on whatever's puzzling you.

You will be able to add details on the next page.

Start the conversation

Send me notifications when other members comment.

Please create a username to comment.

-ADS BY GOOGLE

SearchCloudComputing

SearchSoftwareQuality

TheServerSide.com

Close