On Thu, Oct 21, 2010 at 10:53 AM, Ingo Karkat <[email protected]> wrote:
> On 21-Oct-2010 15:15, Chris Sutcliffe wrote:
>> On 21 October 2010 09:07, Christian Brabandt wrote:
>>> On Thu, October 21, 2010 2:36 pm, Chris Sutcliffe wrote:
>>>> To that end, this minor patch populates v:windowid with the gvim HWND
>>>> under windows:
>>> [...]
>>>
>>> What can that be used for?
>>
>> A quick way to retrieve the gvim window handle for utilities that use
>> the window handle (i.e. for scripting with AutoHotKeys, etc.).  Since
>> it's defined (v:windowid) even under Windows, might as well make it
>> return something useful.
>
> Great, I had the same idea to make v:windowid apply to more platforms than 
> only
> X, and agree that its potential usefulness might warrant the small Win32
> implementation.
>
> Regarding the naming, how about v:guiwindowid, to differentiate with Vim's own
> windows. After all, this variable is only for GVIM, not terminal-based Vim.

That's not the case at all.  Quoting from the documentation that was
added,

  When any X11 based GUI is running or when running in a terminal and
  Vim connects to the X server (|-X|) this will be set to the window
  ID.

-- 
James
GPG Key: 1024D/61326D40 2003-09-02 James Vega <[email protected]>

-- 
You received this message from the "vim_dev" 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

Raspunde prin e-mail lui