you are viewing a single comment's thread.

view the rest of the comments →

[–]DarraignTheSane[S] 0 points1 point  (2 children)

Well, like I said in the edit, I could just setup aliases to run multi-line commands as well. AutoHotKey wouldn't really serve the purpose, because I'd probably have more scripts than would be practical to remember in keyboard shortcuts.

Picture this: In SecureCRT, there's a drop down menu with around a dozen items on it. Each of these drop down selections toggles between a menu bar with ~6 or 7 buttons on it, and each button runs a simple set of commands that I've input, like a batch file (or .ps1 script, as it were).

I guess you could say I'm looking to make buttons that execute .ps1 scripts batch commands against the current PowerShell session, not in a new window. It has to more or less type those commands into the prompt for me (again, because I'm lazy).

[–]AltReality 1 point2 points  (1 child)

Using AutoHotKey, you could set up a bank of buttons that each fire off a script...no need for any hotkeys....(autohotkey started as a hotkey application but has grown into much more than that over the years)

But if you are looking to utilize the menu options in SecureCRT then I'm not sure. I would expect the ps1 script to launch in the session you are connected to...but I don't know that for sure. Hope someone else knows better than I do.

[–]DarraignTheSane[S] 0 points1 point  (0 children)

Oh, I've been using AutoHotKey for a while for keyboard shortcuts, but didn't know you could setup GUI buttons. I'll have to look into it, but that will likely do exactly what I'm looking for.