How to get around driver dialogue box?

G

Guest

I've have a video capture drive installed on a computer which I can access
from VB... so far, so good.

One of the properties of the capture driver is the IP address it uses to
reach out over the network and watch a video stream. Again, good.

I need the VB program to programatically change the IP address the capture
driver is using. But so far, the only way I can see to change that value is
to use the AVICap callback function WM_CAP_SET_CALLBACK_STATUS. This opens a
dialogue box associated with that particular capture drive, and one of the
fields in the box allows the user to enter an IP address to be viewed (and
thereby capture an image from).

But what we need is to push an IP address to the driver instead. I don't
know if this can be done, requires particular info regarding the driver from
the author, can be worked-around, or is some other clever solution which
eludes me...

Anyone out there know how to do this?

For what it's worth, this particular capture driver is the one included as
part of VBrick's StreamPlayer Plus software.

Thanks

Pat
 
G

Guest

Hi Pat,

Since I do not the exact device you are using, I am giving a possible work
around

1. Do the stuff you are doing to get the device driver window
2. Use the FindWindow API to get the handle to the window
3. Loop thru the windows inside this to get to the IP textbox
4. Use the Settext to set the right IP.
5. Close the window saving the setting.

This should do the needful and most probably is fast enough that the user
just sees a flicker.
 
G

Guest

Anand,

Thank you for the great suggestion. Since no user will be watching the
program, any flicker is beside the point (in other words, no problem). I'll
give it a try and see how it turns out.

Thanks again!

Pat
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top