Posted by gr.ind.can in SWF Studio V3 on Feb 15 2016, 06:37 am

Is there any way to auto allow the webcam security popup without user interaction, like we do for Print dialog?


Posted by northcode in SWF Studio V3 on Feb 15 2016, 02:03 pm

I don't think so. It's not a "real" Windows dialog, it's implemented inside Flash, so I don't think the onDialog event can catch it. You might be able to fake whatever keystrokes or mouse clicks are required to dismiss it but it will probably take a lot of "fiddling" to get it working right.


Posted by gr.ind.can in SWF Studio V3 on Feb 24 2016, 06:35 am

Thanks Tim. You are right, I had to do lot of fiddling to find the correct keystrokes:

ssCore.Keyboard.sendPress( { h8wnd:0, key:ssKey.VK_TAB } );
ssCore.Keyboard.sendRelease( { h8wnd:0, key:ssKey.VK_TAB } );
ssCore.Keyboard.sendPress( { hwnd:0, key:ssKey.VK_TAB } );
ssCore.Keyboard.sendRelease( { h8wnd:0, key:ssKey.VK_TAB } );
ssCore.Keyboard.sendPress( { hwnd:0, key:ssKey.VK_SPACE } );
ssCore.Keyboard.sendRelease( { h8wnd:0, key:ssKey.VK_SPACE } );
ssCore.Keyboard.sendPress( { hwnd:0, key:ssKey.VK_TAB } );
ssCore.Keyboard.sendRelease( { h8wnd:0, key:ssKey.VK_TAB } );
ssCore.Keyboard.sendPress( { hwnd:0, key:ssKey.VK_TAB } );
ssCore.Keyboard.sendRelease( { h8wnd:0, key:ssKey.VK_TAB } );
ssCore.Keyboard.sendPress( { hwnd:0, key:ssKey.VK_TAB } );
ssCore.Keyboard.sendRelease( { h8wnd:0, key:ssKey.VK_TAB } );
ssCore.Keyboard.sendPress( { hwnd:0, key:ssKey.VK_TAB } );
ssCore.Keyboard.sendRelease( { h8wnd:0, key:ssKey.VK_TAB } );
ssCore.Keyboard.sendPress( { hwnd:0, key:ssKey.VK_TAB } );
ssCore.Keyboard.sendRelease( { h8wnd:0, key:ssKey.VK_TAB } );
ssCore.Keyboard.sendPress( { hwnd:0, key:ssKey.VK_TAB } );
ssCore.Keyboard.sendRelease( { h8wnd:0, key:ssKey.VK_TAB } );
ssCore.Keyboard.sendPress( { hwnd:0, key:ssKey.VK_TAB } );
ssCore.Keyboard.sendRelease( { h8wnd:0, key:ssKey.VK_TAB } );
ssCore.Keyboard.sendPress( { hwnd:0, key:ssKey.VK_SPACE } );
ssCore.Keyboard.sendRelease( { h8wnd:0, key:ssKey.VK_SPACE } );


Posted by northcode in SWF Studio V3 on Feb 24 2016, 01:04 pm

Ugh. Painful. :evilgrin:

If the dialog "remembers" previous settings, make sure to test with different defaults or you might just disable the camera when you mean to enable it!