Looking for macro recorder/screen capture code

This is a discussion on Looking for macro recorder/screen capture code within the Linux Programming forums, part of the Platform Specific Boards category; I'm making a custom gaming ai for preexisting games and need to have it run in the background, be able ...

  1. #1
    Registered User
    Join Date
    Nov 2009
    Posts
    6

    Looking for macro recorder/screen capture code

    I'm making a custom gaming ai for preexisting games and need to have it run in the background, be able to put screen-captures into variables/arrays/etc., and control the mouse and keyboard on my Ubuntu Linux. I've searched extensively but can't find anything on how to do this. I'm not sure how complicated what I'm asking for is, so if functions or code snippets are unavailable I'll take a link to somewhere that will show me how to write it.

  2. #2
    spurious conceit MK27's Avatar
    Join Date
    Jul 2008
    Location
    segmentation fault
    Posts
    8,300
    Xlib will give you access to the mouse, and there is probably a way to do a screen capture too (but I doubt a single function, it is all low level stuff). Anything graphical has to use the Xlib API on one level or another, so it is already part of your project, or used by the libraries you are using.

    I've used this before:
    http://tronche.com/gui/x/xlib/
    C programming resources:
    GNU C Function and Macro Index -- glibc reference manual
    The C Book -- nice online learner guide
    Current ISO draft standard
    CCAN -- new CPAN like open source library repository
    3 (different) GNU debugger tutorials: #1 -- #2 -- #3
    cpwiki -- our wiki on sourceforge

  3. #3
    Registered User
    Join Date
    Nov 2009
    Posts
    6
    That's what I was looking for. Thx.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Enforcing Machine Code Restrictions?
    By SMurf in forum Tech Board
    Replies: 21
    Last Post: 03-30-2009, 08:34 AM
  2. Values changing without reason?
    By subtled in forum C Programming
    Replies: 2
    Last Post: 04-19-2007, 11:20 AM
  3. Obfuscated Code Contest: The Results
    By Stack Overflow in forum Contests Board
    Replies: 29
    Last Post: 02-18-2005, 05:39 PM
  4. Obfuscated Code Contest
    By Stack Overflow in forum Contests Board
    Replies: 51
    Last Post: 01-21-2005, 04:17 PM
  5. Interface Question
    By smog890 in forum C Programming
    Replies: 11
    Last Post: 06-03-2002, 06:06 PM

Tags for this Thread


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21