0

I need an .exe file that will simulate holding alt and key C.

I would use that .exe for another project.

How can I simulate this key combination with C#?

L Y E S - C H I O U K H
  • 4,323
  • 8
  • 37
  • 53
macroscripts
  • 3,459
  • 7
  • 28
  • 49

1 Answers1

4

You can call

SendKeys.SendWait("%c");

Where % simulates pressing Alt and c simulates pressing C

See This answer and msdn for more

You can also check this list for more options

Community
  • 1
  • 1
Bassie
  • 8,477
  • 7
  • 47
  • 127