Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Tue 16 Sep 2014, 07:52
All times are UTC - 4
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Graphics
Screeny - screen capture utility
Post new topic   Reply to topic View previous topic :: View next topic
Page 2 of 4 [47 Posts]   Goto page: Previous 1, 2, 3, 4 Next
Author Message
CatDude


Joined: 03 Jan 2007
Posts: 1473
Location: UK

PostPosted: Wed 01 Aug 2012, 05:42    Post subject:  

Hi

Flash wrote:
In that shot, if you had chosen "Window", which window would Screeny choose?


01micko wrote:
I'm glad you asked that Flash.

The cursor turns into a cross hair looking cursor and you just hover over the window you want and click.


Just make sure that the window to be captured IS NOT obscured (behind) any others,
otherwise this will happen: (see pics)

CatDude
.
psip-obscured.png
 Description   
 Filesize   53.33 KB
 Viewed   832 Time(s)

psip-obscured.png

psip-window-captured.png
 Description   
 Filesize   20.13 KB
 Viewed   781 Time(s)

psip-window-captured.png


_________________

Back to top
View user's profile Send private message 
`f00


Joined: 06 Nov 2008
Posts: 809
Location: the Western Reserve

PostPosted: Thu 20 Sep 2012, 18:34    Post subject:
Subject description: sp@m-ish
 

Mmhm, including the pointer in a cap (even with a fancy full-service-cap+ wine-app like FSCap) can be tricky in Puppy .. it's all about the difference in how the pointer is drawn and by what, how it relates to the rest of the draw and so on.

Ridiculously easy (and the pointer image shows as expected without any special consideration for mask, etc) with fscap in native win32..
fscappointer.png
 Description   fscap of pointer in win32 (sry about that :lol: )
 Filesize   1.29 KB
 Viewed   762 Time(s)

fscappointer.png

Back to top
View user's profile Send private message 
Monsie


Joined: 01 Dec 2011
Posts: 633
Location: Kamloops BC Canada

PostPosted: Thu 20 Sep 2012, 19:59    Post subject: Screeny - screen capture utility  

Hi Mick,

I have installed Screeny-0.4 on my Wary desktop, and although it works very well as is, I would like to have your app work with my PrtScr key --like I have been able to do with mtpaintsnapshot. While I am able to configure Screeny to run when using the PrtScr key, it does not capture and save a screenshot, despite appearing to go through the motions of doing so... --and I have no idea why. Confused

It seems to me that once I have set the key binding properly in JWM, it should just work, and therefore no additional lines of code for your scripts are necessary... --any ideas, suggestions?

Thanks in advance,
Monsie

_________________
My username is pronounced: "mun-see". Derived from my surname, it was my nickname throughout high school.
Back to top
View user's profile Send private message 
aragon

Joined: 15 Oct 2007
Posts: 1698
Location: Germany

PostPosted: Fri 21 Sep 2012, 12:34    Post subject:  

Monsie, have you installed xwd?

Aragon

_________________
PUPPY SEARCH: http://wellminded.com/puppy/pupsearch.html
Back to top
View user's profile Send private message 
Monsie


Joined: 01 Dec 2011
Posts: 633
Location: Kamloops BC Canada

PostPosted: Sat 22 Sep 2012, 04:39    Post subject: Screeny - screen capture utility  

aragon,

Thanks, indeed I did install xwd. When I indicated that Screeny
Quote:
works very well as is

I meant that it runs fine from the desktop menu when I use the mouse.

Further, the fact that I am unable to get Screeny to work with my keyboard at the moment is not a deal breaker for me... rather, it's a preference and also a curious puzzle that I would like help with solving, and in the process I am sure that I will learn some things along the way...

Monsie

_________________
My username is pronounced: "mun-see". Derived from my surname, it was my nickname throughout high school.
Back to top
View user's profile Send private message 
01micko


Joined: 11 Oct 2008
Posts: 7801
Location: qld

PostPosted: Tue 25 Sep 2012, 17:41    Post subject:  

Hello Monsie

Sorry for the delay, your post just caught my attention.

I will have a look at your issue and see if it can be resolved in the next version.

Cheers

EDIT: hmmmm... it works fine here. Are you putting this command in /root/.jwm/jwmrc-personal?
Code:
<Key keycode="111">exec:screeny</Key>


It certainly seems strange if you actually get the screeny gui showing yet it fails to work Confused . Maybe a conflict? Any errors in /tmp/xerrs.log?

_________________
Woof Mailing List | keep the faith Cool |
Back to top
View user's profile Send private message Visit poster's website 
Monsie


Joined: 01 Dec 2011
Posts: 633
Location: Kamloops BC Canada

PostPosted: Wed 26 Sep 2012, 02:31    Post subject: Screeny - screen capture utility  

Hi Mick,

Thanks for getting back to me.

Yes, I did indeed have the key binding set in jwmrc-personal just the way you indicated... so tonight, just for kicks I tried it again, and this time Screeny did "save" the snapshot, but the file showed up in text format... Shocked So, then I tried to re-boot Wary but was not able to... I kept getting a kernel panic, and no amount of re-booting with the various troubleshooting options would help...

To make a long story short, it appears that my Wary Puppy CD is corrupted. I have been having intermittent problems with booting it since the summer at least... I thought it was because I was running pupmode 13 but as it turns out, now I cannot boot up Wary 5.3 from the CD alone, whereas Puppy 4.3.1 and Wary 5.2.2 work just fine in my latest test, and in fact, I am running Wary 5.2.2 in live mode as I post this...

So, I will have to burn a new copy of Wary 5.3 and once I get Puppy set up again the way I like it, will try this again. If I do happen to have further glitches with setting up Screeny, I'll let you know... but as I suspect, I think the problem (all along) is due to a messed-up CD.

Monsie

_________________
My username is pronounced: "mun-see". Derived from my surname, it was my nickname throughout high school.
Back to top
View user's profile Send private message 
01micko


Joined: 11 Oct 2008
Posts: 7801
Location: qld

PostPosted: Wed 26 Sep 2012, 06:34    Post subject:  

Hi Monsie, thanks for letting me know. Hope you get your installation fixed.

Meanwhile, I have released 0.5. Has some new "features" (erm, which I promised it wouldn't get Rolling Eyes ). Sorry, no cursor feature, too hard basket in the context of the program.

EDIT- 0.6 is out, fixed potential bug with setting an insane delay (not a positive integer), use hard coded 1-10 instead in a combobox

_________________
Woof Mailing List | keep the faith Cool |
Back to top
View user's profile Send private message Visit poster's website 
Monsie


Joined: 01 Dec 2011
Posts: 633
Location: Kamloops BC Canada

PostPosted: Mon 01 Oct 2012, 00:41    Post subject: Sreeny - screen capture utility  

Just an update for the record...

I burned a new copy of Wary 5.3 and so far, so good Very Happy Luckily, my save file on my usb flash drive seems to be intact, so it did not take long to get up and running again.

Screeny 0.4 is working just fine when configured to run with the keyboard through JWM Smile so I will have to try the newest version next...

Monsie

_________________
My username is pronounced: "mun-see". Derived from my surname, it was my nickname throughout high school.
Back to top
View user's profile Send private message 
L18L

Joined: 19 Jun 2010
Posts: 2505
Location: Burghaslach, Germany somewhere also known as "Hosla"

PostPosted: Sat 06 Oct 2012, 09:20    Post subject: Re: Screeny - screen capture utility
Subject description: forum
 

01micko wrote:
...
0.5 posted
...
-windowed shots get the forum compat treatment if chosen too, be aware that small windows get enlarged, but if you don't want that turn off forum compatibility
...

my hacked /usr/local/screeny/screenfunc wrote:
#!/bin/sh
#functions for "screeny"
#set work dir
#121006 L18L do scale only if width is greater than 600 px

APPDIR=$(pwd)
export APPDIR

case $1 in
snap_func1)
{
WINDOWID="$(xwininfo -frame|grep "Window id"|tr ' ' '\n'|grep "[0-7a-f][0-7a-f]")"

xwd -id "$WINDOWID" | xwdtopnm | pnmtopng > "$CAPTURE"
}
;;

snap_func2)
{
WINDOWID="-root"

xwd $WINDOWID | xwdtopnm | pnmtopng > "$CAPTURE"
}
;;
forum_func1)
{
WINDOWID="$(xwininfo -frame|grep "Window id"|tr ' ' '\n'|grep "[0-7a-f][0-7a-f]")"
#121006
WINDOWWIDTH="$(xwininfo -frame|grep Width:|cut -d':' -f2|tr -d ' ')"
[ $WINDOWWIDTH -gt 600 ] \
&& xwd -id $WINDOWID | xwdtopnm | pnmscale -w 600 | pnmtojpeg > "$CAPTURE" \
|| xwd -id $WINDOWID | xwdtopnm | pnmtojpeg > "$CAPTURE" #121006

}
;;
forum_func2)
{
WINDOWID="-root"
#121006
WINDOWWIDTH="$(xwininfo -frame|grep Width:|cut -d':' -f2|tr -d ' ')"
[ $WINDOWWIDTH -gt 600 ] \
&& xwd $WINDOWID | xwdtopnm | pnmscale -w 600 | pnmtojpeg > "$CAPTURE" \
|| xwd $WINDOWID | xwdtopnm | pnmtojpeg > "$CAPTURE" #121006

}
;;
esac

Have fun Very Happy
Back to top
View user's profile Send private message 
01micko


Joined: 11 Oct 2008
Posts: 7801
Location: qld

PostPosted: Sun 07 Oct 2012, 16:54    Post subject:  

Nice idea L18L

One problem, 2 calls to xwininfo means 2 clicks..

I simplified the original var and separated it,
Code:
WININFO="$(xwininfo -frame|grep -iE "Window id|Width")"
WINDOWID="$(echo "$WININFO"|grep "Window id"|tr ' ' '\n'|grep "[0-7a-f][0-7a-f]")"
WINDOWWIDTH="$(echo "$WININFO"|grep Width:|cut -d':' -f2|tr -d ' ')"

[ $WINDOWWIDTH -gt 600 ] && \
xwd -id $WINDOWID | xwdtopnm | pnmscale -w 600 | pnmtojpeg > "$CAPTURE" || \
xwd -id $WINDOWID | xwdtopnm | pnmtojpeg > "$CAPTURE" #121006

While the code is technically slower I don't think it matters.

Attached is an experimental version with the above, but I didn't add the fullscreen code. If your res is less than 600 then something is wrong or your eyesight is poor! Plus all of Puppy's icons would be squashed up. I guess if you ran in vertical mode then it would be warranted, but I just think that the case for not out weighs the case for. Smile

Oh yes, I tried to add gettext to the experiment, doesn't quite work with the menu tooltips and the help/about.

Cheers!
screeny-0.6.5exp.pet
Description  gettext and a mod to L18L's fix added
pet

 Download 
Filename  screeny-0.6.5exp.pet 
Filesize  3.37 KB 
Downloaded  557 Time(s) 

_________________
Woof Mailing List | keep the faith Cool |
Back to top
View user's profile Send private message Visit poster's website 
L18L

Joined: 19 Jun 2010
Posts: 2505
Location: Burghaslach, Germany somewhere also known as "Hosla"

PostPosted: Mon 08 Oct 2012, 09:20    Post subject: Screeny - screen capture utility  

Hello Mick,
yes my eye sight is poor but my screen is 1920 px wide Very Happy
and I did not think about small screens < 640*480 Rolling Eyes

Anyway attached is v 0.6.5.1exp
It does NOT contain screeny.pot because using Barry´s momanager you do not need it.
German translation in MoManager-de-screeny...

# (c) Mick Amadio, 01micko@gmail.com LGPL 2012(see /usr/share/doc/legal)
#L18L HELP in tmp/screenyHELP, help &
# splitted in smaller chunks
# added: File, Help, delay, preferences, splash messages
# message about smaller than 600 px trashed
. gettext.sh # enable multiple variables in message (see eval_gettext)
# version 0.6.5.1

Have fun and keep the faith
---------------------------------
LO-downloader extended
MoManager-de_DE-screeny-0.6.5exp.tar.gz
Description 
gz

 Download 
Filename  MoManager-de_DE-screeny-0.6.5exp.tar.gz 
Filesize  2.47 KB 
Downloaded  542 Time(s) 
screeny-help.png
 Description   
 Filesize   35.65 KB
 Viewed   777 Time(s)

screeny-help.png

screeny-0.6.5.1exp.pet
Description 
pet

 Download 
Filename  screeny-0.6.5.1exp.pet 
Filesize  3.03 KB 
Downloaded  548 Time(s) 
Back to top
View user's profile Send private message 
01micko


Joined: 11 Oct 2008
Posts: 7801
Location: qld

PostPosted: Tue 09 Oct 2012, 22:46    Post subject:  

Hi L18L

Works well Smile . I switched to de_DE.UTF-8 to try it out.

So.. what's the best way to package an NLS file for version 0.7? (considering mo-manager so others can translate).

Once a couple more translations are in I think it's ready to be a replacement for mtpaintsnapshot at the woof level.

Ha.. for a proggy I started touted to have NO features it sure has evolved Laughing

_________________
Woof Mailing List | keep the faith Cool |
Back to top
View user's profile Send private message Visit poster's website 
L18L

Joined: 19 Jun 2010
Posts: 2505
Location: Burghaslach, Germany somewhere also known as "Hosla"

PostPosted: Wed 10 Oct 2012, 05:21    Post subject: Screeny - screen capture utility
Subject description: NLS.pet
 

Hi 01micko,
you wrote:
...best way to package an NLS file for version 0.7? (considering mo-manager so others can translate)....

For getting more translations I suggest you post in Localization Project
with a link to post 1 of this thread where version 7 will be available.
And the hint use momanager should be sufficient.
But also pointing to MoManager translation manager in
HOWTO internationalize applications (klick file /usr/share/doc/HOWTO-internationalization.htm)

Packaging a *NLS.pet is merging the different /usr/share/locale .... only
and not the /usr/share/applications

Thus the translator can post just the MoManager...screeny...tar.gz produced by momanager. Nothing else than
- version 0.7
- the momanager and devx
is needed to make the localization of version 0.7.
Very Happy
Back to top
View user's profile Send private message 
01micko


Joined: 11 Oct 2008
Posts: 7801
Location: qld

PostPosted: Wed 10 Oct 2012, 15:57    Post subject:  

OK, thanks L18L

I have posted 0.7.

NLS only includes /usr/share/locale/de/LC_MESSAGES/screeny.mo (I think that's right Rolling Eyes ) at this stage.

For those who have L18L's 0.6.5.1 version there is no functional difference at all with 0.7 so no need to download it. It's only the version that changed.

See main post (with link to language support thread)

_________________
Woof Mailing List | keep the faith Cool |
Back to top
View user's profile Send private message Visit poster's website 
Display posts from previous:   Sort by:   
Page 2 of 4 [47 Posts]   Goto page: Previous 1, 2, 3, 4 Next
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Graphics
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0998s ][ Queries: 13 (0.0055s) ][ GZIP on ]