Drawscroll and multiple co-ordinates - 27/02/06 12:25 AM
There's maybe a bug when you use multiple co-ordinates vertical drawscroll.
Like if the first value of X was repeated.
(Modify the script for individual commands)
Of course it's less a problem than the new timer instruction.
The timer "loop per second" rate is no more 64 (and rarely 100) under windows XP. (with a lot of version of mirc, even old one) Now it's the half, 32.
One could use an "external timer" instruction (timer 0 0 alias) but it's a bit annoying. It would be great if there was a new flag for the new orderer timer.
Thanks for reading
Like if the first value of X was repeated.
(Modify the script for individual commands)
Code:
; /test to run alias test { ; ; Centered 640*480 picture window window -CpdofB @a 0 0 640 480 ; ; Draw a black background drawdot -nr @a 0 999 0 0 ; ; ; ; ; 1) Red text for the HORIZONTAL scroller drawtext -nor @a 255 tahoma 230 0 -40 MIRC ; ### Multiple co-ordinates drawscroll (Horizontal) drawscroll -n @a 10 0 0 0 480 50 20 0 0 50 480 50 30 0 0 100 480 50 40 0 0 150 480 50 ; ; 2) Blue text for the VERTICAL scroller drawtext -nor @a 16737280 tahoma 230 0 200 MIRC ; Replace 0 by 1 in case you want to test without multiple values. if (0) { drawscroll -n @a 0 10 0 200 50 640 drawscroll -n @a 0 20 50 200 50 640 drawscroll -n @a 0 30 100 200 50 640 drawscroll -n @a 0 40 150 200 50 640 drawscroll -n @a 0 50 200 200 50 640 } ; ### Multiple co-ordinates drawscroll (Vertical) else { drawscroll -n @a 0 10 0 200 50 640 0 20 50 200 50 640 0 30 100 200 50 640 0 40 150 200 50 640 0 50 200 200 50 640 } ; ; ; ; ; Just visuals drawtext -nr @a 65280 tahoma 20 0 0 Vertical drawscroll drawtext -nr @a 65280 tahoma 20 0 240 Horizontal drawscroll ; ; Redraw drawdot @a ; }
Of course it's less a problem than the new timer instruction.
The timer "loop per second" rate is no more 64 (and rarely 100) under windows XP. (with a lot of version of mirc, even old one) Now it's the half, 32.
One could use an "external timer" instruction (timer 0 0 alias) but it's a bit annoying. It would be great if there was a new flag for the new orderer timer.
Thanks for reading
Code:
; /a 6.17 should be 32 (XP) and 64 with other version of mirc alias a { inc %1 if $calc($ticks -%2) > 999 { %3 = %1 | %1 = 0 | %2 = $ticks | echo -a %3 } .timer 1 0 a }