Best4FREE Posted February 27, 2008 Share Posted February 27, 2008 (edited) #include <ScreenCapture.au3> $farbe = 0x000000 $capture = _ScreenCapture_Capture("", 347, 457, 547, 517 ) $number = 0 $number = +1 While 1 If FileExists(@DesktopDir & "\Screenshots") = 0 Then DirCreate(@DesktopDir & "\Screenshots") If $farbe = PixelGetColor ( 741, 636 ) Then _ScreenCapture_Capture("image.jpg", 347, 457, 547, 517) Then _ScreenCapture_SaveImage(@DesktopDir & "\Screenshots\Screenshot " & $number & ".jpg" ,$capture) $number = $number + 1 EndIf If Not ProcessExists ( "programm " ) Then ExitLoop WEnd why this scritpt dont works? it does create dir if not exist and i pixel get color then Screencapture and rename the image must renmae $number alltimes +1 why not working? all this Edited February 29, 2008 by Best4FREE Link to comment Share on other sites More sharing options...
Aassdd Posted February 27, 2008 Share Posted February 27, 2008 Here is a script I made for personal use, it has something more from what you ask but it'll help you understand how to do it. MsgBox(64, "Screenshot Mode", "Screenshot mode is activated." & @CRLF & "Press F10 to deactivate screenshot mode." & @CRLF & "Press F12 to capture a screenshot.") Local $number = 1 While 1 If FileExists(@DesktopDir & "\Screenshots") = 0 Then DirCreate(@DesktopDir & "\Screenshots") If _IsPressed("7B") Then Local $capture = _ScreenCapture_Capture("", 0, 0, -1, -1, False) Local $save = _ScreenCapture_SaveImage(@DesktopDir & "\Screenshots\Screenshot " & $number & ".png", $capture) $number = $number + 1 Beep(500, 100) EndIf If _IsPressed("79") Then ExitLoop WEnd Link to comment Share on other sites More sharing options...
Best4FREE Posted February 29, 2008 Author Share Posted February 29, 2008 what is This If _IsPressed("7B") and this If _IsPressed("79") please tell it Link to comment Share on other sites More sharing options...
d4rk Posted February 29, 2008 Share Posted February 29, 2008 what is This If _IsPressed("7B") and this If _IsPressed("79") please tell it7B and 79 is the HexKey, put the _IsPressed( in AutoIT and it show you the method ... [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 Link to comment Share on other sites More sharing options...
Aassdd Posted February 29, 2008 Share Posted February 29, 2008 _IsPressed: Check if key has been pressedhttp://msdn2.microsoft.com/en-us/library/ms645540.aspx 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