home *** CD-ROM | disk | FTP | other *** search
-
- ; WindowBlinds Scripting
- ;
- ; This is a demonstration script which can be used to fade in a button
-
-
- GET
- BUTNO
- TEMP1
- T3
-
- IF
- T3
- 14
- =
- END
-
-
-
-
- ; Get the alpha value for the button
- GET
- BUTNO
- ALPHA
- T1
- ; Add 5 to this value
- MATHS
- T1
- ADD
- 20
-
- ; Now we need to copy this value to T2 from T1 (temp vars)
- MATHS
- T2
- ASSIGN
- T1
-
- ; If the alpha value is 255 or greater then we need to do something special
- IF
- T1
- 255
- >=
- ; If its true then we set T2 = 255
- MATHS
- T2
- ASSIGN
- 255
-
- ; Set Alpha for the button to T2s value
- SET
- BUTNO
- T2
- ALPHA
-
- ; If alpha <255 then set timer again
- IF
- T1
- 255
- <
- ; Set timer
- SETTIMER
- BUTNO
- 55
-
- ; Repaint border
- REPAINT
-