Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to select tabs by name in a batch scripting? #1861

Open
Maximus5 opened this issue Jul 31, 2015 · 1 comment
Open

How to select tabs by name in a batch scripting? #1861

Maximus5 opened this issue Jul 31, 2015 · 1 comment
Assignees

Comments

@Maximus5
Copy link
Owner

Originally reported on Google Code with ID 1862

Required information!
OS version: Win7 SP1  x64
ConEmu version: 140114a
Far version (if you are using Far Manager): no

I write a .bat to open multiple console applications in many tabs in one click. How
can I switch between opened tabs programmatically (e.g. select tab by title, make it
active tab to execute some command)?

For example:
conEmuC -Guimacro Shell("new_console:t:1")
conEmuC -Guimacro Shell("new_console:t:2")
// select 1 tab make it active here?
some_chain_of_commands
// select 2 tab make it active here?
some_chain_of_commands

Thank you in advance.



Reported by Dima.Prokopenko on 2015-01-10 10:41:55

@Maximus5
Copy link
Owner Author

It is more canonical to use NewConsole for creating tabs from batches. E.g.:

    cmd -new_console:t:1

So, you actually do not need to switch tabs from batches, because you may choose what
tab need to be active.

You can switch tab using GuiMacro Tab function. But only by index. Obviously tab names
can't be unique.

Reported by ConEmu.Maximus5 on 2015-01-10 10:50:18

@Maximus5 Maximus5 self-assigned this Jul 31, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant