Maximus5 / ConEmu

Customizable Windows terminal with tabs, splits, quake-style, hotkeys and more
https://conemu.github.io/
BSD 3-Clause "New" or "Revised" License
8.55k stars 572 forks source link

Can I close a specific ConEmu tab from a bat file? #217

Open nick2012 opened 9 years ago

nick2012 commented 9 years ago

I would want to close a specific tab that is opened in ConEmu when a certain event is triggered. Is it possible to close it using a bat file?

pyhedgehog commented 9 years ago

Command conemuc /guimacro:t1 close(0,0) closes tab 1.

nick2012 commented 9 years ago

can I give it a certain name, and use it for closing the tab?

Maximus5 commented 9 years ago

The may point is that "name" is not unique identifier.

nick2012 commented 9 years ago

i could try to make it unique.

Maximus5 commented 9 years ago

I can't check that now but may be function FindFarWindow is able to activate the tab by name. If so, you shall call Context and than close active tab. All in one macro command.