screenshot問題 - Linux

Table of Contents

小弟目前遇到screenshot的問題

以爬文知道gnome-screenshot指令

但是機台沒有解壓縮screenshot的package

也不能解壓縮或安裝其他東西

所以其他要install的工具也都不能使用

需要寫在start up的script內所以也不能動手按



想問看看有沒有command可以按下鍵盤上的prtsc鍵

或是可不可以寫成script來處發鍵盤上的prtsc鍵

或是還有甚麼其他方法可以使用

目前還有試到xwd -root -out screen.png

有產生檔案但是打不開(OS 使用SLES12.1)

麻煩了謝謝各位

--

All Comments

Carolina Franco avatarCarolina Franco2016-03-30
只是要按鍵盤的話 xdotool
Hedy avatarHedy2016-04-02
xwd dump 出來的東西不是 png 吧 XD
Charlotte avatarCharlotte2016-04-06
xwd -root | convert xwd:- screen.png
Edward Lewis avatarEdward Lewis2016-04-11
樓上,如果有 imagick 直接 import -window root 就好
John avatarJohn2016-04-15
樓上,當然也可以,只是照題意回應罷了!