SendKeys.SendWait not working? Exception Unhandled

  • Thread starter Thread starter EbenVranken
  • Start date Start date
E

EbenVranken

Guest
Hello, here is my code:

codebin.it code sharing made simple

As you can see, all I want it to do is wait 5 seconds and then type: 'ok'

But it gives me this error message:

System.TypeInitializationException: 'The type initializer for 'System.Windows.Forms.SendKeys' threw an exception.'


I added the System.Windows.Reference but each time I check if I actually added it, the checkbox next to it is Unchecked? Is this normal?

Anyway, I am stuck on this problem for like 25 minutes now, please help. :)

Continue reading...
 
Back
Top