AutoHotkey Community

It is currently May 26th, 2012, 9:34 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: Getting status of camera
PostPosted: September 24th, 2008, 5:59 pm 
Offline

Joined: January 22nd, 2007, 6:19 pm
Posts: 16
Hi

To trigger (remotely) a videocap software ( with ahk script) I am in need of being able to get the status of a videocamera

I have been going through the source of DVapp and SDK docs (IAMExtDevice) .
What seems to be very simple and logical but my C++ language skills are so limited and just cant figure out how to take appart the source for just getting the status (is recording) of the device . Finding the function in the dll of the software in question might be more of a hasstle than usng a little external check)

If anyone is familiar with this I surely would appreciate a little example to go from . (be it C++, or vbs or.. ) I just want to get some sort of functional status indication.

Thanks


Report this post
Top
 Profile  
Reply with quote  
PostPosted: September 24th, 2008, 10:37 pm 
doggy4s wrote:
Hi
To trigger (remotely) a videocap software ( with ahk script) I am in need of being able to get the status of a videocamera ...
If anyone is familiar with this I surely would appreciate a little example to go from . (be it C++, or vbs or.. ) I just want to get some sort of functional status indication.
Thanks


Hmmm, if the cam is a USB camera, and the sort of functional status indication that you require is something simple like, "Is this USB cam Connected, or not?" then, you might try something like Usbdview http://www.autohotkey.com/forum/topic15127.html ... I like Usbdview because it can tell you if that cam is connected or not, and it has nice & easy to parse output options (CSV, XML), For example:

Code:
  <item>
    <device_name>WebCam Instant</device_name>
    <description>Creative WebCam Instant #5</description>
    <device_type>Vendor Specific</device_type>
    <connected>Yes</connected>
    <safe_to_unplug>Yes</safe_to_unplug>
    <disabled>No</disabled>
    <drive_letter></drive_letter>
    <serial_number></serial_number>
    <created_date>7/4/2008 2:05:24 PM</created_date>
    <last_plug_unplug_date>9/22/2008 5:21:46
    PM</last_plug_unplug_date>
    <vendorid>041e</vendorid>
    <productid>4034</productid>
    <usb_class>ff</usb_class>
    <usb_subclass>ff</usb_subclass>
    <usb_protocol>ff</usb_protocol>
    <hub___port>Hub 2, Port 2</hub___port>
    <computer_name></computer_name>
  </item>


Report this post
Top
  
Reply with quote  
PostPosted: September 25th, 2008, 2:31 am 
observer wrote:
doggy4s wrote:
Hi
To trigger (remotely) a videocap software ( with ahk script) I am in need of being able to get the status of a videocamera ...
If anyone is familiar with this I surely would appreciate a little example to go from . (be it C++, or vbs or.. ) I just want to get some sort of functional status indication.
Thanks


Also, if you want more status and control, you might check out http://www.rapidq.phatcode.net/include/WebCam.inc ... you would need to track down Webcam.dll of course, and then create the needed DllCall wrappers for AHK.


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: September 25th, 2008, 7:40 am 
Offline

Joined: January 22nd, 2007, 6:19 pm
Posts: 16
Actually its for a dv camera

did find a dll in to software ackage that reads the status of the camera connected ( liek if it is recording , rewinding etc ) but its not a actual function ( as I can figure out ) . I found the change with auto debug pro (demo) within the DLL but have no clue how I could acces the change :-(


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: Exabot [Bot], iBob35555VR, krajan, tomoe_uehara and 66 guests


You can post new topics in this forum
You can 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:
Powered by phpBB® Forum Software © phpBB Group