Hallo Leute,
brauche nochmal eure Hilfe.
Ich möchte auf meine webcam zugreifen (Integrierte laptopkamera) doch es kommt nur ein schwarzes bild. Wenn ich das über meinen TowerPC mache (Externe Webcam) funktioniert alles einwandfrei. HILFE!
AutoIt: Mein Code
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#include <Webcam.au3>
#include <misc.au3>
#RequireAdmin
#Region ### START Koda GUI section ### Form=
$BK = GUICreate("BK",@DesktopWidth,@DesktopHeight,0,0,$WS_POPUP)
GUISetBkColor(0x0)
WinSetTrans($BK,"",190)
WinSetOnTop($BK,"",1)
GUISetState(@SW_SHOW)
_WebcamInit()
$Form = GUICreate("Block.Block", 300, 250, -1, -1, $WS_POPUP,-1,$BK)
GUISetBkColor(0x8080FF)
$Input = GUICtrlCreateInput("", 0, 200, 300, 50,$ES_PASSWORD)
GUICtrlSetFont(-1, 30,300)
WinSetOnTop($Form,"",1)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
_Webcam($Form,300,200,0,0)
While 1
If _IsPressed("0D") Then
If GUICtrlRead($Input) == $Passwort Then
$Block = 1
GUIDelete($Form)
_WebcamStop()
Return
Else
_WebcamSnapShot()
EndIf
Sleep(200)
EndIf
WEnd
Alles anzeigen