VB get location and size of system clock?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Leftic
    New Member
    • Dec 2013
    • 5

    VB get location and size of system clock?

    What I want to do is get the location of the system clock in the bottom right corner, then change my forms size to match the clocks size, then move my form to the clocks location (im creating a personal clock replacement program)

    Or even better, how would I say create a ".dll" (or whatever the extension is for the system clock) that if you where to say replace with this one, it would replace the clock with my form?

    Thanks for any help in advance.
  • mayevski
    New Member
    • May 2006
    • 3

    #2
    Overlay idea is bad and ineffective.

    The right approach is to create a global hook and once the hook is loaded into Explorer process, inject a DLL into Explorer's address space. Then hook the clock window's messages, intercept WM_PAINT and a bunch of other messages and draw your content. You can also resize the clock window.

    Clock window class can be learned using WinSpy tool from SDK. It's "TrayClockWClas s".

    We once sold the application called EldoS Clock, then EldoS Pads, that did exactly what you want to do.

    And, btw, this can not be done in .NET - this should be unmanaged code (C++, Delphi).
    Last edited by mayevski; Dec 11 '13, 03:35 PM. Reason: Added the remark about .NET code.

    Comment

    • Leftic
      New Member
      • Dec 2013
      • 5

      #3
      Thanks for the help.

      Comment

      Working...