rscl_mumbai 0 Newbie Poster

Hi,

I am experimenting with an AutoIT script to periodically save images from 2 Webcams.

When running the script, I get a windows pop-Up asking me to select the "Video Source".

Is there any way to eliminate this pop-up?

Background:

(1) I am using 2 webcams from 2 different manufacturers.

(2) dllCall($user, "int", "SendMessage", "hWnd", $cap1[0], "int", $WM_CAP_DRIVER_CONNECT, "int", X, "int", 0)

In the above line, I tried changing the value of "X" from 0 to 1, 2, 3, 4 etc.
But for all non-Zero values, I got a Blank BLACK image.
And for X=0, I get a popup Video Source selection screen.

This makes me think that both Webcams are Device # 0.
As I understand, the script finds 2 devices attached to # 0 and hence gives a pop-up asking me to select one of them.

Is there any way I can manually change one of the webcam to # 1 in the Windows OS (may be in registry or elsewhere) ?

OR any other way to prevent the pop-up Video Source Selection?

Any help here....

Thank you.

regards,
Vai

PS: I have tried with 2 Webcams from the same company and 2 webcams from different companies.