Error: System.Windows.Forms.SendKeys.SendWait("%{T}")

M

Mike John

I am trying to send the key Alt + T using the send wait
method:
syntax: System.Windows.Forms.SendKeys.SendWait("%{T}")

But I am receiving the following message:
Security Exception
Description: The application attempted to perform an
operation not allowed by the security policy. To grant
this application the required permission please contact
your system administrator or change the application's
trust level in the configuration file.

Exception Details: System.Security.SecurityException:
Unable to create Hook.

it looks like its a security issue, if so how can I
resolve it.

Sincerely yours

Mike John
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,266
Messages
2,571,079
Members
48,772
Latest member
Backspace Studios

Latest Threads

Top