Link to home
Start Free TrialLog in
Avatar of yballan
yballanFlag for United States of America

asked on

Automate App launch and button click

Dear Experts,

I have been asked to automate a video stream starting after a PC crashes.  I can put the VLC media player and OBS Studio with pre-configured parameters in Startup Menu, but the only sticking point is, there is a button that says "Start Streaming" that needs to be pushed.  After researching a bit, I found an AutoMouseClicker, which can run a script to replay the mouse movement and clicking.  But I cannot start that automatically.  It requires someone to initiate a script.  How can I a accomplish this?  I feel like I am one step away from accomplishing this.
Please advise.
Avatar of David Johnson, CD
David Johnson, CD
Flag of Canada image

use task scheduler on login or on system start to run automouseclicker
>>> "I have been asked to automate a video stream starting after a PC crashes." <<<

Could you please explain what you mean by "crashes"?
If the PC truly has crashed, then it may not be possible to start VLC player by any means to start streaming video.
Avatar of yballan

ASKER

Dear David,
Thank you for your reply.  Yes, I do have AutoMouseClicker in the startup, and I apologize for phrasing the question incorrectly.  I can start the Mouse clicker with script loaded, I just can't start the script.  I wrote to the AutoMouseClicker maker, but could not get an answer that works.
I was wondering if I could create some routine to mimic mouse clicking, in VBA or JavaScript, and such and hoping to find an example.

Dear BillDL,
Thank you for your reply.  Yes, you are correct about the PC crash, but we have Verdiem subscription, so that we can remotely power up a pc.  After that, I need to run some apps, which requires mouse click.
ASKER CERTIFIED SOLUTION
Avatar of BillDL
BillDL
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of yballan

ASKER

Dear BillDL, thank you for your suggestion, I ended up using something very similar to sendkey-wsh, called AutoIt v3, and was able to accomplish the task.
Thank you yballan

One of our resident experts, Joe Winograd, is extremely knowledgeable about AutoHotKey.  He mentions in his very comprehensive article:
https://www.experts-exchange.com/articles/18346/AutoHotkey-Getting-Started.html
that AutoHotKey (referred to as AHK) was actually a "fork" from AutoIT and that they still have many things in common.  He wrote another article in which he provided a working AHK example:
https://www.experts-exchange.com/articles/31560/How-to-create-an-on-off-toggle-to-mute-the-system-audio-sound-with-a-single-mouse-click-or-single-keystroke.html

The reason I specifically mentioned AutoHotKey rather than AutoIT, even though I have only used AutoIT before, was because of a previous question dating back to 2016 in which a member mentioned how very unfriendly and unwelcoming the AutoIT community was to new members seeking help, whereas while people like Joe Winograd frequent the AutoHotKey community I'm sure that you would be made much more welcome and given much better advice.

I'm glad you managed to work out a solution for your issue.