topbanner_forum
  *

avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • Sunday December 8, 2024, 4:29 am
  • Proudly celebrating 15+ years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - crumpuppet [ switch to compact view ]

Pages: [1]
1
T-Clock / Re: T-Clock 2010 (download)
« on: November 14, 2014, 08:11 AM »
Man I don't know why I didn't keep an eye on this thread! Your last update fixed my request from August 15th. I can now refresh the clock with AutoIT using the WM_COMMAND call, and my custom clock is working perfectly :)

I wrote a bit of code to create a "rounded down" clock, showing the time in Afrikaans and rounded to the nearest 5 minutes. So for example, if it is anything between 4 and 6 minutes after the hour, it will display "vyf oor vier."; anything close to 20 minutes past will show "twintig oor ...". For some reason I find I process the time much better like this, I have it on my phone as well using Tasker.

Here it is:


The app builds the text, changes the registry key, and runs the WM_COMMAND. It is executed by Windows Task Scheduler every 3 minutes, and it runs in a few milliseconds, with no real performance hit. I guess you could put any custom text in here using this method, but I love this one :)

I also love that it now shows the native Windows calendar when you click the clock.

Thanks WhiteTigX!!!

2
T-Clock / Re: T-Clock 2010 (download)
« on: August 18, 2014, 09:03 AM »
I think I may have fried my brain trying to get this to work. I'll just have to face the fact that I'm scratching where I shouldn't :)

I found a UDF that helps finding child window handles, but it doesn't matter which handle I send the message to it just doesn't refresh. Even showing a list of all current windows and their handles and sending the message directly to the static handle of the TClock window still doesn't refresh.

Thanks for the help anyway!

3
T-Clock / Re: T-Clock 2010 (download)
« on: August 18, 2014, 06:49 AM »
Oh yeah this looks like the kind of stuff I need. Unfortunately I'm not having any joy though. I'm a bit of a newbie when it comes to this kind of thing, so I tried plugging in those commands in every possible way, but no dice.

I'm sending the commands using AutoIT, with the following code:

Code: AutoIt [Select]
  1. $hWnd = WinGetHandle ('[Class:TClockMainClass]')
  2. $result = _SendMessage ($hWnd, $WM_COMMAND, 285, 0)

$hWnd does get populated with the handle of the class, but the _SendMessage command doesn't refresh TClock. My test is changing the value of the "CustomFormat" and "Format" keys in the registry.

I've also tried sending this command using test apps (like this) with the same effect.

Any idea where I'm going wrong?

4
T-Clock / Re: T-Clock 2010 (download)
« on: August 15, 2014, 06:28 AM »
Hey everyone, I've got a question about T-Clock 2010. Is there a way to programmatically refresh it? Perhaps a DLL call I can do which will mimic the action that happens when clicking the "Refresh T-Clock" option from the context menu.

To make a long story short, I want to inject my own bit of custom code into the CustomFormat registry key, and refresh it every couple of minutes.

thanks :)

Pages: [1]