This project is read-only.


Alt+Tab simulation does not work


InputSimulator.SimulateModifiedKeyStroke(new[]{VirtualKeyCode.MENU, VirtualKeyCode.TAB}, null);
does not simulate the "Alt+Tab" behavior (has no effect).

OS - Windows 8.
Closed Dec 12, 2013 at 2:07 AM by michaelnoonan


ElenaV wrote Dec 25, 2012 at 12:34 PM

Should be closed as is not related to InputSimulator itself, but is related to Windows 8 restriction regarding the UI access.

Just in case if somebody encounters this issue, the resolution is following :
  1. Sign the executable assembly by Microsoft trusted certificate;
  2. Add the trust info section into executable manifest file:
    <trustInfo xmlns="urn:schemas-microsoft-com:asm.v3">
    <requestedExecutionLevel level="asInvoker"
  3. Place the application's package into the "secured" location (Program Files, System32)

Tspoon wrote Jul 7, 2013 at 3:55 PM


I tried the given solution, but I'm being told that the InputSimulator isn't signed. Did you encounter this problem?

A slight bypass for any who want it: Alt + Escape still works

michaelnoonan wrote Dec 12, 2013 at 2:07 AM

Hi there,

The latest version of InputSimulator (as of is signed so you should be able to work around this issue using binaries, or compiling the source in yourself.

Hope that helps,