mIRC Home    About    Download    Register    News    Help

Print Thread
#154279 29/07/06 01:17 AM
Joined: Nov 2004
Posts: 842
Jigsy Offline OP
Hoopy frood
OP Offline
Hoopy frood
Joined: Nov 2004
Posts: 842
There seems to be a bug in $lactivewid.

When switching between channels it doesn't seem to register the last active window number.

In the code I added to my titlebar which shows the activewid/lactivewid it'll either return 'current/0' or 'current/'

Its hard to explain.


What do you do at the end of the world? Are you busy? Will you save us?
#154280 29/07/06 01:21 AM
Joined: Sep 2005
Posts: 2,881
H
Hoopy frood
Offline
Hoopy frood
H
Joined: Sep 2005
Posts: 2,881
I can't reproduce this.

Code:
on *:active:*: echo -s $lactivewid


I switched between several different types of windows, including channel to channel, but the correct wids were echod.

#154281 29/07/06 01:24 AM
Joined: Nov 2004
Posts: 842
Jigsy Offline OP
Hoopy frood
OP Offline
Hoopy frood
Joined: Nov 2004
Posts: 842
Try switching between the windows really quickly?

I got several

-
* /echo: insufficient parameters
-

messages in my status window.


What do you do at the end of the world? Are you busy? Will you save us?
#154282 29/07/06 01:29 AM
Joined: Sep 2005
Posts: 2,881
H
Hoopy frood
Offline
Hoopy frood
H
Joined: Sep 2005
Posts: 2,881
Works every time confused

#154283 30/07/06 04:06 PM
Joined: Dec 2002
Posts: 5,421
Hoopy frood
Offline
Hoopy frood
Joined: Dec 2002
Posts: 5,421
I can't seem to reproduce this either. If you try the following event and hold down Control+Tab to switch quickly between windows, what do you see?

on *:active:*: echo -s active: $activewid lastactive: $lactivewid

#154284 31/07/06 01:56 PM
Joined: Nov 2004
Posts: 842
Jigsy Offline OP
Hoopy frood
OP Offline
Hoopy frood
Joined: Nov 2004
Posts: 842
CTRL + TAB seems to work correctly, but wif mouse use it doesn't.

Quote:

(from mouse usage)

active: 14 lastactive: 2
active: 15 lastactive: 14
active: 16 lastactive: 15
active: 17 lastactive: 16
active: 18 lastactive:
active: 18 lastactive:
active: 21 lastactive: 18
active: 21 lastactive:
active: 20 lastactive: 21
active: 14 lastactive: 20
active: 15 lastactive: 14
active: 16 lastactive: 15
active: 17 lastactive: 16
active: 18 lastactive: 17
active: 19 lastactive: 18
active: 20 lastactive: 19
active: 21 lastactive: 20
active: 2 lastactive:
active: 2 lastactive:


What do you do at the end of the world? Are you busy? Will you save us?
#154285 31/07/06 02:03 PM
Joined: Dec 2002
Posts: 5,421
Hoopy frood
Offline
Hoopy frood
Joined: Dec 2002
Posts: 5,421
I tried switching back and forth between two windows by clicking on each window quickly, and was not able to reproduce the problem here.

How are you switching windows? Are you clicking on the switchbar buttons, or in the windows themselves? On the titlebars, or in the main display part of each window?

#154286 31/07/06 02:40 PM
Joined: Nov 2004
Posts: 842
Jigsy Offline OP
Hoopy frood
OP Offline
Hoopy frood
Joined: Nov 2004
Posts: 842
I'm using treeview to switch between windows.


What do you do at the end of the world? Are you busy? Will you save us?
#154287 31/07/06 02:55 PM
Joined: Dec 2002
Posts: 5,421
Hoopy frood
Offline
Hoopy frood
Joined: Dec 2002
Posts: 5,421
Okay, I created two @windows and then single-clicked on each window item in the treebar, back and forth... I wasn't able to do it very quickly... unfortunately I wasn't able to reproduce the problem...

Are you selecting each window by moving the mouse up and down and clicking each item with the left mouse button?

#154288 31/07/06 03:31 PM
Joined: Nov 2004
Posts: 842
Jigsy Offline OP
Hoopy frood
OP Offline
Hoopy frood
Joined: Nov 2004
Posts: 842
Yes.

This may sound weird but I'm reproducing the error wif my windows maximized. I couldn't reproduce any when they were tiled or cascaded.


What do you do at the end of the world? Are you busy? Will you save us?
#154289 31/07/06 04:33 PM
Joined: Mar 2006
Posts: 29
T
Ameglian cow
Offline
Ameglian cow
T
Joined: Mar 2006
Posts: 29
unfortunatly, i cant seem to reproduce this either, the code to echo in the status window seems to be working fine, i even tried on several diff types of windows (#,@,etc.) //say $lactivewid also correctly says the ... $lactivewid.

active: 17 lastactive: 21
active: 11 lastactive: 17
active: 6 lastactive: 11
active: 12 lastactive: 6
active: 7 lastactive: 12
active: 4 lastactive: 7
active: 13 lastactive: 4
active: 9 lastactive: 13
active: 5 lastactive: 9
active: 8 lastactive: 5
active: 20 lastactive: 8


and so on and so forth ...


although, once i got:

active: 19 lastactive: 1
active: 19 lastactive:


and another time:

active: 17 lastactive: 19
active: 19 lastactive: 17
active: 19 lastactive:


those seem weird ... but its working for the most part.


-tyler-
#154290 08/08/06 12:41 PM
Joined: Dec 2002
Posts: 5,421
Hoopy frood
Offline
Hoopy frood
Joined: Dec 2002
Posts: 5,421
Thanks I've made a small change which should resolve this issue for the next version.


Link Copied to Clipboard