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) WEnd
Webcam UDF
Webcam.au3 6.68K
4487 downloads
Edited by LIMITER, 10 May 2008 - 04:17 PM.









