mIRC Homepage
Posted By: poiuy_qwert Suggestions for binvars and windows - 19/06/06 12:50 AM
-- 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.
Posted By: qwerty Re: Suggestions for binvars and windows - 19/06/06 07:58 AM
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?
Posted By: DaveC Re: Suggestions for binvars and windows - 19/06/06 08:56 AM
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).
Posted By: poiuy_qwert Re: Suggestions for binvars and windows - 23/06/06 09:50 PM
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.
Posted By: DaveC Re: Suggestions for binvars and windows - 24/06/06 01:07 AM
That is hardly a good excuse.

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