Sunday, May 14, 2017

Re: job_start mswindows gui application not hidden

Ni Va wrote:

> Regarding the help's job_start,
>
> On MS-Windows, job_start() makes a GUI application hidden. If
> want to show it, Use |:!start| instead.
>
>
> I've tried that from a gvim instance :
> echo job_start([$vimruntime."/gvim.exe", "-c", "echo 'world'"])
>
> And I well see a new instance appear with the good message displayed.

Have you tried another GUI command? Vim probably brings itself to the
foreground, since it's an interactive application.

> So, it's not a crucial problem because I needed to job_start an
> instance of gvim in order to just modify file content by regexp. (if u
> have another easier way I'll take it)
>
> I just would like to know how to set the fact that the executable is
> hidden or shown ?

I believe the default is hidden, but an application may change that on
startup. With Vim you can try adding "/min" (the documentation for this
is old, not sure if it still works).

--
ARTHUR: CHARGE!
[The mighty ARMY charges. Thundering noise of feet. Clatter of coconuts.
Shouts etc. Suddenly there is a wail of a siren and a couple of police
cars roar round in front of the charging ARMY and the POLICE leap out and
stop them. TWO POLICEMAN and the HISTORIAN'S WIFE. Black Marias skid up
behind them.]
HISTORIAN'S WIFE: They're the ones, I'm sure.
"Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD

/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\ an exciting new programming language -- http://www.Zimbu.org ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///

--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments: