Now you can use the Print Screen Key
- gposil
- Posts: 1300
- Joined: Mon 06 Apr 2009, 10:00
- Location: Stanthorpe (The Granite Belt), QLD, Australia
- Contact:
Now you can use the Print Screen Key
The following will allow you to capture a screenshot as a jpeg in the my-documents folder just by pressing the "Print Screen" Key'.
"Alt-Print Screen" then click on a window to just capture that window.
Tested in JWM on 4.1.2 and 4.2
Hope you like it.
Latest version further down in Dingo post http://www.murga-linux.com/puppy/viewto ... 779#293779
"Alt-Print Screen" then click on a window to just capture that window.
Tested in JWM on 4.1.2 and 4.2
Hope you like it.
Latest version further down in Dingo post http://www.murga-linux.com/puppy/viewto ... 779#293779
Last edited by gposil on Sat 11 Apr 2009, 03:06, edited 2 times in total.
- Dingo
- Posts: 1437
- Joined: Tue 11 Dec 2007, 17:48
- Location: somewhere at the end of rainbow...
- Contact:
very good, I suggest a little addition, to be able to select windows size (choosing width and height, moving mouse around windows you can capture)
adding -s parameter, like:
regarding the keyboard shortcut, if
keycode="111" is used to perform fullshot, what key do you think we can use to perform a border selected screenshot?
adding -s parameter, like:
Code: Select all
scrot '-s %T.png' -e 'mv $f ~/my-documents/'; xmessage -timeout 3 -center "Screen Shot Done"
Code: Select all
!/bin/bash
#post-install script.
sed -i -e '/<!-- Key bindings -->/ a\<Key keycode="111">exec:fullshot</Key>' /root/.jwm/jwmrc-personal
xmessage -center You must restart X for changes to take effect.
- Attachments
-
- selectborders.zip
- (283 Bytes) Downloaded 597 times
Last edited by Dingo on Fri 10 Apr 2009, 15:20, edited 1 time in total.
- Dingo
- Posts: 1437
- Joined: Tue 11 Dec 2007, 17:48
- Location: somewhere at the end of rainbow...
- Contact:
thanks, I was blind. regarding keybord shortcut, what keycode do you think we can assing to winshot (to select manually screenshoot area)
replace .co.cc with .info to get access to stuff I posted in forum
dropbox 2GB free
OpenOffice for Puppy Linux
dropbox 2GB free
OpenOffice for Puppy Linux
- gposil
- Posts: 1300
- Joined: Mon 06 Apr 2009, 10:00
- Location: Stanthorpe (The Granite Belt), QLD, Australia
- Contact:
winshot key assignment
Dingo
keycode 92 should do it...that Alt-Print Screen or Shift-Print Screen either will work I think...got to test it...
new version with window capture uploaded.
keycode 92 should do it...that Alt-Print Screen or Shift-Print Screen either will work I think...got to test it...
new version with window capture uploaded.
- Dingo
- Posts: 1437
- Joined: Tue 11 Dec 2007, 17:48
- Location: somewhere at the end of rainbow...
- Contact:
Alt-Print Screen key is not working (I must type in console and then click on an on active window - (I'll further investigate) anyway, I have repackaged .pet with a little dependency missing (libtiff.so.4) and other libs renamed
take in mind, when create pet packages, that dir must have same name of pet package or it will not able to expand. fixed in version I have uploaded as attachment and on dokupuppy
http://puppylover.netsons.org/dokupuppy ... screenshot
Code: Select all
scrot -s
take in mind, when create pet packages, that dir must have same name of pet package or it will not able to expand. fixed in version I have uploaded as attachment and on dokupuppy
http://puppylover.netsons.org/dokupuppy ... screenshot
replace .co.cc with .info to get access to stuff I posted in forum
dropbox 2GB free
OpenOffice for Puppy Linux
dropbox 2GB free
OpenOffice for Puppy Linux
Actually I wrote about that in the context of JWM when I described my button-bars (command bars) last year (possibly) or even the year before.Lobster wrote:Is it possible to activate the screen capture in mtpaint from the command line and activate it by assigning it the print screen key?
Let me quote from the web page I wrote which you can find here :
I don't know how WhoDo did it in 215ce, but the very simple line in the .jwmrc file works without anything extra in all the ver2's that use JWM, and from memory similarly in v3 as well. I haven't tried it in v4 at this time.While nothing whatsoever to do with button bars, I thought I'd mention this customisation tip as well. I've discovered it isn't difficult to enable the Print/Screen button (like WhoDo did in 2.15ce) to initiate taking a screen capture - which is also used in several other operating systems, including Windows, but surprisingly in few Linuxes.
All it needs is a single line of code in the /root/.jwmrc file, near the bottom, in the key redefinition section...
<Key key="Print">exec:mtpaint -s</Key>
The keypress capture technique doesn't seem to work in Ver 1.09 for Windows, though. It locks the keyboard inoperable if you try it.
Richard in Oz-land
[i]Have you noticed editing is always needed for the inevitable typos that weren't there when you hit the "post" button?[/i]
[img]http://micro-hard.dreamhosters.com/416434.png[/img]
[img]http://micro-hard.dreamhosters.com/416434.png[/img]
- gposil
- Posts: 1300
- Joined: Mon 06 Apr 2009, 10:00
- Location: Stanthorpe (The Granite Belt), QLD, Australia
- Contact:
No it doesn't
No that simple line doesn't work in version 4+...JWM has changed and you have to use the key scan method..
The whole point of what I and now Dingo are trying to achieve is to give the screen capture over to a familiar method ...just press the Print Screen Key...without opening software...you ca go back later and review and edit what you captured...
The reason I have steered clear of mtPaint is its inability to deal with clipboard matters...
The whole point of what I and now Dingo are trying to achieve is to give the screen capture over to a familiar method ...just press the Print Screen Key...without opening software...you ca go back later and review and edit what you captured...
The reason I have steered clear of mtPaint is its inability to deal with clipboard matters...
Thanks for the info. Is that because in the design the JWM menuing has been disabled?
I could never understand why there was a need for the other way of menuing when you almost never use more than one window manager.
I might have a look in the next day or so at re-enabling the JWM menuing in 4.12 - I'm pretty sure I was able to get the .jwmrc-tray menu up and running with my extra buttons etc on it several weeks ago when I first looked at it.
Richard
Edit
If you open .jwmrctray and duplicate the button next to the start menu button, and change the command in the duplicate to exec:mtpaint -s it works in the same way as a hot key
So if you don't like mtpaint (and I agree with your point) I'm sure there would be another app that could run in a capture mode that could be used.
The problem seems to be the inability to call a command from a key. Which makes one wonder if any of the other keybindings in the .jwmrc file work? Or maybe if the jwmrc menu were reinstated, they all would? Speculation for another day
I'm off to bed. Take care
Richard
I could never understand why there was a need for the other way of menuing when you almost never use more than one window manager.
I might have a look in the next day or so at re-enabling the JWM menuing in 4.12 - I'm pretty sure I was able to get the .jwmrc-tray menu up and running with my extra buttons etc on it several weeks ago when I first looked at it.
Richard
Edit
If you open .jwmrctray and duplicate the button next to the start menu button, and change the command in the duplicate to exec:mtpaint -s it works in the same way as a hot key
So if you don't like mtpaint (and I agree with your point) I'm sure there would be another app that could run in a capture mode that could be used.
The problem seems to be the inability to call a command from a key. Which makes one wonder if any of the other keybindings in the .jwmrc file work? Or maybe if the jwmrc menu were reinstated, they all would? Speculation for another day
I'm off to bed. Take care
Richard
[i]Have you noticed editing is always needed for the inevitable typos that weren't there when you hit the "post" button?[/i]
[img]http://micro-hard.dreamhosters.com/416434.png[/img]
[img]http://micro-hard.dreamhosters.com/416434.png[/img]
- gposil
- Posts: 1300
- Joined: Mon 06 Apr 2009, 10:00
- Location: Stanthorpe (The Granite Belt), QLD, Australia
- Contact:
Richard
All you need is an entry in the key bindings section of /.jwm/jwmrc-personal, but you use the keycode="111" instead of key="Print"(which doesn't work)...
What i'm trying to do is avoid opening any software when you capture a screen, just save it directly to a file for later perusal...this part works...we are now trying to get the selective window capture working from the Alt-Print Screen key combo.
All you need is an entry in the key bindings section of /.jwm/jwmrc-personal, but you use the keycode="111" instead of key="Print"(which doesn't work)...
What i'm trying to do is avoid opening any software when you capture a screen, just save it directly to a file for later perusal...this part works...we are now trying to get the selective window capture working from the Alt-Print Screen key combo.
-
- Posts: 632
- Joined: Tue 02 Oct 2007, 07:39
And what should I add to .jwmrc to be able to capture a screenshot of the active window by using 'Alt+PrintScreen' ? (with mtPaint opened,of course)gposil wrote:All you need is an entry in the key bindings section of /.jwm/jwmrc-personal, but you use the keycode="111" instead of key="Print"(which doesn't work)...
- gposil
- Posts: 1300
- Joined: Mon 06 Apr 2009, 10:00
- Location: Stanthorpe (The Granite Belt), QLD, Australia
- Contact:
What about this
When you press Print Screen key you get this...
- Attachments
-
- shot1.jpg
- This is better
- (6.6 KiB) Downloaded 2689 times
- gposil
- Posts: 1300
- Joined: Mon 06 Apr 2009, 10:00
- Location: Stanthorpe (The Granite Belt), QLD, Australia
- Contact:
Explanation
Maybe a few words about how shot works...
Click the Print Screen key and dialog will pop up asking you for full screen shot or just a window only...
If you select Full screen a snapshot of the screen will be saved to your /my-documents folder with file name as a time stamp(jpg format).
If you select Window only, you just click on the window you want a snapshot of and again it will be saved as per full screen.
Hope that explains it...
Let me know if you want the facility to change image format or any other suggestions.
Click the Print Screen key and dialog will pop up asking you for full screen shot or just a window only...
If you select Full screen a snapshot of the screen will be saved to your /my-documents folder with file name as a time stamp(jpg format).
If you select Window only, you just click on the window you want a snapshot of and again it will be saved as per full screen.
Hope that explains it...
Let me know if you want the facility to change image format or any other suggestions.
Now you can use the Print Screen Key
gposil, thanks for the excellent screen capture utility
I am using it on turbopup alpa3 with success today
a query, no options dialogue box appears when you press the printscreen button
what you get is a a small message box saying screen shot done
regards
ps, i also noticed graphic menu with turbo pup has an entry called mtpaint snapshot-screen capture
I am using it on turbopup alpa3 with success today
a query, no options dialogue box appears when you press the printscreen button
what you get is a a small message box saying screen shot done
regards
ps, i also noticed graphic menu with turbo pup has an entry called mtpaint snapshot-screen capture
shot-0.1.2.pet
Thanks for the quick response, yes i was using version 0.1.1
deleted this version, rebooted turbopup, installed 0.1.2 unfortunatly still exactly the same behavour
not a show stopper, i will try it in a couple of other puppys i have and see what happens, will report back in a couple of days
Regards
deleted this version, rebooted turbopup, installed 0.1.2 unfortunatly still exactly the same behavour
not a show stopper, i will try it in a couple of other puppys i have and see what happens, will report back in a couple of days
Regards