简体   繁体   中英

How to Trigger Keyboard shortcut (ctrl+alt+R) using javascript?

I am trying to create a webpage that should be able to record the screen automatically. I am using "Screencastify" chrome extension to record the screen. Here we need to use Ctrl + Alt + R to start/stop recording. Is there any way to start/stop recording from a page's javascript? Please let me know your thoughts on this.

I'm afraid not.

Even if Screencastify has some API exposed (eg a custom event you could raise), it would probably run into problems that recording screen requires an explicit invocation of the extension by the user.

That said, a quick glance shows that there is no such API exposed.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM