Access denied when SendKey.SendInput on server

0

I try to send emails from a Windows Server 2008 R2 using the shortcut CTRL+ENTER in Thunderbird.

If I am connected over remote desktop connection, emails can be send.

However when I minimize the remote desktop connection, I instantly receive an access denied error:

System.ComponentModel.Win32Exception (0x80004005): Zugriff verweigert
   bei System.Windows.Forms.SendKeys.SendInput(Byte[] oldKeyboardState, Queue previousEvents)
   bei System.Windows.Forms.SendKeys.Send(String keys, Control control, Boolean wait)
   bei PLS_CL.BTC.Logic.clsALG_Mailinfo.RunJob()

My code to send keys

SendKeys.Send("^{ENTER}")
.net
asked on Stack Overflow Jun 3, 2019 by Ilja.G • edited Jun 3, 2019 by kalehmann

0 Answers

Nobody has answered this question yet.


User contributions licensed under CC BY-SA 3.0