Reply
Old May 11th, 2004 Top | #1
 
chaos945's Avatar
OSNN Senior Addict
Joined: February 2003
Posts: 932
Reputation: 300
Power: 122

Default StartClock - Released!

This thread is in regards to the Start Menu - Clock! thread I made previously to try and figureout exactly how to do it. Well after about a week of development on the VirtualPlastic boards we've made a version bug free enough to release! I give you the Start Menu clock, boys and girls.

This script can completly replace the current tray clock on the right hand side of your start menu bar by replacing the 'start' text with the current time. To access the date/time menu press CTRL+ALT+D, to exit the script press CTRL+ALT+X.

The source is included.

- BUGS -
* Some sizing issues regarding tool bars, and menu resizing still exist
* Button does not refresh as fast as it could, CPU load goes through the roof otherwise
(any help on these would be great!)
chaos945 is offline   Reply With Quote
Old May 11th, 2004 Top | #2
 
SPeedY_B's Avatar
I may actually be insane.
Joined: March 2002
Location: Midlands, England
Posts: 15,800
Reputation: 2877
Power: 307

Default

Very nice
SPeedY_B is offline   Reply With Quote
Old May 12th, 2004 Top | #3

OSNN Folding Team  
Mainframeguy's Avatar
Debiant by way of Ubuntu
Joined: August 2002
Location: London, UK
Posts: 3,763
Blog Entries: 5
Reputation: 1390
Power: 166

Default correction...

Originally Posted by chaos945
...exit the script press CTRL+ALT+E.
...
Errrr looked at the source - seems to be CTRL+ALT+X in the version you shipped!

Works though, I am using it at the moment.... but I have to say this should be a beta - it uses too much resource for what it is doing and also seems to send Explorer on a mission to use your CPU more than it ought. Needs reworking, but still - does what you wanted, so well done!

[EDIT] Although I left it running for a while it dropped out a minute or so ago without any CTR+ALT keystrokes not sure what may have caused it - guess this is something that needs implementing a slightly different way ideally, like the guy did it in AlphaV - that did not take resource and seemed to do the job OK, don't suppose he got back to you from your email?[/EDIT]
Mainframeguy is offline   Reply With Quote
Old May 12th, 2004 Top | #4

OSNN Folding Team  
Mainframeguy's Avatar
Debiant by way of Ubuntu
Joined: August 2002
Location: London, UK
Posts: 3,763
Blog Entries: 5
Reputation: 1390
Power: 166

Default

oh and one other thing I noticed - you don't check if more than one copy of the script is running... this is not hard to do, in fact technique is covered in FAQs on AutoIt and goes a bit like this:-
; Place at the top of your script
$g_szVersion = "My Script 1.1"
If WinExists($g_szVersion) Then Exit ; It's already running
AutoItWinSetTitle($g_szVersion)
; Rest of your script goes here

And if you want to reduce the script to manageable resource hogging and only need to have the time updated once a minute - just add a sleep(6000) to the main function.... That's what I did
Mainframeguy is offline   Reply With Quote
Old May 12th, 2004 Top | #5
 
forcer's Avatar
OSNN Senior Addict
Joined: October 2002
Posts: 413
Reputation: 20
Power: 118

Default

is it compatiable with things like visual styles bcoz i dont use stand windows theme


forcer is offline   Reply With Quote
Old May 12th, 2004 Top | #6

OSNN Folding Team  
Mainframeguy's Avatar
Debiant by way of Ubuntu
Joined: August 2002
Location: London, UK
Posts: 3,763
Blog Entries: 5
Reputation: 1390
Power: 166

Lightbulb

Originally Posted by forcer
is it compatiable with things like visual styles bcoz i dont use stand windows theme
it is readily adaptable - here's the version I adapted to not hog resources, show only hh:mm (not secs) and to only run one copy - If you want to I do not thnk you'd have trouble running it, main thing is do you change size/placement of your start button I guess? Why not try it and see?
Attached Files
File Type: zip StartClock.zip (79.1 KB, 44 views)
Mainframeguy is offline   Reply With Quote
Old May 12th, 2004 Top | #7
 
ZeroHour's Avatar
ho3 ho3 ho3
Joined: March 2004
Location: Scotland
Posts: 1,111
Reputation: 1032
Power: 118

Default

Seems cool.
Got any ideas for other features besides that. How about having a pin-menu item that renames itsself to be the time.
Not sure but it might be less on the CPU.
No real clue just thinking aloud LOL

<Z>
EduGeek.net -The I.T. professionals' life line
ZeroHour is offline   Reply With Quote
Old May 12th, 2004 Top | #8
 
chaos945's Avatar
OSNN Senior Addict
Joined: February 2003
Posts: 932
Reputation: 300
Power: 122

Default

Originally Posted by Mainframeguy
- here's the version I adapted -
Nice job, this is definitely beta yes, revision version we were sitting at was 0.52.
chaos945 is offline   Reply With Quote
Old May 12th, 2004 Top | #9
Lee
 
Lee's Avatar
OSNN Proxy
Joined: January 2004
Location: Kings Hill, West Malling, Kent, England.
Posts: 3,330
Reputation: 1020
Power: 141

Default

odd it is 5 minutes incorrect. Notification clock shows 17:48 Start clock shows 5:43
Lee is offline   Reply With Quote
Old May 12th, 2004 Top | #10

OSNN Folding Team  
Mainframeguy's Avatar
Debiant by way of Ubuntu
Joined: August 2002
Location: London, UK
Posts: 3,763
Blog Entries: 5
Reputation: 1390
Power: 166

Default

Originally Posted by Lee
odd it is 5 minutes incorrect. Notification clock shows 17:48 Start clock shows 5:43
OOOPpps - forgot to compile after testing something - let me revisit my attachment (assuming I can edit)!!! If you look at the source you will see it exactly....

(Just testing really - to see if anyone used it.... )
[EDIT] upload edit worked - should be right now if you wanted it without compiling source etc. [/EDIT]
Mainframeguy is offline   Reply With Quote
Old May 12th, 2004 Top | #11
 
chaos945's Avatar
OSNN Senior Addict
Joined: February 2003
Posts: 932
Reputation: 300
Power: 122

Default

Need a few more pixels for the text, some gets cut off.

Also why the AdLibEnable("ResizBtn", 10000) when it is sleeping for a long time anyways. Check out this new source, the pixels are fixed to show all hours properly as well as a tad bit faster refresh without hogging too much memory.

Changes:
Code:
AdLibEnable("ResizBtn", 0) 
Sleep(6000)
ControlMove("classname=Shell_TrayWnd", "", "Button1", -1, -1, 140)
ControlMove("classname=Shell_TrayWnd", "", "ReBarWindow321", 141, 0)
**same changes made in 1.02**
chaos945 is offline   Reply With Quote
Old May 12th, 2004 Top | #12

OSNN Folding Team  
Electronic Punk's Avatar
The Last High
Joined: December 2001
Location: London
Posts: 18,506
Blog Entries: 51
Reputation: 3652
Power: 346

Default

Give it a version number and I can post it (lol)
Also can you do a slightly larger screenshot, quarter of the desktop style

Electronic Punk is online now   Reply With Quote
Old May 12th, 2004 Top | #13
 
chaos945's Avatar
OSNN Senior Addict
Joined: February 2003
Posts: 932
Reputation: 300
Power: 122

Default

Okay then lets agree on the naming convensions, how about 1.01a for my last build, the second revision after the official one.

For anyone making their own builds 1.xxX being xx is the build revision and X a letter of your choice.
chaos945 is offline   Reply With Quote
Old May 12th, 2004 Top | #14
 
chaos945's Avatar
OSNN Senior Addict
Joined: February 2003
Posts: 932
Reputation: 300
Power: 122

Default

My latest revision 1.02, it is in the source, everyone making revisions just change it there please.

Code:
; Revision 1.02
Screenshot and a new icon. One built in, one for the dock, if you want.
chaos945 is offline   Reply With Quote
Old May 13th, 2004 Top | #15
 
OnlyMe's Avatar
OSNN One Post Wonder
Joined: January 2004
Posts: 1
Reputation: 0
Power: 0

Default My addin to restore the button

I wanted to restore the start button when exiting.
here is my au3 file with the changes. If you like it then I will let you compile to release it.
Attached Files
File Type: zip SC_Source.zip (860 Bytes, 30 views)
OnlyMe is offline   Reply With Quote
Old May 13th, 2004 Top | #16
 
chaos945's Avatar
OSNN Senior Addict
Joined: February 2003
Posts: 932
Reputation: 300
Power: 122

Default

- Revision 1.03 -
* restores 'start' button on exit
chaos945 is offline   Reply With Quote
Old May 14th, 2004 Top | #17
 
a1ehouse's Avatar
Chamone M*tha Fu*ka
Joined: May 2002
Posts: 288
Reputation: 10
Power: 121

Default

Wicked!!! Best Clock I've seen! Am using it now and going to tell everyone to use it!!!

...it maekesh me do a shecks wee...

a1ehouse is offline   Reply With Quote
Old May 14th, 2004 Top | #18
 
chaos945's Avatar
OSNN Senior Addict
Joined: February 2003
Posts: 932
Reputation: 300
Power: 122

Default

There are some pretty significant revisions this time round. I am quite pleased with myself for getting the time delay stuff all fixed up!

- CHANGES -
* fixed refresh when starting the script
* fixed refresh issues when adjusting the menu bar
* cleaned up the code
* minor graphical changes
* fixed time delay issues!!!
* resolves memory issues
* time consistency
* added dialog for running more than one instance of the script

- BUGS -
* taskbar is not adjusting properly near the end

http://www.geocities.com/chaos945/Fi...Clock_1.04.zip
chaos945 is offline   Reply With Quote
Old May 16th, 2004 Top | #19
 
chaos945's Avatar
OSNN Senior Addict
Joined: February 2003
Posts: 932
Reputation: 300
Power: 122

Default

Website launched.

* New official homepage, thank you Electronic Punk!
Official Homepage
chaos945 is offline   Reply With Quote
Old May 16th, 2004 Top | #20

OSNN Folding Team  
Khayman's Avatar
I'm sorry Hal...
Joined: January 2002
Location: England
Posts: 5,514
Reputation: 1210
Power: 190

Default

Nice work Chaos

"*I'm* on the server side. I don't know what side you're on"
Khayman is offline   Reply With Quote

Reply

Bookmarks

Thread Tools

Posting Rules

Similar Threads
Thread Thread Starter Forum Replies Last Post
CPU-Z 1.32.1 released lkyng Windows Desktop Systems 0 March 4th, 2006 10:12pm
StartClock chaos945 Windows Desktop Systems 59 December 1st, 2005 7:56am
MSN Plus v3.20.100 Released !! PseudoKiller Windows Desktop Systems 13 September 21st, 2004 11:21pm
New Far-Cry map released Sazar PC Gaming 9 March 5th, 2004 7:54pm