Вопрос

I have a windows application running which takes screenshot when I press "ALT+Z". I want to trigger the same action in HTML/JS; that is the HTML/JS should simulate/trigger a "ALT+Z" so that the windows application takes a screenshot.

Это было полезно?

Решение

Use the accesskey attribute:

<input type="button" accesskey="z" />

This will invoke the click when alt + z is pressed.

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top