1

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.

4

1 回答 1

0

您可以使用本机 javascript,也可以只使用 jQuery。

这是一个带有 jQ​​uery 的

$(document).keypress("z",function(e) {
  if(e.altKey)
    alert("Alt+Z is pressed");
});
于 2013-06-27T16:21:46.920 回答