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.

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.

commented: Thanks! +5
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.