PDA

Click to See Complete Forum and Search --> : Question about Mono


chemicalNova
Nov 14th, 2006, 06:58 AM
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

penagate
Nov 14th, 2006, 07:00 AM
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.

chemicalNova
Nov 14th, 2006, 07:02 AM
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

penagate
Nov 14th, 2006, 07:05 AM
BitBlt and GetDC(0).

Should work in WINE, hopefully.

chemicalNova
Nov 14th, 2006, 07:09 AM
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