Jump to content

Sky Slate Blueberry Blackcurrant Watermelon Strawberry Orange Banana Apple Emerald Chocolate
Photo

Awesome Desktop Clock


  • Please log in to reply
42 replies to this topic
Uberi
  • Moderators
  • 1119 posts
  • Last active: May 02 2015 06:05 PM
  • Joined: 23 Aug 2010
An awesome desktop clock:

Screenshot:

Posted Image

Does not require the GDI+ library, as all needed functions have been inlined.

Download:

AutoHotkey.net

Edit: added parent to desktop option thanks to a suggestion by tic. Enable the ParentDesktop setting to keep the clock parented to the desktop.

Frankie
  • Members
  • 2930 posts
  • Last active: Feb 05 2015 02:49 PM
  • Joined: 02 Nov 2008
Nothing shows up for me. AHK_L x86 Unicode.
The screenshot looks nice though.

Edit: Doesn't seem to work on AHK_Basic on my computer either...maybe its my computer? Vista x64.
I have no problems using Tic's Gdiplus library.
aboutscriptappsscripts
Request Video Tutorials Here or View Current Tutorials on YouTube
Any code ⇈ above ⇈ requires AutoHotkey_L to run

tomoe_uehara
  • Members
  • 2166 posts
  • Last active: Jun 11 2015 05:33 PM
  • Joined: 05 Sep 2009
Works for me, AHK Basic, Win XP SP3

Uberi
  • Moderators
  • 1119 posts
  • Last active: May 02 2015 06:05 PM
  • Joined: 23 Aug 2010

Nothing shows up for me. AHK_L x86 Unicode.
The screenshot looks nice though.

Edit: Doesn't seem to work on AHK_Basic on my computer either...maybe its my computer? Vista x64.
I have no problems using Tic's Gdiplus library.


Did you hide all your windows? It's a desktop clock, so it will always be below all other windows. If it still does not work, your best bet is to comment out line 12, but then it wouldn't stay attached to the desktop.

Frankie
  • Members
  • 2930 posts
  • Last active: Feb 05 2015 02:49 PM
  • Joined: 02 Nov 2008

If it still does not work, your best bet is to comment out line 12, but then it wouldn't stay attached to the desktop.

It works with line 12 commented out. Nice script :!:
aboutscriptappsscripts
Request Video Tutorials Here or View Current Tutorials on YouTube
Any code ⇈ above ⇈ requires AutoHotkey_L to run

Learning one
  • Members
  • 1483 posts
  • Last active: Jan 02 2016 02:30 PM
  • Joined: 04 Apr 2009
Nice work Uberi!

Deep-Silence
  • Members
  • 89 posts
  • Last active: May 03 2015 05:54 AM
  • Joined: 24 Apr 2009
Indeed, that's really awesome !!!
Great Work.

codybear
  • Members
  • 600 posts
  • Last active: Feb 09 2015 12:41 PM
  • Joined: 15 Sep 2009

Indeed, that's really awesome !!!
Great Work.

Nice, looks like an AHK port of the enigma rainmeter skin!
Very nice man!

Uberi
  • Moderators
  • 1119 posts
  • Last active: May 02 2015 06:05 PM
  • Joined: 23 Aug 2010

Indeed, that's really awesome !!!
Great Work.

Nice, looks like an AHK port of the enigma rainmeter skin!
Very nice man!


So that's what it's called... I was looking for that clock all over the place, couldn't find it, and so made my own based off of some pictures of it.

Thanks for all the comments, everyone!

Edit: Only tested on AHK Basic. Should, but might not, work on AHK_L.

closed
  • Members
  • 509 posts
  • Last active: Jan 14 2012 06:14 PM
  • Joined: 07 Feb 2008
Nice Uberi i hope you don't mind i borrow some code? :)


I came acrossa variant to the rainmeter clock last week when browsing deviantart website.

<!-- m -->http://browse.devian... ... 4#/d33dyvb<!-- m -->
Maybe you have some free time to expand your clock? :)

update:
you need to have javascript enabled for the deviantart website it will go to a gallery of the author edjec or you can go directly

<!-- m -->http://edjec.deviantart.com/<!-- m -->

  • Guests
  • Last active:
  • Joined: --

Nice Uberi i hope you don't mind i borrow some code? :)


I came acrossa variant to the rainmeter clock last week when browsing deviantart website.

<!-- m -->http://browse.devian... ... 4#/d33dyvb<!-- m -->


Maybe you have some free time to expand your clock? :)


How do i use this?

Uberi
  • Moderators
  • 1119 posts
  • Last active: May 02 2015 06:05 PM
  • Joined: 23 Aug 2010

I came acrossa variant to the rainmeter clock last week when browsing deviantart website.

<!-- m -->http://browse.devian... ... 4#/d33dyvb<!-- m -->


Maybe you have some free time to expand your clock? :)


Wow, that looks really complicated... Well, I think I may be able to integrate the Month/Day meter, and maybe the HD Space and CPU Usage meters, but I'm not sure how the others work. It should be added relatively soon.

How do i use this?


Just run it, no other files or dependencies required. Make sure you have XP or higher, or at least gdip.dll installed. If you still experience issues, comment out line 12.

tic
  • Members
  • 1934 posts
  • Last active: May 30 2018 08:13 PM
  • Joined: 22 Apr 2007
As shown in the gdi+ tutorials, dont use +toolwindow with layered windows as they cause random z layering errors

also....

DllCall("SetParent","UInt",hWnd,"UInt",WinExist("ahk_class Progman"))

Note that WS_EX_LAYERED cannot be used for child windows


<!-- m -->http://msdn.microsof...ry ... 85).aspx<!-- m -->

you should really use the library as it isn't maintanable code. looks nice though :)

codybear
  • Members
  • 600 posts
  • Last active: Feb 09 2015 12:41 PM
  • Joined: 15 Sep 2009

Nice Uberi i hope you don't mind i borrow some code? :)


I came acrossa variant to the rainmeter clock last week when browsing deviantart website.

<!-- m -->http://browse.devian... ... 4#/d33dyvb<!-- m -->


Maybe you have some free time to expand your clock? :)


How do i use this?

If you were asking about the link you have quoted, you have to install Rainmeter and add it in your skins folder. If that is infact what you were asking how to use, you can message me if you need further instructions on how to use so we don't clutter up this thread.

So that's what it's called... I was looking for that clock all over the place, couldn't find it, and so made my own based off of some pictures of it.

Thanks for all the comments, everyone!

Edit: Only tested on AHK Basic. Should, but might not, work on AHK_L.

haha yeah... I love Rainmeter with the use of coretemp plugins and rocketdock (eventhough I really wouldn't need it with Rainmeter).

I haven't tested this yet though, but it does look like a very nice port of the clock...especially just designed from screenshots!

Uberi
  • Moderators
  • 1119 posts
  • Last active: May 02 2015 06:05 PM
  • Joined: 23 Aug 2010

As shown in the gdi+ tutorials, dont use +toolwindow with layered windows as they cause random z layering errors


Thanks for the explanation, tic! I've used +Owner to achieve the same effect.

DllCall("SetParent","UInt",hWnd,"UInt",WinExist("ahk_class Progman"))

Note that WS_EX_LAYERED cannot be used for child windows


<!-- m -->http://msdn.microsof...ry ... 85).aspx<!-- m -->


Thanks again, I've commented this out for now. Any other way to parent it to the desktop without resorting to BitBlt?

you should really use the library as it isn't maintanable code. looks nice though :)


The functions I used do not pass strings to GDI+, but I do see your point. Although full Unicode compatibility is not a problem, the code can get messy and difficult to understand.

Additionally, I've updated the script to show the current Day/Month. This is displayed by the white overlays on top of the two thick-ish black arcs at the bottom. They move left as they increase. Left one is day, right one is month.

Enjoy!