Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- on *:LOAD:{
- set %clock.on.start $input(Would you like the clock to start at startup?,yw,Toolbar Clock)
- }
- on *:START:{
- if (%clock.on.start) { startclock }
- }
- alias startclock {
- window -pBw0hf +d @clock -1 -1 $calc($width($timestamp,consolas,12,0,1) + 2) 18
- drawrect -nf @clock $color(background) 1 0 0 $calc($width($timestamp,consolas,12,0,1) + 2) 18
- drawtext -p @clock 0 consolas 12 1 1 $timestamp
- if (!$toolbar(clock)) { toolbar -au clock "Clock" @clock }
- .timerclock 0 1 clock.cont
- }
- alias clock.cont {
- window -pBw0hf +d @clock -1 -1 $calc($width($timestamp,consolas,12,0,1) + 2) 18
- drawrect -nf @clock $color(background) 1 0 0 $calc($width($timestamp,consolas,12,0,1) + 2) 18
- drawtext -p @clock 0 consolas 12 1 1 $timestamp
- toolbar -up clock @clock
- }
- alias stopclock {
- .timerclock off
- toolbar -d clock
- close -@ @clock
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement