Prompt specific time

Hi ppl, I'm creating a macro which activates on a specific time of the day, but sometimes i want to change this time, is there any way to prompt a time to update the trigger, instead of editing the macro itself every time?
 

Dm114

Well-known member
Hi ppl, I'm creating a macro which activates on a specific time of the day, but sometimes i want to change this time, is there any way to prompt a time to update the trigger, instead of editing the macro itself every time?
No, unfortunately not.

Are the reasons for changing time predictable? Are they few configurations of times that could be set in advance?
 
No, unfortunately not.

Are the reasons for changing time predictable? Are they few configurations of times that could be set in advance?
I use it like a personalized wake-up alarm, but since my job has a very flexible schedule, i don't need to wake up super early everyday, and sometimes i just know it the day before haha.

I just tried a workaround now, kinda costly, but works:

I prompt fill an int variable with the format "hhmm" (This will be the prompt)

Then, i use some math to divide it to 2 int variables: hh and mm

I've set a trigger to fire from 10 to 10 minutes intervals (I think it's ok to have this degree of tolerance). Between 4am and 7am (I just use it in this period)

Then, i set a constraint to the macro like:
var hh = {hour}
and
var mm > {minute}-5
and
var mm ≤ {minute}+5
 

Dm114

Well-known member
I use it like a personalized wake-up alarm, but since my job has a very flexible schedule, i don't need to wake up super early everyday, and sometimes i just know it the day before haha.

I just tried a workaround now, kinda costly, but works:

I prompt fill an int variable with the format "hhmm" (This will be the prompt)

Then, i use some math to divide it to 2 int variables: hh and mm

I've set a trigger to fire from 10 to 10 minutes intervals (I think it's ok to have this degree of tolerance). Between 4am and 7am (I just use it in this period)

Then, i set a constraint to the macro like:
var hh = {hour}
and
var mm > {minute}-5
and
var mm ≤ {minute}+5
It's exactly this kind of workaround I wanted to suggest but I first needed to know more exactly about your constraints.

Let me make a suggestion about entering time. I often use a decimal number instead of an integer an use the decimal point as the hour and minutes separator (to keep on using the numeric keypad). Then, as you are doing, I split hour part (Floor function) and "decimal/minutes" part ([original input-Hour part]*100).

Then you can check 0≤Hour<24 and 0≤Minutes<60 (or -1<Hour<24 and -1<Minutes<60 as they both are integers)
 
It's exactly this kind of workaround I wanted to suggest but I first needed to know more exactly about your constraints.

Let me make a suggestion about entering time. I often use a decimal number instead of an integer an use the decimal point as the hour and minutes separator (to keep on using the numeric keypad). Then, as you are doing, I split hour part (Floor function) and "decimal/minutes" part ([original input-Hour part]*100).

Then you can check 0≤Hour<24 and 0≤Minutes<60 (or -1<Hour<24 and -1<Minutes<60 as they both are integers)
That's a very good idea, using the decimal point as a separator! Imma adopt it! Thanks!
 

Germinmeth

New member
Ви найкращі! Повага Вам за Ваші винаходи. Я ще не дійшов до цього, але хочу запитати вас про відображення поточного часу в рядку стану. Справа в тому, що правильний час відображається тільки при включеному пристрої і залишається таким до наступного перезавантаження, хоча на екрані блокування відображається правильний час. Хто знайомий із цією помилкою на Moto 54g?
Sorry for going off topic(
 

Dm114

Well-known member
Ви найкращі! Повага Вам за Ваші винаходи. Я ще не дійшов до цього, але хочу запитати вас про відображення поточного часу в рядку стану. Справа в тому, що правильний час відображається тільки при включеному пристрої і залишається таким до наступного перезавантаження, хоча на екрані блокування відображається правильний час. Хто знайомий із цією помилкою на Moto 54g?
Sorry for going off topic(
Прощу пишіть по англійське.

Please write in English.
 
Top