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,765
  • 8
  • 40
  • 57
edinvnode
  • 3,497
  • 7
  • 30
  • 53

1 Answers1

3

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
  • 9,529
  • 8
  • 68
  • 159