Sign in to follow this  
Followers 0
Erik.

Upload screenshots to server

10 posts in this topic

Hi,

i have a little question.

How can i make screenshots whit auto it and let it upload to a server so i can see them?

it must me automaticly


I little problem, hard to find and fix

Share this post


Link to post
Share on other sites



Try this, not written by me

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

While 1
    Sleep(20)
WEnd


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"
    Else
        Local $SaveAs = ".jpg"
    EndIf   
    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)
EndFunc


Func Terminate()
    Exit
EndFunc

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



Get Beta versions Here Get latest SciTE editor Here AutoIt 1-2-3 by Valuater - A great starting point.

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

Share this post


Link to post
Share on other sites

Hi,

this script does not upload to a site.

How to do that?


I little problem, hard to find and fix

Share this post


Link to post
Share on other sites

I have a ftp server yes.

i will try to


I little problem, hard to find and fix

Share this post


Link to post
Share on other sites

ummm, Let me get this strait...

You want to take screenshots from a PC automatically, and upload them to a website via FTP....

Would you care to let us in on what you plan to do with the screenshots? Not to be a ninny, but that is somewhat odd.

Share this post


Link to post
Share on other sites

Hi,

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

Share this post


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.

Share this post


Link to post
Share on other sites

Hi,

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

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