demandnothing Posted October 14, 2009 Share Posted October 14, 2009 (edited) i want to write a script that takes a screen shot and saves it over and over.. so long as its active.. i was figuring something like: while 1 _ScreenCapture_Capture("Pic.jpg", -1, -1, -1, -1, False) _ScreenCaputre_SaveImage(@ScriptDir, ".jpg", True) Sleep(100) WEnd i know this is wrong, and i've looked at a few examples, but i cant exactly get the gist of the process in writing this out. of course when i want it to save the image i need to do a sort of $x = 1, then $x = $x + 1, for the file name, but i dont know where to put that in.. does anybody have experience with this sort of thing?? im wanting to do this so i can make ingame movies that wont lag me down to 1 frame per 10 seconds.. seriously thats what fraps does to me. Edited October 14, 2009 by demandnothing Link to comment Share on other sites More sharing options...
herewasplato Posted October 14, 2009 Share Posted October 14, 2009 (edited) ... of course when i want it to save the image i need to do a sort of $x = 1, then $x = $x + 1, for the file name, but i dont know where to put that in..I would suggest not using $x = $x + 1 within an infinite loop for this project. I would pick a limit to how much hard drive space you want to allow the script to fill up. #include <ScreenCapture.au3> $limit = 2000000 For $i = 0 To $limit _ScreenCapture_Capture("Pic" & $i & ".jpg", -1, -1, -1, -1, False) _ScreenCapture_SaveImage(@ScriptDir, ".jpg", True) TrayTip('', $i & " of " & $limit, 10) Sleep(100) Next edit: you might want to use the beta version 3.3.1.2 since it fixed this issue... - Fixed #1040: _ScreenCapture_Capture() leak memory. (Thanks rover) Edited October 15, 2009 by herewasplato [size="1"][font="Arial"].[u].[/u][/font][/size] Link to comment Share on other sites More sharing options...
demandnothing Posted October 15, 2009 Author Share Posted October 15, 2009 i already have the beta.. thank you.. i'll try that out 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