Linked Questions

Popular Questions

Autoit script _ScreenCapture_Capture win Nt

Asked by At

I create a function that should wait for specific actual time (every accurate hour) then save screenshot in a folder. It work fine in Windows XP and newer versions, but my working OS is "Win NT SP6".

My Function:

Func Print()
    $count = 1
    $delayloop = 1

    DirCreate("C:\Print")

    While $delayloop = 1
        $PrintMin = 00 ; The minute of PrintScreen
        For $count = 1 To 24
            $loop = 1
            While $loop = 1
                sleep(1000)
                If $PrintMin = @MIN Then
                    Sleep(1000)
                    _ScreenCapture_Capture("C:\Print\Picture " & @HOUR & ".jpg")
                    $loop = 0
                EndIf
            WEnd
            Sleep(60000)
        Next
        sleep(500)
    WEnd
EndFunc

I know that _ScreenCapture_Capture function Requires GDI+ that is not in Win NT.

I found gdiplus.dll and copy it to c:\winnt\system32 folder in Win NT (that is my program execute folder), but when my script reaches the line _ScreenCapture_Capture it suddenly terminates.

Please help me with this problem.

Related Questions