Open cernard opened 2 years ago
Send Command+C key event, and app could read copied data from clipboard.
RobotJS simulate all key event prefect except Command+C key event.
import robotjs from 'robotjs'; const simCopyShortcut = globalShortcut.register( 'CommandOrControl+Shift+C', () => { console.log('key pressed'); robotjs.keyTap('c', ['command']); console.log(clipboard.readText()); } );
Log print success but command+c key event did not trigger as expected.
This project appears to be unmaintained, see https://github.com/octalmage/robotjs/pull/622
Expected Behavior
Send Command+C key event, and app could read copied data from clipboard.
Current Behavior
RobotJS simulate all key event prefect except Command+C key event.
Steps to Reproduce (for bugs)
Log print success but command+c key event did not trigger as expected.
Your Environment