Using a script or automation to select an open window at login

Using a script or automation to select an open window at login

avatar

I'm experimenting with the scripting capabilities of RDM manager and I'm hoping there's a way to do this. I want to somehow run a script so that once RDM logs into a windows box, it's selects a specific window from several already opened, types a command in that window which closes it gracefully, then runs a bat file on the desktop to restart the app. The window specific window is USUALLY the 2nd one on the taskbar, but that changes once this program is restarted, so ideally the script could directly address the window. Is this possible?

Using the attached pic, I am hoping to have it select the "SendCleanQueue" window, type a "Q" in the window and enter to run it, then run the SendCleanQueue bat file on the desktop. Currently we are having to mouse over to the window, select it, etc. We have hundreds of these we often have to restart frequently, so any automation would be helpful. Thanks!

CleanQ.png

All Comments (1)

avatar

Hello,

That is quite a challenge, and I don't think RDM can do such a thing!

Do you have the ability to run a script locally on that machine that will achieve this task? If so, you can trigger the script after connecting to the RDP session by selecting the Execute the following program after login option in the Programs tab of the RDP session in RDM and setting the proper command to call this script.



Let us know if that could help.

Best regards,

Érica Poirier

395d813c-04e1-4559-b458-0a7b60ec2873.png