ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I need to write a very simple, very little application that I will be able to insert into a crontab and it will move the mouse pointer to a give coordinate and simulate a left mouse button click (press and release once) at that very point.
Ive got so far the "moving" part straightened out. This little script moves the pointer where I want it to.
However... I have little experience with X programming and my C++ is rusty also. Can you help me complete this code, clean and possibly most "simple", to send a mouse "click" event to where the cursor has been moved as described above?
Believe it or not, this is very important for me, but I have little clue.
This is an old post and I'm not sure the original poster will see your question. So just in case, here's a link you might find useful: http://www.semicomplete.com/projects/xdotool/
Hi Guys
I need to write a very simple, very little application that I will be able to insert into a crontab and it will move the mouse pointer to a give coordinate and simulate a left mouse button click (press and release once) at that very point.
I am pretty new working with Linux, but I try learn as much I can.
I want a script in Linux to move mouse and make a click (or double click if necessary) in specific locations without use additional Linux tools installed.
I found this script and looks good for what I want, I compiled but I don't know how to use it because seams is giving output that is starting but is not doing anything.
Somebody can explain me how to use?
would be nice to:
1. open a new thread instead of posting in a very old one
2. explain how did you compile it
3. explain how did you test it (how did you try it, what output did you get ...)
As noted by pan64, please consider opening your own thread and provide the details specific to your use including any relevant compile time or runtime messages you receive. Posting to an old thread without details of your own use case often leads to confusion and wastes time of those attempting to provide help while they try to understand the problem.
Please review the Site FAQ for guidance in posting your questions and general forum usage. Especially, read the link in that page, How To Ask Questions The Smart Way. The more effort you put into understanding your problem and framing your questions, the better others can help!
In Ubuntu after compilation the command mouseclick generated works well.
But I want use it in other distribution Poky (Yocto) and here seams doesn't react at all. Here I don't see the terminal and I lunch it trough a bash script but I don't see any reaction!!!!
@AlMeu: Please post to a single thread. Posting to a single thread in the most relevant forum will make it easier for members to help you and will keep the discussion in one place.
Please continue your discussion in your other thread here.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.