Click Here
home features news forums classifieds faqs links search
6071 members 
Amiga Q&A /  Free for All /  Emulation /  Gaming / (Latest Posts)
Login

Nickname

Password

Lost Password?

Don't have an account yet?
Register now!

Support Amigaworld.net
Your support is needed and is appreciated as Amigaworld.net is primarily dependent upon the support of its users.
Donate

Menu
Main sections
» Home
» Features
» News
» Forums
» Classifieds
» Links
» Downloads
Extras
» OS4 Zone
» IRC Network
» AmigaWorld Radio
» Newsfeed
» Top Members
» Amiga Dealers
Information
» About Us
» FAQs
» Advertise
» Polls
» Terms of Service
» Search

IRC Channel
Server: irc.amigaworld.net
Ports: 1024,5555, 6665-6669
SSL port: 6697
Channel: #Amigaworld
Channel Policy and Guidelines

Who's Online
12 crawler(s) on-line.
 97 guest(s) on-line.
 0 member(s) on-line.



You are an anonymous user.
Register Now!
 matthey:  5 mins ago
 sibbi:  8 mins ago
 Hammer:  17 mins ago
 DiscreetFX:  3 hrs 13 mins ago
 amigakit:  3 hrs 26 mins ago
 OneTimer1:  3 hrs 37 mins ago
 saimo:  3 hrs 39 mins ago
 lionstorm:  4 hrs 9 mins ago
 utri007:  4 hrs 10 mins ago
 zipper:  4 hrs 34 mins ago

/  Forum Index
   /  Classic Amiga Software
      /  OS3.2 - date & time on Workbench Title Bar – see Hyperion 3.2 Announcement!
Register To Post

PosterThread
Tpod 
OS3.2 - date & time on Workbench Title Bar – see Hyperion 3.2 Announcement!
Posted on 3-May-2024 1:49:53
#1 ]
Regular Member
Joined: 16-Oct-2009
Posts: 150
From: UK

I've just noticed something on the Hyperion-Entertainment Website; the second image included as part of the original OS3.2 release announcement shows the date & time within the title bar! I didn't think this was possible on OS3.2.

Anyone know how you add this to the title bar (I only really want the time shown)?

_________________
A1200+Mediator+Voodoo3+040+130mbRAM+0S3.9
A2000+Supra28mhz+9mbRAM+OS3.2.2, CD32 & WinUAE

 Status: Offline
Profile     Report this post  
kolla 
Re: OS3.2 - date & time on Workbench Title Bar – see Hyperion 3.2 Announcement!
Posted on 3-May-2024 7:14:47
#2 ]
Elite Member
Joined: 21-Aug-2003
Posts: 2950
From: Trondheim, Norway

@Tpod

OS 3.2 (or even 3.1.4) lets you add variables to the title bar, so all you need is s silly loop script that frequently dumps time to the variable. In short, yes it is possible.

But not really the most elegant solution.

_________________
B5D6A1D019D5D45BCC56F4782AC220D8B3E2A6CC

 Status: Offline
Profile     Report this post  
Tpod 
Re: OS3.2 - date & time on Workbench Title Bar – see Hyperion 3.2 Announcement!
Posted on 3-May-2024 19:30:02
#3 ]
Regular Member
Joined: 16-Oct-2009
Posts: 150
From: UK

Thanks for the explanation kolla but as a point-and-click guy there is no fear of me managing to come up with a functioning script!

Presumably the script would somehow use Clock (from Utilities draw) to send the time & be added to User-Startup or be placed in WBStartup draw? Also I guess something would be added to the Workbench Preferences, Workbench Screen Title Bar Text box?

It's a bit baffling for me to be honest, I don't even fully understand what's meant by 'variables'. Currently I have Clock in WBStartup; a System Request always pops up asking for you to close the Clock whenever changing Workbench screen modes... be much nicer to have it in the title bar.

_________________
A1200+Mediator+Voodoo3+040+130mbRAM+0S3.9
A2000+Supra28mhz+9mbRAM+OS3.2.2, CD32 & WinUAE

 Status: Offline
Profile     Report this post  
Chris_Y 
Re: OS3.2 - date & time on Workbench Title Bar – see Hyperion 3.2 Announcement!
Posted on 3-May-2024 19:35:13
#4 ]
Elite Member
Joined: 21-Jun-2003
Posts: 3205
From: Beds, UK

@Tpod

I write a little program for this exact purpose on OS4. Despite back porting it to 3.2 it doesn't work, and I'm at a loss why. It's here if anybody wants to look at it:
https://github.com/chris-y/envClock

_________________
"Miracles we do at once, the impossible takes a little longer" - AJS on Hyperion
Avatar is Tabitha by Eric W Schwartz

 Status: Offline
Profile     Report this post  
hotrod 
Re: OS3.2 - date & time on Workbench Title Bar - see Hyperion 3.2 Announcement!
Posted on 4-May-2024 0:49:46
#5 ]
Elite Member
Joined: 11-Mar-2003
Posts: 2994
From: Stockholm, Sweden

@Tpod

I use this;

http://aminet.net/package/util/time/ScreenTime

 Status: Offline
Profile     Report this post  
Tpod 
Re: OS3.2 - date & time on Workbench Title Bar – see Hyperion 3.2 Announcement!
Posted on 4-May-2024 18:45:40
#6 ]
Regular Member
Joined: 16-Oct-2009
Posts: 150
From: UK

@Chris_Y

Thanks for at least trying to get it working on 3.2. Hopefully someone will take up the challenge & fix the 3.2 compatibility problem; I would think it would get well used if anyone manages it.

_________________
A1200+Mediator+Voodoo3+040+130mbRAM+0S3.9
A2000+Supra28mhz+9mbRAM+OS3.2.2, CD32 & WinUAE

 Status: Offline
Profile     Report this post  
Tpod 
Re: OS3.2 - date & time on Workbench Title Bar - see Hyperion 3.2 Announcement!
Posted on 4-May-2024 19:08:33
#7 ]
Regular Member
Joined: 16-Oct-2009
Posts: 150
From: UK

@hotrod

ScreenTime sounds interesting; do you have to close it whenever you change Workbench Screen Mode? It at least pretends to do what I'm after, the read me says

Quote:

ScreenTime will open a small borderless window on top of the screen bar, adopting the font and colors of the screen to make it look like it's part of it


Seems like an improvement on just leaving the Clock out, but fingers crossed someone will get Chris_Y's envClock working.

_________________
A1200+Mediator+Voodoo3+040+130mbRAM+0S3.9
A2000+Supra28mhz+9mbRAM+OS3.2.2, CD32 & WinUAE

 Status: Offline
Profile     Report this post  
kolla 
Re: OS3.2 - date & time on Workbench Title Bar - see Hyperion 3.2 Announcement!
Posted on 4-May-2024 22:32:48
#8 ]
Elite Member
Joined: 21-Aug-2003
Posts: 2950
From: Trondheim, Norway

@Tpod

Beware that it will only show time when workbench window is active, and since it also uses a few seconds to update and you don't want to write to a var in file system every second, it should just show hour:minute. Another challenge is to align it to the right, AFAIK that's only doable by using a bunch of spaces... as I wrote, not very elegant.

Personally I prefer to have the clock there always, regardless of whether workbench window is active or not, and I do prefer to see seconds tick by. I also ue ScreenTime, which in addition provides a nice popup calendar.

_________________
B5D6A1D019D5D45BCC56F4782AC220D8B3E2A6CC

 Status: Offline
Profile     Report this post  
thomas 
Re: OS3.2 - date & time on Workbench Title Bar – see Hyperion 3.2 Announcement!
Posted on 5-May-2024 10:59:53
#9 ]
Super Member
Joined: 28-May-2003
Posts: 1144
From: Germany

@Chris_Y

Quote:
Despite back porting it to 3.2 it doesn't work, and I'm at a loss why.


The FormatDate function requires a valid Locale pointer. It crashes if you call it with NULL.

_________________
Email: thomas-rapp@web.de
Home: thomas-rapp.homepage.t-online.de

 Status: Offline
Profile     Report this post  
kolla 
Re: OS3.2 - date & time on Workbench Title Bar – see Hyperion 3.2 Announcement!
Posted on 5-May-2024 14:54:31
#10 ]
Elite Member
Joined: 21-Aug-2003
Posts: 2950
From: Trondheim, Norway

ARexx is also an option. I just wrote this, pulled out weekday, month, day og month, year, hour and minute as separate variables, so one can easily format them to ones own liking. Beware though, it only "speaks" English.


/*
$VER: EnvClock 1.1 (05.05.2025) KolbjΓΈrn Barmen
*/

DO FOREVER
WDAY = DATE(W)
MONTH = DATE(M)
DATE = DATE(N)
MDAY = SUBWORD(DATE, 1, 1)
YEAR = SUBWORD(DATE, 3, 1)

DAYMIN = TIME(M)
HOUR = SUBSTR(100 + DAYMIN % 60, 2, 2)
MINUTE = SUBSTR(100 + DAYMIN // 60, 2, 2)

EC_TIME = WDAY MDAY MONTH YEAR HOUR || ':' || MINUTE

ADDRESS COMMAND SETENV EC_VAR EC_TIME
ADDRESS COMMAND WAIT 59
END


Then add "%e EC_VAR" in in the Workbench prefs.

Last edited by kolla on 05-May-2024 at 02:55 PM.

_________________
B5D6A1D019D5D45BCC56F4782AC220D8B3E2A6CC

 Status: Offline
Profile     Report this post  
Tpod 
Re: OS3.2 - date & time on Workbench Title Bar – see Hyperion 3.2 Announcement!
Posted on 10-May-2024 1:28:53
#11 ]
Regular Member
Joined: 16-Oct-2009
Posts: 150
From: UK

So although envClock seemed to fit the bill if it actually worked on 3.2 & ScreenTime sounded like a good alternative, I decided to do some dinging. I'm pretty certain I've discovered what software put the time & date in the OS3.2 Announcement image .

It's called DateVar, I discovered it looking through walkero (George Sokianos) AmigaOS 3.2-Next steps Youtube videos (see #3, 40mins into stream). There's no obvious way to configure DateVar but you can decided where to place it in the title bar & you can edit how other things are displayed in the bar.

My Workbench Screen Title Bar Text (in Workbench Preferences) now reads -

Quote:
%e DateVar OS %r %mceb chip mem %mfeb fast


which results in the Title Bar displaying e.g.

Quote:
Friday 10-May-24 00:30 OS Release 3.2.2.1 821,272 chip mem 6,064,624 fast mem


This is a nice layout IMHO, it took a bit of trial & error to get what I wanted in the bar to actually fit & look good but I got there in the end. If you have more RAM i.e. over 1MB chip or 10MB fast, it wouldn't fit in the bar. Personally if I needed to free up some space I would delete "%r" from the Title Bar Text box (in Workbench Preferences) removing the word "Release" & just enter 3.2.2.1 after OS manually (obviously remembering to change it if you do an OS update). DateVar works great I'd certainly recommend it.
-------------------------------------------------------------------------------------------------
Just to add - if your using RTG your obviously not going to lack space, but if using PAL High Res. like me then my title bar text shown above may be of some use.

Last edited by Tpod on 10-May-2024 at 05:06 PM.
Last edited by Tpod on 10-May-2024 at 05:04 PM.
Last edited by Tpod on 10-May-2024 at 01:50 AM.
Last edited by Tpod on 10-May-2024 at 01:46 AM.
Last edited by Tpod on 10-May-2024 at 01:29 AM.

_________________
A1200+Mediator+Voodoo3+040+130mbRAM+0S3.9
A2000+Supra28mhz+9mbRAM+OS3.2.2, CD32 & WinUAE

 Status: Offline
Profile     Report this post  
klx300r 
Re: OS3.2 - date & time on Workbench Title Bar – see Hyperion 3.2 Announcement!
Posted on 10-May-2024 6:40:49
#12 ]
Elite Member
Joined: 4-Mar-2008
Posts: 3838
From: Toronto, Canada

I just keep DOpus minimized which shows me date & time at top of my screen

_________________
____________________________
c64-2sids, A1000, A1200T-060@50(finally working!),A4000-CSMKIII
! My Master Miggies- Amiga 1000 & AmigaOne X1000 !
mancave-ramblings
X1000 I BELIEVE

 Status: Offline
Profile     Report this post  
kolla 
Re: OS3.2 - date & time on Workbench Title Bar – see Hyperion 3.2 Announcement!
Posted on 11-May-2024 3:15:47
#13 ]
Elite Member
Joined: 21-Aug-2003
Posts: 2950
From: Trondheim, Norway

@Tpod

To remove "Release" just fix the variable ${Versions/Relase} for example by editing ENVARC:Versions/Release - or just make a new variable and use %e.

You can also shorten how free RAM is displayed by using f.ex. kilobyte, like "%mcek kB" and "%mfek kB" (beware, here are bugs - if you for example want to display "19.683kB" instead of "19.683 kB" there is no way of doing this as workbench treats "%mfekkB" same way as "%mfekB", or for that matter "%mfekkkkkkkkkkkkB")

_________________
B5D6A1D019D5D45BCC56F4782AC220D8B3E2A6CC

 Status: Offline
Profile     Report this post  
Tpod 
Re: OS3.2 - date & time on Workbench Title Bar – see Hyperion 3.2 Announcement!
Posted on 11-May-2024 11:45:36
#14 ]
Regular Member
Joined: 16-Oct-2009
Posts: 150
From: UK

@kolla

Good tip on how to remove the word β€œRelease”, I gave it a try & it's certainly a much better idea than using my bodge job method!

To be clear (for fellow script clueless folks) go to Prefs/Env-Archive/Versions/Release. Open TextEdit then drag & drop Release onto it, remove the word Release & then save; job done.

_________________
A1200+Mediator+Voodoo3+040+130mbRAM+0S3.9
A2000+Supra28mhz+9mbRAM+OS3.2.2, CD32 & WinUAE

 Status: Offline
Profile     Report this post  
danwood 
Re: OS3.2 - date & time on Workbench Title Bar - see Hyperion 3.2 Announcement!
Posted on 11-May-2024 20:21:06
#15 ]
Super Member
Joined: 30-Sep-2008
Posts: 1071
From: Unknown

@Tpod

If you don't want to mess around with scripts etc. just put BarClock in WBStartup, I've used it on all of my Amigas for years, works great:

http://aminet.net/package/util/time/BarClock22

 Status: Offline
Profile     Report this post  
kolla 
Re: OS3.2 - date & time on Workbench Title Bar - see Hyperion 3.2 Announcement!
Posted on 12-May-2024 14:54:37
#16 ]
Elite Member
Joined: 21-Aug-2003
Posts: 2950
From: Trondheim, Norway

Hear hear about BarClock - I also use it.

I use ScreenTime on Workbench screen and BarClock on other screens.

_________________
B5D6A1D019D5D45BCC56F4782AC220D8B3E2A6CC

 Status: Offline
Profile     Report this post  
Chris_Y 
Re: OS3.2 - date & time on Workbench Title Bar – see Hyperion 3.2 Announcement!
Posted on 15-May-2024 13:54:29
#17 ]
Elite Member
Joined: 21-Jun-2003
Posts: 3205
From: Beds, UK

I've been busy so have only just got round to looking at this.

Quote:

thomas wrote:

The FormatDate function requires a valid Locale pointer. It crashes if you call it with NULL.


Thank you, that did it!

I've uploaded v1.2 to Aminet, or you can get it here:
https://github.com/chris-y/envClock/releases/tag/v1.2

_________________
"Miracles we do at once, the impossible takes a little longer" - AJS on Hyperion
Avatar is Tabitha by Eric W Schwartz

 Status: Offline
Profile     Report this post  
outlawal2 
Re: OS3.2 - date & time on Workbench Title Bar – see Hyperion 3.2 Announcement!
Posted on 15-May-2024 15:54:34
#18 ]
Regular Member
Joined: 16-Apr-2010
Posts: 120
From: Unknown



FINALLY!
A Unicorn has arrived.

A thread on the internet with an entire page full of people assisting with a question with solid and dare I say even FRIENDLY responses!

Multiple opinions and ways to solve a particular problem and not even a HINT of hostility or conflict.

This thread is a shining example of how things SHOULD be.

 Status: Offline
Profile     Report this post  
kolla 
Re: OS3.2 - date & time on Workbench Title Bar – see Hyperion 3.2 Announcement!
Posted on 15-May-2024 16:22:34
#19 ]
Elite Member
Joined: 21-Aug-2003
Posts: 2950
From: Trondheim, Norway

Oh yeah?

_________________
B5D6A1D019D5D45BCC56F4782AC220D8B3E2A6CC

 Status: Offline
Profile     Report this post  
outlawal2 
Re: OS3.2 - date & time on Workbench Title Bar – see Hyperion 3.2 Announcement!
Posted on 15-May-2024 16:42:48
#20 ]
Regular Member
Joined: 16-Apr-2010
Posts: 120
From: Unknown

@kolla

LOL

NICE

 Status: Offline
Profile     Report this post  

[ home ][ about us ][ privacy ] [ forums ][ classifieds ] [ links ][ news archive ] [ link to us ][ user account ]
Copyright (C) 2000 - 2019 Amigaworld.net.
Amigaworld.net was originally founded by David Doyle