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

ConEmu does not stay minimized if a new console tab is opened #127

Open
nick2012 opened this issue May 3, 2015 · 9 comments
Open

ConEmu does not stay minimized if a new console tab is opened #127

nick2012 opened this issue May 3, 2015 · 9 comments

Comments

@nick2012
Copy link

nick2012 commented May 3, 2015

I want to keep ConEmu minimized no matter what happens. For example I have the following bat called test.bat:
"timeout.exe /T 10
START test2.bat"

This bat is launched using conemu shortcut that has the following arguments:
"ConEmuPortable.exe /Min /Dir ... /cmd test.bat"

The problem is that when it reaches START test2.bat, ConEmu is brought to foreground instead of being kept minimized.

How can I prevent this?

I've tried the following:
In Settings-Startup-Tasks:
I've used :b for {cmd} like this:
"cmd -new_console:bC:cmd.exe"

but nothing has changed.

@Maximus5
Copy link
Owner

Maximus5 commented May 3, 2015

Why do you talking about {cmd} task? It is not used in your batches.

Running ConEmuPortable.exe implies activation of active instance. Do you really need that? Have strong doubt...

Use http://ConEmu.GitHub.io/en/NewConsole.html

@nick2012
Copy link
Author

nick2012 commented May 3, 2015

I've used the following in test.bat
""%windir%\system32\timeout.exe" /T 5
ConEmu /cmd test2.bat -new_console:b"

Still no success, the windows goes to foreground when the tab is created.

@Maximus5
Copy link
Owner

Maximus5 commented May 3, 2015

Posted wiki page shows proper usage of -new_console switch. Why do you still run ConEmu.exe?

timeout /T 5­
cmd /c test2.bat -new_console:b

@nick2012
Copy link
Author

nick2012 commented May 3, 2015

I've updated as you said, but it still brings ConEmu to foreground.

@Maximus5
Copy link
Owner

Maximus5 commented May 3, 2015

Indeed

@nick2012
Copy link
Author

nick2012 commented May 4, 2015

Can I send a clean close/quit/exit cmd to conemu from a bat file?

@Maximus5
Copy link
Owner

Maximus5 commented May 4, 2015

Not sure what do you mean. Close ConEmu?
http://conemu.github.io/en/GuiMacro.html

@nick2012
Copy link
Author

nick2012 commented May 5, 2015

Yes, close ConEmu. Thank you for the link!

@Maximus5
Copy link
Owner

Maximus5 commented May 5, 2015

Original issue was fixed in build 150504

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants