mIRC Home    About    Download    Register    News    Help

Print Thread
Suggestions for binvars and windows #151550 19/06/06 12:50 AM
Joined: Oct 2005
Posts: 21
P
poiuy_qwert Offline OP
Ameglian cow
OP Offline
Ameglian cow
P
Joined: Oct 2005
Posts: 21
-- Binvars:
I think Binvars should be able to support null(chr 00) better. Many times I have attempted to make scripts that included using the $compress identifier and Binvars. The thing is I couddn't finish them because the nulls made things go wrong. The only problem I can remember right now was that /bwrite would only write up to the first null.

-- Windows:
There should be better customization of windows switchbar buttons. I suggest something like this:
Code:
/window -P[N] <@window|#channel>

It would change the position of the window or channel in its group.

I also suggest something like this:
Code:
/window -G[N] <@window|cid>

This, for windows, would change which group they are in. For a cid, it would move the whole group for the cid so it would be group N.

I also suggest something like this:
Code:
$cidgroup(@window|#channel|cid)

This, for windows and channels, would return their position in their group. For a cid, it would return the groups position.

Sorry if those are bad explanations, it was hard to explain.


- poiuy_qwert
Re: Suggestions for binvars and windows #151551 19/06/06 07:58 AM
Joined: Jan 2003
Posts: 2,523
Q
qwerty Offline
Hoopy frood
Offline
Hoopy frood
Q
Joined: Jan 2003
Posts: 2,523
I can't reproduce any sort of problems with /bwrite and nuls:

//bset &a 1 1 2 3 0 1 0 2 0 3 0 | bwrite tmp -1 -1 &a | bread tmp 0 $file(tmp) &b | echo -a $bvar(&b,1-) | .remove tmp

This works fine here. Can you show us code that reproduces the problem?


/.timerQ 1 0 echo /.timerQ 1 0 $timer(Q).com
Re: Suggestions for binvars and windows #151552 19/06/06 08:56 AM
Joined: Sep 2003
Posts: 4,230
D
DaveC Offline
Hoopy frood
Offline
Hoopy frood
D
Joined: Sep 2003
Posts: 4,230
I have a feeling he well have mistakenly thought this, as if u read the line back in as with $read, the string well terminate on the $null byte, (i assume because it uses asciiz strings).

Re: Suggestions for binvars and windows #151553 23/06/06 09:50 PM
Joined: Oct 2005
Posts: 21
P
poiuy_qwert Offline OP
Ameglian cow
OP Offline
Ameglian cow
P
Joined: Oct 2005
Posts: 21
I used $compress and $decompress with /bread and /bwrite, and nulls messed it up. I cant give an example right now because i have to go. I'll try later.


- poiuy_qwert
Re: Suggestions for binvars and windows #151554 24/06/06 01:07 AM
Joined: Sep 2003
Posts: 4,230
D
DaveC Offline
Hoopy frood
Offline
Hoopy frood
D
Joined: Sep 2003
Posts: 4,230
That is hardly a good excuse.

"i did this and it messed up, but i cant show u becuase im busy"