Click here to Skip to main content
15,881,248 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
Hi .
in my project i need to call some windows shortcut like CTRL+O or CTRL+A in windows environment.

i think i must use Javascript to do this work .. but i have no idea what must i do

for more detail and example i want when i press a button , in desktop select all icon ( by simulate CTRL+A )
Posted

Fortunately you cannot do such thing...
When you are in a web page you are closed inside the browser and have no access to the parts of the OS outside of it...
Imagine you visit a web site and that site start playing around with your desktop (or other more sensitive folders) - a wet dream of any hacker...
 
Share this answer
 
Hopefully you can understand this would be a major security issue. So no, hopefully this is not possible.

Good luck!

ps. in the old days (few years back) you could create your own activex component (limited to msie browser) to enable such functionality. This resulted in many security issues.
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900