mIRC Homepage
Posted By: nalAAlan Weird colors - 19/12/04 02:22 AM
Code:
alias hello {
  if ($1 == $null) {
    window -ep @hello
    window -ep @@hello
    tokenize 32 0
  }
  clear -n @hello
  drawdot -nr @@hello 0 5 $calc(300 + $1) $calc(300 - $1)
  hello.copy
  drawdot @hello
  .timerhello 1 0 hello $calc($1 + .5)
}
alias -l hello.copy {
  drawcopy -nt @@hello $rgb(255,255,255) 0 0 $window(@hello).bw $window(@hello).bh @hello 0 0
  clear -n @@hello
}
menu @hello,@@hello {
  mouse:editbox $active $mouse.x $mouse.y $getdot($active,$mouse.x,$mouse.y)
}


There is black in @hello for no reason, it is very weird.
Also, if you move your mouse over to the right the farthest it can go it returns "933 410 4294967295"
Posted By: DaveC Re: Weird colors - 19/12/04 10:41 PM
it would appear that when using the -n switch values of a window and the window itself are considered to be in the minimized state, this looks like its what is effecting you, your numbers were different from mine, as I think I might use a higher res screen than yours.
Posted By: nalAAlan Re: Weird colors - 20/12/04 03:19 AM
What I ment by
Quote:
Also, if you move your mouse over to the right the farthest it can go it returns "933 410 4294967295"

was that $getdot returned 4294967295 which is about 256 times more than $rgb(255,255,255) (16777215).
Posted By: DaveC Re: Weird colors - 20/12/04 03:33 AM
most likely your in a 32bit color mode, so its returning the dispatched 24bit color as the one that got put on the screen being 32bit, (this is only a guess of course)
© mIRC Discussion Forums