[dev] Re: wmiirc with dual screens

From: Suraj N. Kurapati <sunaku_AT_gmail.com>
Date: Tue, 17 May 2011 12:29:21 -0700

On Tue 17 May 2011 12:15:36 PM PDT, Suraj N. Kurapati wrote:
> On Tue 17 May 2011 10:27:56 AM PDT, Jesse W. Hathaway wrote:
> > Is it possible to add an event hook to look for the creation of
> > a specific client, e.g. VLC,
>
> Yes, add a handler for the CreateClient event:
>
> control:
> event:
> CreateClient: |
> client_id = argv[0]
> # now do something with the client_id

Whoops, I forgot to check the created client's title:

  control:
    event:
      CreateClient: |
        client_id = argv[0]
        client = Client.new(client_id)

        if client.props.read =~ /VLC/i
          # do something with this VLC window
        end

--
fortune: No such file or directory

Received on Tue May 17 2011 - 21:29:21 CEST

This archive was generated by hypermail 2.2.0 : Tue May 17 2011 - 21:36:02 CEST