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