aphesia Posted February 12, 2009 Share Posted February 12, 2009 (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 February 12, 2009 by aphesia Link to comment Share on other sites More sharing options...
spudw2k Posted February 12, 2009 Share Posted February 12, 2009 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") Spoiler Things I've Made: Always On Top Tool ◊ AU History ◊ Deck of Cards ◊ HideIt ◊ ICU ◊ Icon Freezer ◊ Ipod Ejector ◊ Junos Configuration Explorer ◊ Link Downloader ◊ MD5 Folder Enumerator ◊ PassGen ◊ Ping Tool ◊ Quick NIC ◊ Read OCR ◊ RemoteIT ◊ SchTasksGui ◊ SpyCam ◊ System Scan Report Tool ◊ System UpTime ◊ Transparency Machine ◊ VMWare ESX BuilderMisc Code Snippets: ADODB Example ◊ CheckHover ◊ Detect SafeMode ◊ DynEnumArray ◊ GetNetStatData ◊ HashArray ◊ IsBetweenDates ◊ Local Admins ◊ Make Choice ◊ Recursive File List ◊ Remove Sizebox Style ◊ Retrieve PNPDeviceID ◊ Retreive SysListView32 Contents ◊ Set IE Homepage ◊ Tickle Expired Password ◊ Transpose ArrayProjects: Drive Space Usage GUI ◊ LEDkIT ◊ Plasma_kIt ◊ Scan Engine Builder ◊ SpeeDBurner ◊ SubnetCalcCool Stuff: AutoItObject UDF ◊ Extract Icon From Proc ◊ GuiCtrlFontRotate ◊ Hex Edit Funcs ◊ Run binary ◊ Service_UDF Link to comment Share on other sites More sharing options...
martin Posted February 12, 2009 Share Posted February 12, 2009 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 = @scriptditif $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 thxWhat 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. Link to comment Share on other sites More sharing options...
aphesia Posted February 12, 2009 Author Share Posted February 12, 2009 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 Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now