mIRC Home    About    Download    Register    News    Help

Print Thread
Window problem? #154558 30/07/06 04:36 AM
Joined: Jul 2006
Posts: 5
Z
zmasternz Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
Z
Joined: Jul 2006
Posts: 5
Hi all,

im not sure if this is a bug with the latest version, or if the way the command has executed has changed with the new version, but I have a connection info window showing various stats such has hostname, server i've connected to etc.

Now in the old version it worked perfectly, til I upgraded to 6.2. It appears that the new version isn't clearing the window and so the window is getting blurred as the idle time and systime time carry on. Prehaps the window isn't clearing before posting new data like it used to in 6.1?

/drawrect -f @Infowindow 1 1 0 456 720 20
/drawtext -p @Infowindow 1,1 Arial 11 1 0 1,1 4,1Time:9,1 $time 12-=4**12=-4 Idle:13 $duration($idle)


is part of the alias. As i say, used to work fine in 6.1 but since upgrading to 6.2 after about 20 seconds, as the window isn't clearing like it did, the txt just becomes a blur as the txt is being written overtop of itself.


Possibly a bug? what are your thoughts?

>> Z-master

Re: Window problem? #154559 30/07/06 04:55 AM
Joined: Dec 2002
Posts: 1,245
M
MikeChat Offline
Hoopy frood
Offline
Hoopy frood
M
Joined: Dec 2002
Posts: 1,245
I havent tried it, but you can use drawfill instead of drawrect -f

Re: Window problem? #154560 07/08/06 08:21 AM
Joined: Jul 2006
Posts: 5
Z
zmasternz Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
Z
Joined: Jul 2006
Posts: 5
anyone got any ideas? Just looking at it now its like a multi coloured blur. lol.

Re: Window problem? #154561 07/08/06 09:16 AM
Joined: Feb 2005
Posts: 342
R
Rand Offline
Fjord artisan
Offline
Fjord artisan
R
Joined: Feb 2005
Posts: 342
Alright, out of all the scripting stuff in mIRC that I know by heart, @windows is not one of them.

However, I have achieved your desired effect.

Your previous commands are doing a couple things wrong. The largest flaw is the fact that you're drawing a rectangle almost the entire way down the window, instead of at the top where the text should occur.

Here's an example of how it should be:

Code:
drawrect -f @Infowindow 1 1 1 1 350 17
drawtext -p @infowindow 5 Arial -9 1 1 4,1Time:9,1 $time 12-=4**12=-4 Idle:13 $duration($idle)

Re: Window problem? #154562 07/08/06 10:34 AM
Joined: Jul 2006
Posts: 5
Z
zmasternz Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
Z
Joined: Jul 2006
Posts: 5
oh wow, thanks team. Had to extend the rect so all the code would fit in, but it works perfectly now. Thankyou VERY much. It's a handy little bar, am not sure where it came from, but I think i modified someone elses code to display what I wanted, it was a long time ago so can't remember, don't really support pinching someones code, but I found it so handy that I couldn't help myself. (I think it's handy anyway)


Still am not sure why it went sour after upgrading (worked fine before) but am happy now it's working right. Thanks again to those that replied

laugh

>> Z-master