New mtPaint-snapshot: Wait 2, 5, or 10 sec, or modify

Paint programs, vector editors, 3d modelers, animation editors, etc.
Post Reply
Message
Author
User avatar
pa_mcclamrock
Posts: 695
Joined: Fri 03 Jun 2005, 23:13
Location: Fort Wayne, Indiana, USA

New mtPaint-snapshot: Wait 2, 5, or 10 sec, or modify

#1 Post by pa_mcclamrock »

Don't like waiting 10 seconds to arrange your screen for a screenshot, when 2 seconds would do? No problem. Just untar this revised mtpaintsnapshot.sh script, put it in /usr/bin, run it, wait 2 (or 5) seconds instead of 10, and make good use of all those saved seconds. If you want yet another number of seconds, it's as easy for you to modify this script as it was for me. Just look at this code:

Code: Select all

<button>
    <input file icon=\"gtk-refresh\"></input>
    <label>Wait 5 Sec</label>
	<action>(echo 20; sleep 1 ; echo 40; sleep 1 ; echo 60 ; sleep 1 ; echo 80; sleep 1 ; echo 100 ) | Xdialog --title 'Puppy Screenshot' --beep-after --wrap --screen-center --center --no-buttons --gauge 'Please wait & prepare your screen ' 10 50 100 ; exec mtpaint -s &</action>
	<action>exit: Screenshot</action>
   </button>
On the "action" line, you'll note that the numbers after the "echoes" are percentages of the total time to wait. So, if you wanted 4 instead of 5 seconds, you'd just change "5" to "4" in the label, and change "echo 20" (etc.) to this:

Code: Select all

(echo 25; sleep 1 ; echo 50; sleep 1 ; echo 75 ; sleep 1 ; echo 100 )
Attachments
mtpaintsnapshot.gif
(10.21 KiB) Downloaded 846 times
mtpaintsnapshot.sh.tar.gz
(643 Bytes) Downloaded 734 times
It's stupid to use inferior software for ideological reasons.
--Linus Torvalds

Pelo

2014 MTpaint Video francophone

#2 Post by Pelo »

2014 MTpaint Video snapshot. Je vais refaire ma video en rajoutant Waiting choice
francophone video MTpaint
Ouvrir le tar gz le mettre dans /usr/bin, lancer le programme
Vous pouvez adapter le nombre de secondes...
Perfect !it works Thanks sir :)

Post Reply