SciLor's Open Source Forums

Also visit my Website!
It is currently Sun Mar 26, 2017 8:48 pm

All times are UTC + 1 hour [ DST ]




Post new topic Reply to topic  [ 5 posts ] 
Author Message
PostPosted: Thu Jul 29, 2010 8:18 pm 
This program looks a useful additon to a Lea camera.
You web site says open source code.
Is it possible to download the source and take a look at how you made the program ?
Best Regards
Alan


Top
  
 
 
Online
The Adswinger

Joined: Wed Jan 13, 2010 11:56 pm
Posts: Too many!
Donated: Ad Posts


PostPosted: Thu Jul 29, 2010 9:39 pm 
Offline
The Developer

Joined: Wed Jan 13, 2010 11:56 pm
Posts: 1467
Donated: free software
Not all of my software is open source (Sometimes cause of lack of time, sometimes due to the hard work I put it). If you are interested in anything special in coding, just ask me. In general it just catches the buttons and presses the capture button on the screen.

_________________
My Windows Mobile and Windows Open Source Website:
www.scilor.com

Like my work? Donate!
Donation Website

My Programs:
grooveshark™.com Downloader, GrooveMobile, Fuel Blaster, Chameleon TicTacToe, QuickTap, WiMoBlue, Driving Licence Trainer, CodeSnippetViewer, Gesture Launcher, Fahrplanauskunft, GSensor Control


Top
 Profile  
 
PostPosted: Mon Aug 02, 2010 8:59 pm 
Dear SciLor,
Is there any chance you could send me the code to the LeoCameraAnyKey? I'm really interested in making a time lapse camera program for the HD2 and would love a head start... I will be more than happy to share any code I produce on the project with you. It's just for personal use -- tried I think every camera time lapse program for the HD2 and no dice -- the best one, CamTimer uses key code \0D but on the HD2, as Im sure you know, is nothing :)
Thanks in advance,
ted


Top
  
 
PostPosted: Mon Aug 02, 2010 9:15 pm 
Offline
The Developer

Joined: Wed Jan 13, 2010 11:56 pm
Posts: 1467
Donated: free software
I just make a virtual mouseclick onto the shutter button (With vb.net):

First of all you will need following apis:
Code:
Private Declare Sub mouse_event Lib "coredll.dll" (ByVal dwFlags As Long, ByVal dx As Long, ByVal dy As Long, ByVal cButtons As Long, ByVal dwExtraInfo As Long)
Private Declare Function SetCursorPos Lib "coredll.dll" (ByVal X As Integer, ByVal Y As Integer) As Boolean
    Private Const MOUSEEVENTF_ABSOLUTE = &H8000
    Private Const MOUSEEVENTF_LEFTDOWN = &H2
    Private Const MOUSEEVENTF_LEFTUP = &H4
    Private Const MOUSEEVENTF_MIDDLEDOWN = &H20
    Private Const MOUSEEVENTF_MIDDLEUP = &H40
    Private Const MOUSEEVENTF_MOVE = &H1
    Private Const MOUSEEVENTF_RIGHTDOWN = &H8
    Private Const MOUSEEVENTF_RIGHTUP = &H10


Then just set the Cursor position on the shutter button by (This coordinates are for the WVGA Devices only!):
Code:
Call SetCursorPos(240,780)

Then trigger a mouse down event:
Code:
                mouse_event(MOUSEEVENTF_LEFTDOWN, 0, 0, 0, 0)
                Threading.Thread.Sleep(100)
                mouse_event(MOUSEEVENTF_LEFTUP, 0, 0, 0, 0)

_________________
My Windows Mobile and Windows Open Source Website:
www.scilor.com

Like my work? Donate!
Donation Website

My Programs:
grooveshark™.com Downloader, GrooveMobile, Fuel Blaster, Chameleon TicTacToe, QuickTap, WiMoBlue, Driving Licence Trainer, CodeSnippetViewer, Gesture Launcher, Fahrplanauskunft, GSensor Control


Top
 Profile  
 
PostPosted: Mon Aug 02, 2010 10:06 pm 
You're a lifesaver... Thanks a million!


Top
  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


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 post attachments in this forum

Search for:
Jump to:  
cron
template->_php_include(): File ./counter/foruminclude.php does not exist or is empty Powered by phpBB® Forum Software © phpBB Group