| View previous topic :: View next topic |
| Author |
Message |
doggy4s
Joined: 22 Jan 2007 Posts: 16
|
Posted: Wed Sep 24, 2008 4:59 pm Post subject: Getting status of camera |
|
|
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 |
|
| Back to top |
|
 |
observer Guest
|
Posted: Wed Sep 24, 2008 9:37 pm Post subject: Re: Getting status of camera |
|
|
| 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>
|
|
|
| Back to top |
|
 |
observer Guest
|
Posted: Thu Sep 25, 2008 1:31 am Post subject: Re: Getting status of camera |
|
|
[quote="observer"] | 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. |
|
| Back to top |
|
 |
doggy4s
Joined: 22 Jan 2007 Posts: 16
|
Posted: Thu Sep 25, 2008 6:40 am Post subject: |
|
|
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  |
|
| Back to top |
|
 |
|