How to take a picture with a webcam?

How do I make my computer take a picture using my webcam whenever someone logs in?

  • Answer:

    Take a webcam photo on login using Windows 7 http://superuser.com/questions/311569/take-a-webcam-photo-on-login-using-windows-7 The AutoIt program you need can be found here: http://autoitscript.com/forum/files/file/100-welcome-to-autoit-1-2-3/ You will need to get the Webcam.au3 include file from here: http://www.autoitscript.com/forum/topic/68866-webcam-udf/page__p__505896#entry505896 Put it in the same directory as the script or into the autoit include folder. Note the necessary changes in the script. This code will take the snapshot, just run it on startup (just use a shortcut unless you change the save path and use the include folder for the include file). Note that this will flash any LED on the camera on for a half second while it takes the snapshot, there isn't a way around that: #include <GUIConstants.au3> #include <WindowsConstants.au3> #include <Webcam.au3> $gui = GUICreate("Webcam UDF Test",640,480) _WebcamInit() _Webcam($gui,640,480,0,0) GUISetState(@SW_HIDE) Sleep(100) ConsoleWrite("Taking snapshot ..." & @CRLF) _WebcamSnapShot() ConsoleWrite("Snapshot taken !" & @CRLF) While 1 $msg = GUIGetMsg() If $msg = $GUI_EVENT_CLOSE Then _WebcamStop() Exit EndIf Sleep(10) _WebcamStop() Exit WEnd

Pie at Yahoo! Answers Visit the source

Was this solution helpful to you?

Other answers

Take a webcam photo on login using Windows 7 http://superuser.com/questions/311569/take-a-webcam-photo-on-login-using-windows-7 The AutoIt program you need can be found here: http://autoitscript.com/forum/files/file/100-welcome-to-autoit-1-2-3/ You will need to get the Webcam.au3 include file from here: http://www.autoitscript.com/forum/topic/68866-webcam-udf/page__p__505896#entry505896 Put it in the same directory as the script or into the autoit include folder. Note the necessary changes in the script. This code will take the snapshot, just run it on startup (just use a shortcut unless you change the save path and use the include folder for the include file). Note that this will flash any LED on the camera on for a half second while it takes the snapshot, there isn't a way around that: #include <GUIConstants.au3> #include <WindowsConstants.au3> #include <Webcam.au3> $gui = GUICreate("Webcam UDF Test",640,480) _WebcamInit() _Webcam($gui,640,480,0,0) GUISetState(@SW_HIDE) Sleep(100) ConsoleWrite("Taking snapshot ..." & @CRLF) _WebcamSnapShot() ConsoleWrite("Snapshot taken !" & @CRLF) While 1 $msg = GUIGetMsg() If $msg = $GUI_EVENT_CLOSE Then _WebcamStop() Exit EndIf Sleep(10) _WebcamStop() Exit WEnd

Simply RED

Some webcams have motion detection capabilities which would work for your purposes. Logitech have cameras with this capability and the software to carry it out.

Heather

Related Q & A:

Just Added Q & A:

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.