check for keyboard press while using another application (such as Chrome)
조회 수: 4 (최근 30일)
이전 댓글 표시
Hello,
I am wondering if it is possible to launch a script, which waits for a specific keyboard key to be pressed before proceeding with the execution.
I know this is possible within matlab environment, but I need it when I am using other applications (such as Word or browsing on the Internet).
As such, I would like to:
1) launch the script,
2) open another application, while the script is waiting for the keyboard key to be pressed,
3) the script should detect the key in order to fully executed.
Thank you.
댓글 수: 0
답변 (1개)
Jan
2021년 1월 7일
The key should be caught, while the browser is the active window? This is a keyboard sniffer and running it might be conflict with the laws. Another problem is the usability: it is not the expected behavior of a software to catch user actions in other programs. So this could or should confuse the users of your program.
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!