I have a Powershell script that I launch from ConEmu, and I would like to be able to have this script change the name of the current tab (from where it was launched) so that I can see from which tab I launched the script. I see that I could change the name of the tab using a GUIMacro Rename command, but it has to specify which tab by number. Is there a way to pass the current tab number into my script so I can execute the GUIMacro rename command with the correct tab number?
Thanks, Maximus, for the obvious answer in the comments.
I added something like this to the end of my Powershell script and it works very well:
$tabName = "Thing1"
& "C:\Program Files\ConEmu\ConEmu\ConEmuC.exe" -GUIMacro Rename(0,"Stuff-$tabName")
Rename
function does not require tab number. conemu.github.io/en/GuiMacro.html#Rename – Maximus Nov 13 '15 at 18:48