Abcdefmonkey commented on a Page, Digital Clock  -  Dec 24, 2011

[EDIT: This is to configure xdesoto's images to work with pball's coding (for a slightly bigger digital clock)]

*To those who experience numbers not fitting completely or being cut off

After some tinkering with repositioning where it placed the numbers and changing the width a bit here's the outcome: http://puu.sh/brn5

The numbers fit perfectly and nothing is cut off. Here's what was changed (again, lol):

  if (!$window(@clock)) window -nBj2kpw0 +f @clock 0 0 $iif($1 == 12,117,88) 22
  if (!$toolbar(clock)) toolbar -aux clock "" @clock 0 0 $iif($1 == 12,111,82) 16

Changed to:

  if (!$window(@clock)) window -nBj2kpw0 +f @clock 0 0 $iif($1 == 12,125,88) 25
  if (!$toolbar(clock)) toolbar -aux clock "" @clock 0 0 $iif($1 == 12,111,82) 30

And

if ($mid(%time,1,1) != 0) || (%num != 1) || ($1 != 12) drawpic @clock $gettok(0 12 24 29 41 53 58 70 $iif($1 == 12,87 99),%num,32) 0 $scriptdir $+ $mid(%time,%num,1) $+ .jpg

Changed to:

    if ($mid(%time,1,1) != 0) || (%num != 1) || ($1 != 12) drawpic @clock $gettok(-2 12 26 31 44 58 63 77 $iif($1 == 12,91 105),%num,32) 0 $scriptdir $+ $mid(%time,%num,1) $+ .jpg

Lastly, just a minor tweak to the toolbar itself:

toolbar -tpu clock "" @clock 0 0 $iif($1 == 12,111,82) 16

Changed to:

  toolbar -tpu clock "" @clock 0 0 $iif($1 == 12,120,95) 20
 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.