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
You are the best! Respect to you for your inventions. I haven't reached that level of development yet, but I want to ask you about displaying the current time in the status bar. The fact is that my smartphone shows the correct time only after starting the device and then for 1 second. it takes a reboot to see the correct time in the status bar again, even though the lock screen shows the correct time all the time. Anyone familiar with this error on Moto 54g?

Sorry for going off topic(
 
Last edited:

Dm114

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

Please write in English.
 

Germinmeth

New member
Прощу писати по-англійськи.

Будь ласка, пишіть англійською.
Ти найкращий! Повага Вам за Ваші винаходи. Я ще не досяг такого рівня розвитку, але хочу запитати вас про відображення поточного часу в рядку стану. Справа в тому, що мій смартфон показує правильний час тільки після запуску пристрою і то протягом 1 секунди. потрібне перезавантаження, щоб знову побачити правильний час у рядку стану, навіть якщо на екрані блокування весь час відображається правильний час. Хтось знайомий із цією помилкою на Moto 54g?

Вибачте за відхід від теми(
 
Top