|
-
Nov 14th, 2006, 07:58 AM
#1
Thread Starter
G&G Moderator
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 
chem
Visual Studio 6, Visual Studio.NET 2005, MASM
-
Nov 14th, 2006, 08:00 AM
#2
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.
-
Nov 14th, 2006, 08:02 AM
#3
Thread Starter
G&G Moderator
Re: Question about Mono
Could you be any quicker?! 
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
Visual Studio 6, Visual Studio.NET 2005, MASM
-
Nov 14th, 2006, 08:05 AM
#4
Re: Question about Mono
BitBlt and GetDC(0).
Should work in WINE, hopefully.
-
Nov 14th, 2006, 08:09 AM
#5
Thread Starter
G&G Moderator
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 
chem
Visual Studio 6, Visual Studio.NET 2005, MASM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|