mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Apr 2011
Posts: 31
E
EmoHobo Offline OP
Ameglian cow
OP Offline
Ameglian cow
E
Joined: Apr 2011
Posts: 31
Or whatever the official name is for double clicking someone's name to message them and at the same time perform a whois?

Joined: Feb 2012
Posts: 18
S
Pikka bird
Offline
Pikka bird
S
Joined: Feb 2012
Posts: 18
I would have suggested using something like the following in a remote script:
Code:
on *:open:?:*: { /whois $target }


But for some reason I can't get on:open events to trigger ( on:close works, though - v7.22 ).

Joined: Dec 2002
Posts: 1,544
L
Hoopy frood
Offline
Hoopy frood
L
Joined: Dec 2002
Posts: 1,544
If you're clicking in the channel nicklist:

ALT + O --> Mouse --> Nicklist --> //whois $$1 | //query $$1

If you want to do it automatically even if you DONT click on the channel nicklist name:

on *:open:?://whois $nick


Those who fail history are doomed to repeat it
Joined: Dec 2002
Posts: 1,544
L
Hoopy frood
Offline
Hoopy frood
L
Joined: Dec 2002
Posts: 1,544
steeeve, it USED to be (not sure anymore) that if you have more than ONE of the same type of event in a script file, only the first one will fire.


Those who fail history are doomed to repeat it
Joined: Oct 2004
Posts: 8,330
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,330
With the correct syntax, your on OPEN events should work fine...

Code:
on *:open:?: { whois $nick }


You have an extra * in your event.

And, yes, landonsander, only the first matching event will trigger.


Invision Support
#Invision on irc.irchighway.net
Joined: Oct 2003
Posts: 3,918
A
Hoopy frood
Offline
Hoopy frood
A
Joined: Oct 2003
Posts: 3,918
Actually you might want to just type the following in an editbox:

Code:
/alias query !query $1- | whois $1 $1


This way it will even whois when you /query NICK in the editbox (if you ever do this), or if a popup does this to open a query window. Otherwise it will only trigger on double clicks. The above alias will work in more scenarios.

Note that there is an option in Alt+O -> IRC to enable whoising when someone messages you, which you should enable even if you use the above alias, but not if you use the ON OPEN script.


- argv[0] on EFnet #mIRC
- "Life is a pointer to an integer without a cast"
Joined: Feb 2012
Posts: 18
S
Pikka bird
Offline
Pikka bird
S
Joined: Feb 2012
Posts: 18
Originally Posted By: Riamus2
With the correct syntax, your on OPEN events should work fine...
Code:
on *:open:?: { whois $nick }


You have an extra * in your event.


That is the syntax according to the help file. Either way, this still doesn't work for the intended purpose. Looks like there has to be content in order for it to trigger.

I.e.
Code:
*:open:?: { echo -s window opened: $target }

Will work with (presuming you aren't already talking to yourself):
Code:
//msg $me message here

But not with:
Code:
//query $me message here

Code:
//query $me


The 'double-click on user' only does the latter (afaik).

This is in a fresh v7.22 install.

Perhaps it's by design (there are other caveats, after all - 'on open' not triggering on custom windows, e.g.) - but it does mean the initial thought I had doesn't work.


Link Copied to Clipboard