0

Is there Linux functions equivalent to Windows functions

mouse_event(MOUSEEVENTF_LEFTDOWN,0,0,0,0);
mouse_event(MOUSEEVENTF_LEFTUP,0,0,0,0);
SetCursorPos(x,y);

Specifically Ubuntu, GNOME. I tried to search on google, but did not find anything useful.

2
Contributors
1
Reply
2
Views
5 Years
Discussion Span
Last Post by L7Sqr
1

There are tools to interface with the X11 windowing system although I'm not sure how much GNOME relies on that anymore. You may look at xev to snoop on the things you want to use and map that to generated calls of your own.
If you can use X11, look into xdotool it is a tool already set up to do things like you ask.

Votes + Comments
Thanks!
This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.