开发者

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

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜