Sign in to follow this  
Followers 0
aphesia

webcam screen without gui

4 posts in this topic

#1 ·  Posted (edited)

Hi guys,

i searched threw the whole board but couldn´t find anything that helps me as i can´t reedit the other scripts to make screenshots with the webcam without creating a gui.

I just want smth like

$name = smth thats makes screen0001.jpg .. and the next screen (maybe days later or hours later) will be screen0002.jpg

$File = @scriptdit

if $input <> $key then

_screenshot($File,$name)

i can´t rly get it work.. and also tried it with looks at other scripts :)

main problem is the screenshot take without any gui. Guess i can handle the name thingy on my own :)

thx

Edited by aphesia

Share this post


Link to post
Share on other sites



This works using the Webcam UDF from This post. It still requires creation of a GUI, but it doesn't have to display.

$gui = GUICreate("")
$webcam = _WebcamOpen($gui, 0, 0, 320, 240)
_WebcamSnap($webcam,@ScriptDir & "\01.jpg")

Share this post


Link to post
Share on other sites

Hi guys,

i searched threw the whole board but couldn´t find anything that helps me as i can´t reedit the other scripts to make screenshots with the webcam without creating a gui.

I just want smth like

$name = smth thats makes screen0001.jpg .. and the next screen (maybe days later or hours later) will be screen0002.jpg

$File = @scriptdit

if $input <> $key then

_screenshot($File,$name)

i can´t rly get it work.. and also tried it with looks at other scripts :)

main problem is the screenshot take without any gui. Guess i can handle the name thingy on my own :)

thx

What is the problem with creating a gui? If you don't want it to be on the screen just don't show it, that is don't have the line GuiSetState(), or have a hotkey to make it hidden or shown, or you could have it positioned off screen.


Serial port communications UDF Includes functions for binary transmission and reception.printing UDF Useful for graphs, forms, labels, reports etc.Add User Call Tips to SciTE for functions in UDFs not included with AutoIt and for your own scripts.Functions with parameters in OnEvent mode and for Hot Keys One function replaces GuiSetOnEvent, GuiCtrlSetOnEvent and HotKeySet.UDF IsConnected2 for notification of status of connected state of many urls or IPs, without slowing the script.

Share this post


Link to post
Share on other sites

ahh perfect thanks :)

only prob is that the picture is pretty dark.. that wasn´t on other scripts .. maybe i just need to put in a sleep() to give the cam a bit to initlialize or smth ^_^

will try it tomorrow :)

Share this post


Link to post
Share on other sites

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

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0