Forum

The time now is Thu Jul 29, 2010 2:59 pm

Become a registered member of the Mandriva community.It takes only 5 mns and it's free ... Learn more ...
Need to take Screenshots at regular intervals

 
Post new topic   Reply to topic    Mandriva Forum Index -> General Software
View previous topic :: View next topic  
Author Message
TheNinja

Non Figura

Joined: 23 Oct 2003
Posts: 62

View user's profile Send private message
PostPosted: Tue Jan 20, 2004 4:40 am    Post subject: Reply with quote Report

Hi
I use KSnapshot to take my screenshots. Its pretty cool, except that I cannot take screenshots continuously. I need to click on New Snapshot everytime and then save it and then take a New snapshot.

Can i configure it to take snapshots every \"X\" seconds and save it automatically with a base filename that I specify?

I am trying to take snapshots of the KDE Menu.

Thanks in advance,
Cheers,
TheNinja
Back to top
frank_goossens_424

Non Figura

Joined: 10 Oct 2003
Posts: 173

View user's profile Send private message
PostPosted: Tue Jan 20, 2004 10:22 am    Post subject: Reply with quote Report

alternative; use \'import\' (part of imagemagick) to make screenshots. as it\'s command-line based you can script/ cron it ..
Back to top
bgmilne

Non Figura

Joined: 06 Mar 2002
Posts: 3651

View user's profile Send private message
PostPosted: Tue Jan 20, 2004 3:06 pm    Post subject: Reply with quote Report

You can script most KDE apps via dcop, for example, this will cause ksnapshot to grab a new screenshot:



$ dcop ksnapshot-`pgrep -u $USER ksnapshot` interface slotGrab



To see apps exposed by dcop, run:



$ dcop



You will note some have a -$PID appended (probably those where you can have more than one instance), which is why you need the \'pgrep -u $USER $app\'.



Then, just keep adding the things returned by dcop to see what you can do.



For example, you could so something like this (in a shell-script file)





#!/bin/bash



#set time between grabs

dcop ksnapshot-`pgrep -u $USER ksnapshot` interface setTime 1



# loop from 0 to 9

for ((i=0;i<10;i=iAgree))

#grab a shot:

do dcop ksnapshot-`pgrep -u $USER ksnapshot` interface slotGrab

#save it to a numbered file:

dcop ksnapshot-`pgrep -u $USER ksnapshot` interface save \\

ksnapshot-dcop-$i.png

#end of loop

done



Stick that together with something like kdialog, and you can make it do whatever you want ....
Back to top
TheNinja

Non Figura

Joined: 23 Oct 2003
Posts: 62

View user's profile Send private message
PostPosted: Tue Jan 20, 2004 5:49 pm    Post subject: Reply with quote Report

Thanks for the replies people...I will try it out and let you know.



Cheers,

TheNinja
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Mandriva Forum Index -> General Software All times are GMT
Page 1 of 1

 
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


Powered by phpBB © 2001, 2005 phpBB Group