Jump to content

Screen Record App Problems


Recommended Posts

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 by demandnothing
Link to comment
Share on other sites

... 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 by herewasplato

[size="1"][font="Arial"].[u].[/u][/font][/size]

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...