I have an Application which uses SendKeys.Send function toMy operating system isPHP Code:send CTRL+C and CTRL+V Keys.
It sends the keys at first with no problem but then it says Access is Denied. Why ?PHP Code:Windows Server 2012 R2.
I have tried to use these two methods,
andPHP Code:SendKeys.Send()
Both the functions giving the same Error at certain point.PHP Code:My.Computer.Keyboard.SendKeys()
Why it's not allowing me to send keys ?
Please Help me out to solve this error. Frustrated now :/
Thank You!PHP Code:************** Exception Text **************
System.ComponentModel.Win32Exception (0x80004005): Access is denied
at System.Windows.Forms.SendKeys.SendInput(Byte[] oldKeyboardState, Queue previousEvents)
at System.Windows.Forms.SendKeys.Send(String keys, Control control, Boolean wait)
at Microsoft.VisualBasic.Devices.Keyboard.SendKeys(String keys)
at WhatsApp_API_Sender.Form1.timercron_Tick(Object sender, EventArgs e)
at System.Windows.Forms.Timer.OnTick(EventArgs e)
at System.Windows.Forms.Timer.TimerNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)




Reply With Quote
