Jump to content

WHy this not working ? please help


 Share

Recommended Posts

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

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

what is This If _IsPressed("7B") and this If _IsPressed("79") please tell it

7B 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

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