-
Question about Mono
Howdy all,
I'm about to endeavour on writing an anti-cheat program for an Invite Comp ladder in Australia for Counter-Strike: Source.
Basically, its going to be an Octinium clone, where the program takes screenshots at random intervals, and saves them to a file for viewing by admins (the players must upload their files at present, but we're also taking care of that with our program).
I'm wanting to write this in C#, as the Server/Client part of the program will also be in C#. I'm wondering, if I was to use API's to capture the screen, would Mono on Linux convert these and do something similar? Otherwise is there a fast way to capture the screen in pure C# that Mono will understand? Any suggestions would be great :D
chem
-
Re: Question about Mono
Not really, its a OS-specific operation.
Although if you are running on Linux using WINE it will probably work using the Windows API callss.
-
Re: Question about Mono
Could you be any quicker?! :p
Mmm, theres no .NET functions to capture the screen? I know thats probably a bit stupid to ask.
Got any idea how I could achieve it then? Even if its not in C#..
chem
-
Re: Question about Mono
BitBlt and GetDC(0).
Should work in WINE, hopefully.
-
Re: Question about Mono
Mmm, I'd better research it. I just don't want people who use Linux for the comp to have to download heaps of crap, whereas Windows users just have to install the .NET framework..
As always, a very useful resource penagate :p
chem