Simulate Mouse Click/Movement

alright.. so listen,
basically i wana make a program that will move the mouse and simulate mouse clicks. (like a macro program for linux)
BUT HOW DO I DO THIS, LIKE WHAT PRE-PROCESSOR FILES SHOULD I INCLUDE?
every example i've found includes "windows.h" which will obviously not help me on this platform.

i heard something about including an API but i have no idea

anything relevant is appreciated!

I don't know too much about whether or not there is such a function, but in the event there is it's probably desktop-environment specific. What desktop environment are you using? GNOME? KDE? XFCE?

-Albatross
either GNOME or KDE(i can switch between the two)!
Oh, well, turns out it's not environment specific! There are ways to simulate them at the XWindows level!

http://www.linuxquestions.org/questions/programming-9/simulating-a-mouse-click-594576/

-Albatross

this looks very useful. thanks for the find!
Topic archived. No new replies allowed.