Jump to content

Upload screenshots to server

Recommended Posts

Try this, not written by me

HotKeySet("{F9}", "OnScreenShot")
HotKeySet("{ESC}", "Terminate")

While 1

Func OnScreenShot()
    If Not FileExists (@scriptdir & "\screenshots") Then DirCreate (@scriptdir & "\screenshots") 
    If Not FileExists(@scriptdir & "\captdll.dll") Then FileInstall( "captdll.dll", @scriptdir & "" ,1)
    Local $Cwin1 = WinGetHandle(""); gets the handle of the active window
    Local $Cwin2 = WinGetPos($Cwin1); gets active window dimensions
    Local $Quality = 85; use -1 to save as BMP or use number between 0 - 100 to save as JPG quality
    If $Quality = -1 Then
        Local $SaveAs = ".bmp"
        Local $SaveAs = ".jpg"
    Local $CaptureDirectory = @ScriptDir & "\Screenshots\"; directory uses to store screen caps
    Local $CaptureFile = @YEAR & "-" & @MON & "-" & @MDAY & "_" & @HOUR & @MIN & "-" & @SEC & $SaveAs
    DllCall(@scriptdir & "\captdll.dll", "int", "CaptureRegion", "str", $CaptureDirectory & $CaptureFile, "int", $Cwin2[0], "int", $Cwin2[1], "int", $Cwin2[2], "int", $Cwin2[3], "int", $Quality)
    If @error Then MsgBox(262160,"ERROR","The screen was not captured",4)

Func Terminate()

You will need captdll.dll which can be downloaded http://www.autoitscript.com/fileman/users/Lazycat/dlls.html

Time you enjoyed wasting is not wasted time ......T.S. Elliot
Suspense is worse than disappointment................Robert Burns
God help the man who won't help himself, because no-one else will...........My Grandmother

Link to post
Share on other sites


Okey what i want.

i want to make a program for anticheat into my game server

if you want to play into my server you ned to download the program and run it.

It will take screenshots then your playing into my server so i can see if someone cheats.

Thats the plan.

Now does someone help me whit the program

it must take every minute a screenshot and upload it.

it must look if a file is runned and if not the program closes

it must look if the game is connected to a server ip if not it will be closed.

I little problem, hard to find and fix

Link to post
Share on other sites

To do a screenshot EVERY minute will severly impact on your game. While the idea might sound good, personally, I wouldn't play on servers that required my computer to "freeze" for a few moments every minute because it would destroy the feeling of the game.

Link to post
Share on other sites


it's only for my game server

the problem is that the server punkbuster does no work good

Call of Duty2 had a other anti cheat then punkbuster but when they made a new patch the have punkbuster on it but it does not work good.

so you need that program so i can see if someone cheats

I little problem, hard to find and fix

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
  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...