Score:0

How to send keys and screenshot to Ubuntu?

us flag

I have an Ubuntu 20.04 in VirtualBox installed.

That has a browser opened as full screen with two tabs (having two IP cameras).

Question: How can I write a script that:

  • creates a screenshot of the full screen and saves it to a given path
  • then sends a CTRL+TAB
  • then CTRL+R
  • then waits 1 minute

and again from the beginning.

So the purpose is to take screenshots of the cameras picture in the browser.

Liso avatar
sd flag
Use `xdotool` for tab switching, screen capture can be done using any decent screenshot program that support command line.
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.