Discussion:
mIRC titlebar using multi-server
(too old to reply)
Chaos Master
2004-06-29 03:21:13 UTC
Permalink
Hello people.

I am coding a mIRC script, and one of the modules is one which shows info about
how many channels, how many queries, how many time have you been connected in a
server on the titlebar.

It already works, for a single server, using a few /timer commands.

(e.g. /timer.foo 0 1 /<command to do titlebar>)

Suppose now I am in 2 servers (irc.xxx.com and irc.yyy.com). I made an "ON
CONNECT" event to enable the timer. (this sets:

timer.xxx: repeat forever, 1 sec delay, /<cmd to do titlebar for server xxx>
timer.yyy: repear forever, 1 sec delay, /<cmd to do titlebar for server yyy>

BUT, the titlebar starts "flickering" between the 2 servers.

Q: Is there any way to make a timer that is specific for a server execute just
when a window on this server is selected? (i.e. halt it when the window is not
selected).


[]s
--
© Chaos Master. | "I've tried so hard to tell
My Evanescence HP is at: | myself that you're gone
http://marreka.no-ip.com | And thought you were still
(most often offline... ) | with me..."
------------------------- -- Evanescence, "My Immortal"
Keith Gable
2004-06-29 07:48:37 UTC
Permalink
Post by Chaos Master
Hello people.
I am coding a mIRC script, and one of the modules is one which shows info about
how many channels, how many queries, how many time have you been connected in a
server on the titlebar.
It already works, for a single server, using a few /timer commands.
(e.g. /timer.foo 0 1 /<command to do titlebar>)
Suppose now I am in 2 servers (irc.xxx.com and irc.yyy.com). I made an "ON
timer.xxx: repeat forever, 1 sec delay, /<cmd to do titlebar for server xxx>
timer.yyy: repear forever, 1 sec delay, /<cmd to do titlebar for server yyy>
BUT, the titlebar starts "flickering" between the 2 servers.
Q: Is there any way to make a timer that is specific for a server execute just
when a window on this server is selected? (i.e. halt it when the window is not
selected).
[]s
I'm thinking it's something like $activewin or something.. If $activewin
!= win_server_is_for then ignore_it (pseudocode there).. not 100% sure
there, as I'm not qualified to give mIRC script assistance :P
--
Keith Gable
Lead Programmer of the Ignition Project
http://www.ignition-project.com/
ICBM: 35.540383, -94.988756
*Philippians 4:13 :: Worldwide English (New Testament):* I can do all
things because Christ gives me strength.
thedlw
2004-06-29 19:30:27 UTC
Permalink
you could have the timer call an alias to see if the window was $active. or
for a channel window on that server.
Post by Chaos Master
Hello people.
I am coding a mIRC script, and one of the modules is one which shows info about
how many channels, how many queries, how many time have you been connected in a
server on the titlebar.
It already works, for a single server, using a few /timer commands.
(e.g. /timer.foo 0 1 /<command to do titlebar>)
Suppose now I am in 2 servers (irc.xxx.com and irc.yyy.com). I made an "ON
timer.xxx: repeat forever, 1 sec delay, /<cmd to do titlebar for server xxx>
timer.yyy: repear forever, 1 sec delay, /<cmd to do titlebar for server yyy>
BUT, the titlebar starts "flickering" between the 2 servers.
Q: Is there any way to make a timer that is specific for a server execute just
when a window on this server is selected? (i.e. halt it when the window is not
selected).
[]s
--
© Chaos Master. | "I've tried so hard to tell
My Evanescence HP is at: | myself that you're gone
http://marreka.no-ip.com | And thought you were still
(most often offline... ) | with me..."
------------------------- -- Evanescence, "My Immortal"
Loading...