Quantcast

job_start mswindows gui application not hidden

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

job_start mswindows gui application not hidden

Ni Va

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.


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 ?

Thank you  
Niva                    

--
--
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 [hidden email].
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: job_start mswindows gui application not hidden

Bram Moolenaar

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 -- [hidden email] -- 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 [hidden email].
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: job_start mswindows gui application not hidden

Ni Va
Le dimanche 14 mai 2017 17:25:50 UTC+2, Bram Moolenaar a écrit :

> 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 -- [hidden email] -- 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    ///
Thank you Bram, just need vim in order to modify an inside vim's file build : gui.h



let job =  job_start([$vimruntime."/gvim.exe", '-c', 'edit $tmp/vim/src/gui.h', '-c', '%s/\(TOOLBAR_BUTTON_\w\+\s\+\)\d\+/\148'])

It works well and don't see another fastest way!

--
--
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 [hidden email].
For more options, visit https://groups.google.com/d/optout.
Loading...