LIMITER Posted April 14, 2008 Share Posted April 14, 2008 (edited) Thx rysiora for his awesome script (hope you don't get mad at me )Original post (rysiora's version): http://www.autoitscript.com/forum/index.php?showtopic=27925 Just modified the script a little and made it an UDF ...Example code :#include <GUIConstants.au3> #include <Webcam.au3> $gui = GUICreate("Webcam UDF Test",640,480) _WebcamInit() _Webcam($gui,640,480,0,0) GUISetState(@SW_SHOW) Sleep(2000) ConsoleWrite("Taking snapshot ..." & @CRLF) _WebcamSnapShot() ConsoleWrite("Snapshot taken !" & @CRLF) While 1 $msg = GUIGetMsg() If $msg = $GUI_EVENT_CLOSE Then _WebcamStop() Exit EndIf Sleep(1) WEndWebcam UDFWebcam.au3 Edited May 10, 2008 by LIMITER Link to comment Share on other sites More sharing options...
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!Register a new account
Already have an account? Sign in here.Sign In Now