C Board  

Go Back   C Board > Platform Specific Boards > Linux Programming

Reply
 
LinkBack Thread Tools Display Modes
Old 11-30-2009, 04:42 PM   #1
Registered User
 
Join Date: Nov 2009
Posts: 2
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.
skyn3t is offline   Reply With Quote
Old 12-01-2009, 05:18 PM   #2
Eternally Earnest
 
MK27's Avatar
 
Join Date: Jul 2008
Location: SE Queens
Posts: 4,608
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/
__________________

BEING HELPFUL SHOULD MEAN SHARING KNOWLEDGE, NOT WITHHOLDING IT. ==mk27
A truly creative person rids him or her self of all self-imposed limitations. ==recent fortune cookie
MK27 is offline   Reply With Quote
Old 12-02-2009, 04:36 PM   #3
Registered User
 
Join Date: Nov 2009
Posts: 2
That's what I was looking for. Thx.
skyn3t is offline   Reply With Quote
Reply

Tags
background, linux, macro recorder, screen capture, ubuntu

Thread Tools
Display Modes

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Enforcing Machine Code Restrictions? SMurf Tech Board 21 03-30-2009 07:34 AM
Values changing without reason? subtled C Programming 2 04-19-2007 10:20 AM
Obfuscated Code Contest: The Results Stack Overflow Contests Board 29 02-18-2005 05:39 PM
Obfuscated Code Contest Stack Overflow Contests Board 51 01-21-2005 04:17 PM
Interface Question smog890 C Programming 11 06-03-2002 05:06 PM


All times are GMT -6. The time now is 04:43 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.2

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