Simplistic Countdown Timer

no worries. I'll report back :grin:

Hi @Noob2this , I might not be the best person to answer this but I'll take a shot.
In the countdown timer macro, In the action labeled Custom Floating HTML Prompt, there is aline of text like
<body style="background: #ffd096" data-kmwindowid="Archive MD5 Tamper" data-kmwindow="SCREEN(Main,MidX) -940,SCREEN(Main,MidY)-800,120,55">
That is where you could change the display location.
#9c96ff is a purple color - you can change the color in that above line of code...
Not sure how to make it transparent, - I'd like to know that myself!
I hope this helps

thx troy. that was the other place I was looking at

1 Like

I use the following code to make the countdown window appear at the bottom-left corner of my 2nd screen:

<body data-kmwindow="SCREEN(Front,Width),SCREEN(Back,Height),110,45">
1 Like

I'm glad you figured it out. For the last half hour I've been working on another thread, and I didn't notice this conversation.

I just read this whole thread. It was a lot of code for a simple timer. And it got me to thinking. I now I have a great idea for a whole new type of timer. I'm going to work on it and post it as soon as I get it done.

2 Likes

mine is similar. I did 90% for both width and height. works great

@Martin: Thank you for the code, especially the combination with Alfred.

Unfortunately the combination of Alfred does not support a task name.

I have adapted the code from Martin and it now supports many ways to specify what you would like to do, including an optional task name and two time specification methods:

Example Effect
30 A timer of 30 seconds
30 task A timer of 30 seconds with the name task.
task 30 A timer of 30 seconds with the name task.
3m A timer of 3 minutes. A task name can be added before or after.
2h3m A timer of 123 minutes. A task name can be added before or after.
2.5h A timer of 150 minutes. A task name can be added before or after.
1d3h5m10s A timer of many minutes. A task name can be added before or after.

If the task is specified it will show up in the counter.

The zip contains both a changed Alfred workflow as well as an update Keyboard Meastro macro.

If you run into unexpected behavior let me know.

Countdown Timer with Alfred.zip (84.3 KB)

3 Likes