Warning

 

Close
Confirm Action

Are you sure you wish to do this?

Cancel Confirm
AR15.COM
11/23/2009 11:22:06 PM EDT
Long story short, I'd like to use cron to have the mouse pointer click on something at a set time. Is there a way to do so with a command? Thanks.
11/24/2009 7:54:08 AM EDT
[#1]
It would probably be better to tell the long story

I found this manpage for xdotool which seems to be capable of doing what you need. It also is included in Fedora11 so is likely to be in most major Linux distributions.

11/24/2009 8:01:32 AM EDT
[#2]



Quoted:


It would probably be better to tell the long story




+1



There are a lot of tools/approaches depending on the particulars.





 
11/24/2009 11:33:47 AM EDT
[#3]
Quoted:

Quoted:
It would probably be better to tell the long story

+1

There are a lot of tools/approaches depending on the particulars.

 


Ok here it is. I'm running Firefox under Ubuntu Jaunty with FlashBlock. In case you don't know, FlashBlock is an add-on that deactivates all flash objects unless you click on them. There is a streaming radio station I'd like to set as my morning alarm, but they use their own web-based streamer and it's a flash app (unlike some others that stream via mp3). So the easiest way I can think of doing this is set my mouse over the inactive player and set a cron job to "click" it at the designated time.

Does that make sense? Is there an easier way to do it? Thanks!
11/24/2009 9:33:32 PM EDT
[#4]
I'd setup flashblock to allow from that site, so it isn't inactive (right click on inactive flash, click on 'allow from this site').

Then just have the cronjob open ff with the url of the player page.

11/25/2009 10:56:13 PM EDT
[#5]
Quoted:
I'd setup flashblock to allow from that site, so it isn't inactive (right click on inactive flash, click on 'allow from this site').

Then just have the cronjob open ff with the url of the player page.



Much simpler solution, now I feel dumb for agonizing over this problem for so long without thinking about this method. Thanks for the tip!