简体   繁体   中英

How can I listen to events on other applications?

Building an electron app. Trying to see if I can embed some sort of event listener into other applications, then based on that return a console message. An example is being able to track if I'm opening a new tab on chrome and return a message saying "Just opened a new tab."

No, it unfortunately is not yet possible, with JavaScript, to determine if the user has opened a new tab in google chrome or other browsers. The only thing you could do to see this would be to check from the input system (eg keys pressed), but the user would probably press the new tab button in the browser!

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