SendKeys will be consumed by the active application. Unless you have done
something to cause your app to not be the active app, your own app is
probably consuming the keys. The ExitWindowsEx API can be used to shutdown,
reboot, or logoff, but users could get irate about this happening
automatically.
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.