C
CptN3m0
Guest
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): Acess denied
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 the Emails
Shell("C:\Program Files (x86)\Mozilla Thunderbird\thunderbird.exe -compose" &
" preselectid='id1'" &
",to=" & b_sEmpfaengerZwei &
", newsgroups =''" &
",subject=" & b_MailInfo.DTA.Betreff.Value.ToString &
",body='" & b_MailInfo.DTA.Text.Value.ToString & "'" &
",type='0'" &
",format='1'" &
",originalMsg=''" &
"")
HWND = FindWindow(vbNullString, "Verfassen: " & b_MailInfo.DTA.Betreff.Value.ToString & " - Thunderbird")
SetForegroundWindow(HWND)
SendKeys.Send("^{ENTER}")
If I understand correctly, the problem is at
SendKeys.Send("^{ENTER}")
Continue reading...
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): Acess denied
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 the Emails
Shell("C:\Program Files (x86)\Mozilla Thunderbird\thunderbird.exe -compose" &
" preselectid='id1'" &
",to=" & b_sEmpfaengerZwei &
", newsgroups =''" &
",subject=" & b_MailInfo.DTA.Betreff.Value.ToString &
",body='" & b_MailInfo.DTA.Text.Value.ToString & "'" &
",type='0'" &
",format='1'" &
",originalMsg=''" &
"")
HWND = FindWindow(vbNullString, "Verfassen: " & b_MailInfo.DTA.Betreff.Value.ToString & " - Thunderbird")
SetForegroundWindow(HWND)
SendKeys.Send("^{ENTER}")
If I understand correctly, the problem is at
SendKeys.Send("^{ENTER}")
Continue reading...