This is a static archive of the old Zorin Forum.

The information below may be outdated. Visit the new Zorin Forum here ›

If you have registered on the old forum, you will need to create an account on the new forum.

(SOLVED)How to take screenshot using PrtSc Button on Laptop?

btiu

Mon Apr 14, 2014 3:50:50 am

Hi all! I have just installed Zorin 8 Lite yesterday. Fn functions seem to work flawlessly on my Acer Aspire One D250-1Br Laptop. Only buttons that doesn't seem to work are win key (aka Super, and as i have read, this win/super key cannot yet open the zorin menu as of now. that's fine with me).

But there's the PrtSc Button which doesn't seem to take screenshots. I do not wish to use GNOME screenshot or KSnapshot as these require me to fire it up first before i can take a screenshot. When I press the PrtSc button on my laptop, nothing happens. No "Save as .png" dialog appears. When I open mtpaint or ms paint and I try to paste it using ctrl+V, nothing happens.

Is there something else that I should do for the PrtSc button to work? BTW the PrtSc button also has something else written on it "SysRq".

Any ideas?
Thanks in advance.

Wolfman

Mon Apr 14, 2014 6:53:51 am

btiu

Mon Apr 14, 2014 8:28:07 am

Wolfman wrote:Hi,

install Shutter and look here:

http://shutter-project.org/faq-help/set ... shot-tool/

Thanks Wolfman! That was fast :D I will try it out now, but managing global keyboard shortcuts may not be that easy, as the page says. O.O

Edit 1: Just tried editing ~/.config/openbox/lxde-rc.xml using leafpad. Surprisingly, when leafpad opened, lxde-rc.xml was empty... I dont know why... So anyway I downloaded shutter and placed this code in the xml

<keybind key="Print">
<action name="Execute">
<command>shutter -f</command>
</action>
</keybind>

And pressed save
Then typed this in the terminal "openbox --reconfigure"

But still nothing works.. hmm.. I'm stumped.

Wolfman

Mon Apr 14, 2014 9:43:40 am

Hi,

I have done an edit to the post install guide and added this info:

http://wiki.lxde.org/en/PCManFM#Desktop_Icons.2Flinks

I have not studied or read it so each person can decide which of the methods they want to use for themselves!.

Zorin Lite Guide:

viewtopic.php?f=5&t=4835&p=22914#p22914

Can we mark your original problem as solved now?.

btiu

Mon Apr 14, 2014 10:22:55 am

@Wolfman

I'm afraid I haven't managed to solve the PrtSc button yet. Sorry.. I'm still trying the link you mentioned above about shutter and how to make hotkeys work on LXDE Zorin lite. But so far I haven't any success... sigh..

The dektop links, i sort of got what the steps are and have made it work for installed apps. But I have yet to know how to make links to files.

Wolfman

Mon Apr 14, 2014 3:03:04 pm

btiu

Tue Apr 15, 2014 7:42:13 am

Wolfman wrote:Hi,

http://wiki.lxde.org/en/LXDE:Questions#Change_hotkeys

That should solve your hotkey problem!.

See also:

http://wiki.lxde.org/en/LXDE:Questions# ... hotkeys.3F

I haven't had any luck with that method. I might be doing something wrong but I couldn't figure it out. So I download AutoKey from the repo, and now I can open shutter by simply pressing the PrtSc button! I have yet to know how to trigger the command "shutter -f" using autokey. But now I am satisfied.

So steps here:
Download AutoKey
Create new script. I named it to "Start Shutter"
Paste this script

import subprocess
subprocess.Popen(["/usr/bin/shutter"])

and click save.
Click "set" on the row of hotkey.
Click the "set key" button.
Then press your desired button (which is PrtSc Button)
and click save again. Done!

I found this^ workaround from here
http://saravananthirumuruganathan.wordp ... utomation/

So I guess we can mark this thread solved :) @Wolfman

Edit: this one actually takes the screenshot automatically when you press PrtSc!
http://ostatic.com/blog/automating-the- ... th-autokey

and it works!!! code altered for shutter:

system.exec_command("bash -c 'rm ~/Downloads today.png'",False)
system.exec_command("shutter -f", False)
window.wait_for_exist("Save Screenshot", timeOut=5)
system.exec_command("xte 'mousemove 725 399'", False)
window.activate("Save Screenshot", switchDesktop=False)
keyboard.send_keys("today")

BTW if you use gnome-screenshot, then just replace shutter with gnome-screenshot or the name of your application

Use this second code if you want to take a screenshot automatically right there and then. Use the first code if you want to open shutter first before it takes a pic.
-f means full screen
-w means window
-s means selection
-t means tooltip
tho i dont know what timeout=5 means and what mousemove means haha :D

Hope this helps

Wolfman

Tue Apr 15, 2014 8:08:58 am

Hi,

so can we mark this as solved now?.

I haven't checked out the shortcut keys either as I don't have time at the moment sorry!.

btiu

Tue Apr 22, 2014 12:23:22 pm

Wolfman wrote:Hi,

so can we mark this as solved now?.

I haven't checked out the shortcut keys either as I don't have time at the moment sorry!.

The prtint screen hotkey works. yes we can mark this as solved. thanks!

Swarfendor437

Tue Apr 22, 2014 2:18:41 pm

Just to add, if you install Cairo-Dock and have 'Screenshot' on the dock, as soon as you click it it captures the screen! :D