Send Keys

  • Thread starter Thread starter SlasherStanley
  • Start date Start date
S

SlasherStanley

Hi

I want to write a very basic app that simulates pressing "ALT + N" several
times.

I know you can use SENDKEYS in VB, but don't know how to do it in C#.

This app will be used to simulate pressing a "&NO" command button on a
different application.

Thanks

Slasher
 
SlasherStanley said:
I know you can use SENDKEYS in VB, but don't know how to do it in C#.

This app will be used to simulate pressing a "&NO" command button on a
different application.

System.Windows.Forms.SendKeys.Send()
http://msdn.microsoft.com/library/?...frlrfsystemwindowsformssendkeysclasstopic.asp

Finding the Window (if it is not your own) via WinAPI with FindWindowEx
and "clicking" it with SendMessage might be a better solution.

http://groups.google.de/groups?selm=JI#[email protected]

Cheers

Arne Janning
 
Back
Top