| ikonjevic 2006-12-19, 3:55 am |
| hi, i need help, i success display information in status bar about status
button caps lock or num lock, i put code in window manager-init:
!Divide status bar on 6 sections
0{Prop:Status,1} = 185
0{Prop:Status,2} = 85
0{Prop:Status,3} = 85
0{Prop:Status,4} = 95
0{Prop:Status,5} = 95
0{Prop:Status,6} = 95
!PRINTER name of default printer
0{Prop:StatusText,1} = PRINTER{PROPPRINT:Device}
!NUM lock key
IF BAND(KEYSTATE(),2000h) !Test the state of
the
0{Prop:StatusText,4} = 'Num Lock On' !Its on
ELSE
0{Prop:StatusText,4} = 'Num Lock Off' !Its off
END
!CAPS lock key
IF BAND(KEYSTATE(),1000h) !Test the state of
the
0{Prop:StatusText,5} = 'Caps Lock On' !Its on
ELSE
0{Prop:StatusText,5} = 'Caps Lock Off' !Its off
END
!SCROLL lock key
IF BAND(KEYSTATE(),4000h) !Test the state of
the
0{Prop:StatusText,6} = 'Scroll Lock On' !Its on
ELSE
0{Prop:StatusText,6} = 'Scroll Lock Off' !Its off
END
procedure, all information are displayed in status bar, how can i get
information when i change (pressed) button, example: when i open
application button CAPS LOCK is on, after when i open application i press
(change status) CAPS LOCK and it is off, how i can refresh information in
every moment when i change status of information in status bar
thanks a lot
ivica
|