开发者

How to send a keystroke to a x11 vnc session (xtightvncviewer)

开发者 https://www.devze.com 2022-12-31 08:10 出处:网络
I need to press a ceratin Key after setting up a server connection via xtightvncviewer in order to make an automated screenshot. Can i pass it with the startupscript?

I need to press a ceratin Key after setting up a server connection via xtightvncviewer in order to make an automated screenshot. Can i pass it with the startupscript?

~/VNC# xtightvncviewer myserver.dyndns.org -bgr233 -passwd /root/.开发者_开发技巧vnc/passwd


You can open xtightvncviewer on a different display, then use scrot to take a screenshot.

There are of course methods to send keystrokes too, which is what you asked for, but it seems to be an uglier solution (if you ask me). For example check out these links:

  • http://www.doctort.org/adam/nerd-notes/x11-fake-keypress-event.html
  • http://packages.debian.org/lenny/xdotool
0

精彩评论

暂无评论...
验证码 换一张
取 消