"AT" like in PEARL

Propose new features and changes
User avatar
haichen
Posts: 631
Joined: 09 Feb 2014, 08:24

"AT" like in PEARL

08 Nov 2019, 04:32

Code: Select all

AT 12:00:00 ALL 1 SEC UNTIL 12:00:10 ACTIVATE Task1 PRIORITY 5;
just saw this line of code in PEARL, and immediately thought something like "AT" would be a nice command in Autohotkey as well. But it's probably not a good idea, because the Windows times can be quite inaccurate. On the other hand there is of course the scheduler. So I ask how stupid this suggestion is.
User avatar
Delta Pythagorean
Posts: 627
Joined: 13 Feb 2017, 13:44
Location: Somewhere in the US
Contact:

Re: "AT" like in PEARL

09 Nov 2019, 23:32

What exactly does this do?

[AHK]......: v2.0.12 | 64-bit
[OS].......: Windows 11 | 23H2 (OS Build: 22621.3296)
[GITHUB]...: github.com/DelPyth
[PAYPAL]...: paypal.me/DelPyth
[DISCORD]..: tophatcat

User avatar
haichen
Posts: 631
Joined: 09 Feb 2014, 08:24

Re: "AT" like in PEARL

10 Nov 2019, 04:58

AT 12:00:00 - do something at this timestamp ... That's the point I found interesting.
User avatar
haichen
Posts: 631
Joined: 09 Feb 2014, 08:24

Re: "AT" like in PEARL

10 Nov 2019, 05:16

But at the moment I have no idea how to integrate such a command. Maybe as a supplement to settimer ..setrunat? Is it really useful? And could it be done?
User avatar
nnnik
Posts: 4500
Joined: 30 Sep 2013, 01:01
Location: Germany

Re: "AT" like in PEARL

10 Nov 2019, 05:26

Yes and yes but I think this would be rather trivial to implement using libraries so I doubt it's needed.
Recommends AHK Studio
User avatar
jeeswg
Posts: 6902
Joined: 19 Dec 2016, 01:58
Location: UK

Re: "AT" like in PEARL

10 Nov 2019, 06:57

Some relevant links:

How to Run at Specific Time in Milliseconds? - Page 2 - AutoHotkey Community
https://autohotkey.com/boards/viewtopic.php?f=5&t=35813&p=165548#p165548

SetTimer VS Computer Sleep Mode - AutoHotkey Community
https://autohotkey.com/boards/viewtopic.php?f=5&t=41598

Run a script every specified weekday at specified time (use ahk instead of task manager) - AutoHotkey Community
https://autohotkey.com/boards/viewtopic.php?f=5&t=62954
homepage | tutorials | wish list | fun threads | donate
WARNING: copy your posts/messages before hitting Submit as you may lose them due to CAPTCHA
User avatar
haichen
Posts: 631
Joined: 09 Feb 2014, 08:24

Re: "AT" like in PEARL

10 Nov 2019, 08:10

I did some scheduled tasks in the past with settimer and checking a_now. I can't really say why, but i don't like this (my) code. Well .. settimer could also be implemented as a loop.
But if nobody sees it as a good idea, it probably isn't.

Return to “Wish List”

Who is online

Users browsing this forum: No registered users and 58 guests