RDM focus after Command Line execution

RDM focus after Command Line execution

avatar

Hello everyone
When I execute the Command Line Session with "explorer C:\..." in the run field, the correct folder opens up but after that RDM comes back in focus and covers the folder.
Is there an option to let RDM stay in the background?

Best regards
Rolf

All Comments (5)

avatar

Hello Rolf,

I could not find any option that does that but I thought of nice features that will get it the way you'd like.
First, for the explorer example, RDM offers an "File Explorer " Entry type that would allow the windows to open embedded.

The second could be a macro that will execute automatically after the window has opened.
On your Command Line Session Property, go to Events -> After Open -> After open - Macro, and the typing macro will look like {WINDOW:<your window title>}
On my side, I opened it on a folder named "Temp", so the command is : {WINDOW:Temp}

You can take a look here for all the options of the macro
https://kb.devolutions.net/rdm_event_auto_typing_macro.html

I hope this helps!

Best regards,

Alex Belisle

avatar

Hello

FileExplorer is no solution at this point, because the New-RDMSession does not support it. But Érica Poirier knows it already.
Is it possible to set this macro with Powershell, because i have like 2000 or 3000 Command Line sessions. If not i will wait for the cmdlet update. But there is no rush.

Best regards
Rolf

avatar

Hello!

Oh I see...

I think that it would be easier to wait for the fix in https://forum.devolutions.net/topics/35221/fileexplorer-session-and-using-template-powershell
The challenge with adding an event is to determine the name of the window to set focus on.
If ever you fell like giving it a shot, the attribute in Powershell is :

$MyEntry.Events.AfterConnectionTypingMacro = "{WINDOW:<the title of the window>}"
Set-RDMSession $MyEntry

Let us know if this helps.

Best regards,

Alex Belisle

avatar

Hello

The Makro works fine. Thank you very much for your help.

Have a nice day!

Best regards
Rolf

avatar

Hello!

Nice to hear! have a nice one.

Best regards,

Alex Belisle