Take a Shot! - yet another screenshot utility...

Paint programs, vector editors, 3d modelers, animation editors, etc.
Post Reply
Message
Author
musher0
Posts: 14629
Joined: Mon 05 Jan 2009, 00:54
Location: Gatineau (Qc), Canada

#16 Post by musher0 »

vicmz wrote:Hello everyone

Good job Nilson! :D
I have attached a slightly reviewed version of your Spanish locale.

Thanks for this app, SFR. Now I can easily explain (without heavier programs) why I often translate 'cursor' as 'puntero' (the mouse pointer, see pictures below).
Sorry if this is a bit off topic:
Strange, we don't seem to have the distinction in French, between pointer and cursor. The two terms seem to indicate the same thing.
http://www.wordreference.com/enfr/pointer

Anyway, I got to go finish the FR translation!

BFN.

musher0
musher0
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)

musher0
Posts: 14629
Joined: Mon 05 Jan 2009, 00:54
Location: Gatineau (Qc), Canada

#17 Post by musher0 »

SFR wrote:Hey Musher0, thank you for translation.
FYI: you missed two spots @ lines 193 and 235. :wink:
However, I just gettext'ed TAS, so you can use MoManager now, if you'd like, then I could add your translation to tas_NLS.pet.
From my side I made PL.

First post updated.

Greetings!
Hi, SFR.

Thanks for your reply. Sorry for the oversights.

I do not know how to use MoManager, so this is a "straight"
French version, with the oversights corrected.

Have a great day!

musher0
Attachments
Capturez-la(rev).zip
Revised French version.
(2.7 KiB) Downloaded 825 times
musher0
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)

User avatar
vicmz
Posts: 1262
Joined: Sun 15 Jan 2012, 22:47

#18 Post by vicmz »

Sorry, I had to review the Portuguese locale because of a translation mistake (see my former post). Anyway, Portuguese users can tell if there is anything else to correct. :wink:
musher0 wrote: Sorry if this is a bit off topic:
Strange, we don't seem to have the distinction in French, between pointer and cursor. The two terms seem to indicate the same thing.
http://www.wordreference.com/enfr/pointer
A pointer is a cursor, too. The difference is that the text cursor shows where you are typing, and the mouse pointer shows where you are touching. It's a useful distinction because a pointer can do much more (open/close, turn on/off, drag and drop, select, etc.).

As for the distinction in French language:
Wikipédia wrote:Les ordinateurs actuels disposent souvent d'une interface graphique avec un deuxième curseur (appelé aussi pointeur) qui est piloté par un dispositif de pointage (le plus souvent une souris mais il peut aussi s'agir d'un Touchpad, d'un Trackball ou autre). Sur la plupart des ordinateurs ce pointeur est représenté par une flèche incliné vers la gauche, tandis que le curseur pour le texte est représenté par une barre verticale.
http://fr.wikipedia.org/wiki/Curseur_(i ... e_pointage
[url=http://murga-linux.com/puppy/viewtopic.php?t=76948]Puppy Linux en español[/url]

User avatar
SFR
Posts: 1800
Joined: Wed 26 Oct 2011, 21:52

#19 Post by SFR »

Thanks - you're fantastic, guys!! :D
All added.

@Musher0: I made tas.mo file out of your translation, please check if everything's ok.
________________
vicmz wrote:
Bert wrote:a bit off-topic: I have often wondered why nobody creates a screenshot tool that actually uses the 'printscreen' key...just one key to hit and presto...probably more difficult to implement than I imagine
Not really off-topic, I think. I had the same question, too. Until Argolance developed a screenshot utility for ToOpPy that does use the Print Screen key, so our screenshot experts (01micko for screeny, SFR for TAS, Radky for PupSnap) could ask Argolance how he did it, if they want to include this feature in their utilities.
Yep, that's a hard one...
I don't know any pure, universal method to bind a key independently of current window manager.
As far as I can tell Argolance in his EasyShot (you meant that one, Vic?) has modified jwmrc-personal.
Similarily, in Slacko there's <Key keycode="111">exec:screeny</Key>.
Alas, these will work only in JWM...

Another way is to use xbindkeys, which makes the whole thing independent of current WM, but then again xbindkeys won't work if any menu is opened!

Eventually, one can use a dirty, lowest-level method like this:

Code: Select all

while :; do sleep 0.1; [ "`dd if=/dev/input/event0 bs=16 count=1 2>/dev/null | hexdump | cut -f8 -d ' ' | head -1`" = "00b7" ] && mtpaint -s; done
/dev/input/event0 = keyboard device (eventX may vary)
00b7 = PrtSc raw code (also may vary)
mtpaint -s = screenshot of the whole screen


Once launched, it should detect PrtSc in every (hopefully) circumstances...

Thanks again &
Greetings!
[color=red][size=75][O]bdurate [R]ules [D]estroy [E]nthusiastic [R]ebels => [C]reative [H]umans [A]lways [O]pen [S]ource[/size][/color]
[b][color=green]Omnia mea mecum porto.[/color][/b]

musher0
Posts: 14629
Joined: Mon 05 Jan 2009, 00:54
Location: Gatineau (Qc), Canada

#20 Post by musher0 »

You are too modest! Code corrected... :)

Code: Select all

while :; do sleep 0.1; [ "`dd if=/dev/input/event0 bs=16 count=1 2>/dev/null | hexdump | cut -f8 -d ' ' | head -1`" = "00b7" ] && tas; done
musher0
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)

musher0
Posts: 14629
Joined: Mon 05 Jan 2009, 00:54
Location: Gatineau (Qc), Canada

#21 Post by musher0 »

SFR wrote:
> @Musher0: I made tas.mo file out of your translation, please check if everything's ok.

Yep, everything ok!

musher0
musher0
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)

User avatar
ASRI éducation
Posts: 3197
Joined: Sat 09 May 2009, 12:10
Location: France
Contact:

#22 Post by ASRI éducation »

Thank you, TAS is a handy utility.

User avatar
L18L
Posts: 3479
Joined: Sat 19 Jun 2010, 18:56
Location: www.eussenheim.de/

Take a Shot! - yet another screenshot utility...

#23 Post by L18L »

Good to know
if a cursor/pointer needs to be displayed in a screenshot
TaS :lol:

German attached
Attachments
MoManager-de-tas-1.2.tar.gz
(1.42 KiB) Downloaded 802 times

simargl

#24 Post by simargl »

.
Last edited by simargl on Sun 01 Sep 2013, 15:31, edited 1 time in total.

User avatar
L18L
Posts: 3479
Joined: Sat 19 Jun 2010, 18:56
Location: www.eussenheim.de/

#25 Post by L18L »

simargl wrote:
Bert wrote: have often wondered why nobody creates a screenshot tool that actually uses the 'printscreen' key...
Don't know about JWM, but in Openbox, you'd only need to install scrot and add this to rc.xml

Code: Select all

    <keybind key="Print">
      <action name="Execute">
        <command>scrot screen-%Y%m%d%H%M%S.png</command>
      </action>
    </keybind>
Just tried in JWM: it is built in (and/or pre-configured)!
see very last lines of $HOME/.jwm/jwmrc-personal:

Code: Select all

<Key keycode="111">exec:screeny</Key>

</JWM>
Maybe we should change it to point to a new /usr/local/bin/defaultscreenshot :idea: :?: :!:

User avatar
SFR
Posts: 1800
Joined: Wed 26 Oct 2011, 21:52

Re: Take a Shot! - yet another screenshot utility...

#26 Post by SFR »

L18L wrote:Good to know
if a cursor/pointer needs to be displayed in a screenshot
TaS :lol:

German attached
Thank you L18L!
Added to NLS, see the first post.
a new /usr/local/bin/defaultscreenshot :idea: :?: :!:
Good idea, since there are so many of them floating around. :lol:

Greetings!
[color=red][size=75][O]bdurate [R]ules [D]estroy [E]nthusiastic [R]ebels => [C]reative [H]umans [A]lways [O]pen [S]ource[/size][/color]
[b][color=green]Omnia mea mecum porto.[/color][/b]

User avatar
don570
Posts: 5528
Joined: Wed 10 Mar 2010, 19:58
Location: Ontario

#27 Post by don570 »

I have put TAS-modified in Right click menu utility

I found a bug ?? in TAS. I couldn't save to a FAT32 USB stick,
unless I switched off the date feature. FAT32 needs hyphens in date.

I made a small change to script.
I added a line to check for FAT32 USB sticks

Code: Select all

  [ $DATESTAMP = true ]  && check_disk 

Code: Select all

 

check_disk () {  # if FAT32 disk then colon is changed
fdisk -l > /tmp/fdisk.tmp$$
DISK=`cat  /tmp/fdisk.tmp$$ | grep  "/dev" | grep "FAT." | cut -f 1 -d ' '`
echo "$DISK" > /tmp/fdisk.tmp$$  #  note that there may be several USB sticks
sed -i 's%/dev%/mnt%g' /tmp/fdisk.tmp$$ #  substitute dev for mnt
grep -q "$DIRECTORY"   /tmp/fdisk.tmp$$  # check for DIRECTORY on the line
if [ "$?" = "0"  ];then
SAVENAME="$SAVENAME""_`date +%Y-%m-%d_%H-%M-%S`"
else
SAVENAME="$SAVENAME""_`date +%Y-%m-%d_%H:%M:%S`"
fi
rm -f /tmp/fdisk.tmp$$
}


The above code wasn't enough because several USB sticks might
be mounted so I had to make a loop.
Attachments
tas-modified-1.2.pet
modified by don570 for USB stick
(3.78 KiB) Downloaded 844 times
Last edited by don570 on Mon 19 Aug 2013, 22:22, edited 1 time in total.

User avatar
don570
Posts: 5528
Joined: Wed 10 Mar 2010, 19:58
Location: Ontario

#28 Post by don570 »

Here'a a picture of Rox window with the saved files on a USB stick...

Image

User avatar
SFR
Posts: 1800
Joined: Wed 26 Oct 2011, 21:52

#29 Post by SFR »

Hey Don

Thanks for reporting this! Well, it's obviously a bug, or at least an oversight. 8)
Actually, I decided to completely remove those colons, since there's also a problem with uploading a file, that has a colon in its name, here on the forums.
Now it's just %H%M%S.

First post updated!

Greetings!
[color=red][size=75][O]bdurate [R]ules [D]estroy [E]nthusiastic [R]ebels => [C]reative [H]umans [A]lways [O]pen [S]ource[/size][/color]
[b][color=green]Omnia mea mecum porto.[/color][/b]

User avatar
greengeek
Posts: 5789
Joined: Tue 20 Jul 2010, 09:34
Location: Republic of Novo Zelande

#30 Post by greengeek »

Just in case it helps anyone troubleshooting their prtsc key there is some great background from npierce here:
http://www.murga-linux.com/puppy/viewtopic.php?p=722237

User avatar
SFR
Posts: 1800
Joined: Wed 26 Oct 2011, 21:52

#31 Post by SFR »

Version 1.4:

- output formats: removed - TGA, PCX, PPM; added - GIF
- added options to take sequence of snapshots
- 'Add datestamp' checkbox now adds only date
- new checkbox 'Add timestamp'
- program icon changed (/usr/local/lib/X11/mini-icons/mini-camera.xpm)
- lots of minor fixes

Now, a bit about the new 'sequence' feature.
When you select any of output formats except GIF, then if "Number of frames" is greater than 1, a subfolder will be created in which the sequence of snapshots will be saved.
In case of GIF, the result is already assembled animation.

'Number of frames' can be 1-999
'Frames per second' can be 1-10

So (see the first screenshot) having 250 frames and 10 fps we get 250/10=25 seconds of animation if it's GIF (see the second screenshot) or 250 "loose" images if it's PNG/JPG/BMP/TIF.

Just take seriously the built-in warning regarding huge GIFs - if it's too big, an attempt to view it in image viewer may lock up the system!

The new version was tested only on Slacko-5.7, so heads up about behaviuor in other Puplets are welcomed!

First post updated!

Have fun &
Greetings!
Attachments
Screenshot.png
(29.95 KiB) Downloaded 897 times
Last edited by SFR on Tue 03 Jun 2014, 21:53, edited 2 times in total.
[color=red][size=75][O]bdurate [R]ules [D]estroy [E]nthusiastic [R]ebels => [C]reative [H]umans [A]lways [O]pen [S]ource[/size][/color]
[b][color=green]Omnia mea mecum porto.[/color][/b]

User avatar
greengeek
Posts: 5789
Joined: Tue 20 Jul 2010, 09:34
Location: Republic of Novo Zelande

#32 Post by greengeek »

All that in 220kb - nice!

User avatar
SFR
Posts: 1800
Joined: Wed 26 Oct 2011, 21:52

#33 Post by SFR »

greengeek wrote:All that in 220kb - nice!
gifsicle --optimize=3 does that. :D
Unoptimized takes ~3.5M.

Btw, if gifsicle is present, optimization is applied automatically.

Greetings!
[color=red][size=75][O]bdurate [R]ules [D]estroy [E]nthusiastic [R]ebels => [C]reative [H]umans [A]lways [O]pen [S]ource[/size][/color]
[b][color=green]Omnia mea mecum porto.[/color][/b]

musher0
Posts: 14629
Joined: Mon 05 Jan 2009, 00:54
Location: Gatineau (Qc), Canada

#34 Post by musher0 »

Many thanks!
musher0
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)

User avatar
nilsonmorales
Posts: 972
Joined: Fri 15 Apr 2011, 14:39
Location: El Salvador

review spanish translate for new package

#35 Post by nilsonmorales »

Good job!!
Attachments
tas.mo.tar.gz
Traduccion en español
(1.77 KiB) Downloaded 636 times
[b][url=http://nilsonmorales.blogspot.com/]My blog |[/url][/b][b][url=https://github.com/woofshahenzup]| Github[/url][/b]
[img]https://i.postimg.cc/5tz5vrrX/imag018la6.gif[/img]
[img]http://s5.postimg.org/7h2fid8pz/botones_logos3.png[/img]

Post Reply