--- "cronus1974" <[EMAIL PROTECTED]> wrote:
> -------------------------------------
> red = volume*1/1
> blue = 255 - volume
> Vol  = volume*100/255
> ; Make sure there are 3 charactor for R,G,B
> if (length(blue) == 1) do 
>      blue="00"++blue
>      else 
>      if (length(blue) == 2) do
>      blue="0"++blue
>  endif
>  endif
>  
>  if (length(red) == 1) do 
>      red="00"++red
>      else 
>      if (length(red) == 2) do
>      red="0"++red
>  endif
> endif
> 
> ; Make a slider bar, but seems the looping conflict with the 
> logithech key 
> bar =""
> for (counter=0; counter<=100; counter=counter+1)
> if (Vol == counter ) do
>      bar = bar ++ "[]"
> else
>     bar = bar ++ "|"
> endif
> endfor

red  = fill("000",volume)
blue = fill("000",255 - volume)
vol  = volume*100/255
bar=repeat("|",vol-1)++if(vol>0,"[]")++repeat("|",100-vol)
;bar = ifelse(vol > 0,repeat("|",vol-1)++"[]"++repeat("|",
;     100 - vol),repeat("|",100))

Sean



------------------------ Yahoo! Groups Sponsor --------------------~--> 
$9.95 domain names from Yahoo!. Register anything.
http://us.click.yahoo.com/J8kdrA/y20IAA/yQLSAA/JV_rlB/TM
--------------------------------------------------------------------~-> 

 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/power-pro/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 

Reply via email to