Sign in to follow this  
Followers 0
d4rk

Screen Capture

5 posts in this topic

2 every1, i have this code to capture the whole screen and then save it with the name as the shooting screen time, but i can't see any saved picture, some body can tell me why ? thx for help

#include <Misc.au3>
#include <ScreenCapture.au3>

opt("WinTitleMatchMode",2)
if WinWaitActive(" - Instant Message") then
$time=@Hour & " [Hrs] " & @MIN & " [Mins] " & @SEC & " [Secs] " & "[" & @MDAY & "/" & @MON & "/" & @YEAR &"]"
Local $capture = _ScreenCapture_Capture("")
Local $save = _ScreenCapture_SaveImage(@ScriptDir & "\Screenshots\" & $time & ".jpg", $capture)
EndIf

[quote]Don't expect for a perfect life ... Expect a least troubles ones[/quote]Contact me : ass@kiss.toWhat I Have Done :Favorites Manager Mangage your favorite's folder, that's coolPC Waker For those who want to save stickersWebScipts Supporter For those who've just started with Web and WebScriptsTemporary Looker Simple but powerful to manage your Temporary folder, you know what you downloaded[UDF] _NumberFormat() Better performance on number display[UDF] _DirGet() What a folder contain [how many (hidden,normal,...) files], with one line of code[UDF] _IsPressEs() Just like _IsPress() but for a group of keys

Share this post


Link to post
Share on other sites



#include <Misc.au3>
#include <ScreenCapture.au3>

opt("WinTitleMatchMode",2)
if WinWaitActive(" - Instant Message") then
$time=@Hour & " [Hrs] " & @MIN & " [Mins] " & @SEC & " [Secs] " & "[" & @MDAY & "/" & @MON & "/" & @YEAR &"]"
_ScreenCapture_Capture(@ScriptDir & "\Screenshots\" & $time & ".jpg")
EndIf

Share this post


Link to post
Share on other sites

thanks for help but it those code still can't make the script works ...


[quote]Don't expect for a perfect life ... Expect a least troubles ones[/quote]Contact me : ass@kiss.toWhat I Have Done :Favorites Manager Mangage your favorite's folder, that's coolPC Waker For those who want to save stickersWebScipts Supporter For those who've just started with Web and WebScriptsTemporary Looker Simple but powerful to manage your Temporary folder, you know what you downloaded[UDF] _NumberFormat() Better performance on number display[UDF] _DirGet() What a folder contain [how many (hidden,normal,...) files], with one line of code[UDF] _IsPressEs() Just like _IsPress() but for a group of keys

Share this post


Link to post
Share on other sites

You can't use "/"  inside filename.

thanks, got it

[quote]Don't expect for a perfect life ... Expect a least troubles ones[/quote]Contact me : ass@kiss.toWhat I Have Done :Favorites Manager Mangage your favorite's folder, that's coolPC Waker For those who want to save stickersWebScipts Supporter For those who've just started with Web and WebScriptsTemporary Looker Simple but powerful to manage your Temporary folder, you know what you downloaded[UDF] _NumberFormat() Better performance on number display[UDF] _DirGet() What a folder contain [how many (hidden,normal,...) files], with one line of code[UDF] _IsPressEs() Just like _IsPress() but for a group of keys

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