Firstly I'd like to point out that this is a rather strange question and also that I don't even know if stackoverflow is right for this...
Anyways, is there a way to write a batch file or some other script that will automate a mouse click wherever the mouse pointer happens to be at the time the script runs? My main goal is this:
Again I don't know even if this is possible, just thought I'd try my luck. Thanks in advance!
I'd use AutoIt. IMHO, autoit is more appropriate for running scripts where a systray icon might be preferable to a console window. AutoIt can check the time, ping something, automate a mouse click, and probably whatever else you need.