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
精彩评论