Re: Scripting Help

Stealth <[email protected]> Wed, 23 Jun 2010 10:11:21 -0700
Newsgroups gmane.network.irc.irssi.user
Message-ID <[email protected]>
(bah stupid gmail and dropping recipients from replies)

Here's what everyone probably didn't receive.


On Wed, Jun 23, 2010 at 10:07 AM, Stealth <[email protected]> wrote:
> Interesting, I will need to play around with it unless someone else
> can provide some more information (I really don't like the
> trial-and-error stuff)...
>
>
> Anyone have any input on how I can get the ID of the target window
> when a message is received? Currently still using the "window
> activity" signal.
>
> This:
>    my ($window_rec,$old_level) = @_;
>    Irssi::command("echo >> $window_rec $old_level");
>
> Gives me:
>>> Irssi::UI::Window=HASH(0x9c13de4) 0
>
>
> On Wed, Jun 23, 2010 at 10:01 AM, Joost Vunderink <[email protected]> wrote:
>> Stealth wrote:
>>
>>> I can't find any information on window_find_refnum. It looks like it
>>> might be useful, but what does it expect for input and what does it
>>> give me?
>>
>> Most of my irssi scripting development has been rather trial-and-error-ish,
>> as the documentation of the scripting API is quite poor.
>>
>> My conclusion is that this function has 1 argument, the window number
>> (same as in the Act: statusbar item), and returns an Irssi::Window
>> object. What I did was just calling this function with different
>> arguments and print the result...
>>
>> Good luck!
>>
>> Joost.
>>
>