Results 1 to 5 of 5

Thread: Question about Mono

  1. #1

    Thread Starter
    G&G Moderator chemicalNova's Avatar
    Join Date
    Jun 2002
    Location
    Victoria, Australia
    Posts
    4,246

    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

  2. #2
    I'm about to be a PowerPoster!
    Join Date
    Jan 2005
    Location
    Everywhere
    Posts
    13,647

    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.

  3. #3

    Thread Starter
    G&G Moderator chemicalNova's Avatar
    Join Date
    Jun 2002
    Location
    Victoria, Australia
    Posts
    4,246

    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

  4. #4
    I'm about to be a PowerPoster!
    Join Date
    Jan 2005
    Location
    Everywhere
    Posts
    13,647

    Re: Question about Mono

    BitBlt and GetDC(0).

    Should work in WINE, hopefully.

  5. #5

    Thread Starter
    G&G Moderator chemicalNova's Avatar
    Join Date
    Jun 2002
    Location
    Victoria, Australia
    Posts
    4,246

    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
  •  



Click Here to Expand Forum to Full Width