0

I want to start google-chrome and then send the Ctrl+A to the chrome process, to begin recording with ScreenCastify. I have set the shortcut key for the ScreenCastify to Ctrl+A. Following is the code snippet I have used:

!#!/usr/bin/expect
spawn google-chrome --new-window <url>
send "\x01";
interact

The Ctrl+A is not triggering the recording on the browser.

abraham
  • 46,583
  • 10
  • 100
  • 152
dfordevy
  • 161
  • 1
  • 15

1 Answers1

0

Expect cannot work with GUI programs like Chrome. So, I used xdotool.

Xan
  • 74,770
  • 16
  • 179
  • 206
dfordevy
  • 161
  • 1
  • 15