Hi.
I do this because I could not find a Linux software that does it.
My "weak" solution is by continuously taking screen-shots, and saving them on the mobile's memory disk. The following Python code illustrates more:
Then I used obexftp to download E:\\screenshot.jpg to my desktop in an infinite loop using shell/bash.Code:import appuifw, e32 import graphics import appswitch global running running = 1 def quit(): appuifw.note(u"Exit key pressed!") running = 0 app_lock.signal() def capture(): #we will capture a screen shot every 1 second. #We will let obexftp dowenload the screenshot from the mobile in a shell script as "screenshot.jpg" #Geeqie is already set to re-read and re-display "screenshot.jpg" on change. appswitch.switch_to_bg(u"Python") e32.ao_sleep(1) while running==1 : try: print "taking a picture\n" #Take the screenshot 1 img1 = graphics.screenshot() #Save it to the specified path E:\\screenshot.jpg (on the memory card) img1.save(u"E:\\screenshot.jpg") e32.ao_sleep(0.5) print "picture taken\n" except Exception: print "exception handled" appuifw.app.menu=[(u"start screen capture",capture)] appuifw.app.exit_key_handler = quit app_lock = e32.Ao_lock() app_lock.wait()
The following shell code explains:
There is an image viewer called Geeqie. This viewer can re-display and re-read an image if any change happens to its contents.Code:cd /tmp #on debian linux /tmp is a mount point of a RAM disk. This is where E:\\screenshot.jpg is going to be saved on the desktop. while true; do obexftp -u 1 -c 'E:' -g screenshot.jpg ; # I am using usb cable to download. Do read obexftp manual: man obexftp. sleep 0.1; done;
And this what I am doing with the downloaded file. Using the /tmp mount point of a RAM disk can speed up the reading and display of E:\\screenshot.jpg
and saves my hard disk.
What I noticed is that this idea works. However, it's very slow and primitive, because I am saving the screen-shot on the phone before downloading it.
So my question is how can I skip this step by directly sending the screen-shot to the desktop? How can I, at least, save the screen-shot on the phone's RAM?
The aim of all of this is to make tutorial videos in Arabic about pyS60 by recording a video of my desktop and my phone at the same time.
Here is an example video:
http://www.4shared.com/file/23497827...art1-conv.html
Thanks.

Reply With Quote

