"AT" like in PEARL

Propose new features and changes
User avatar
haichen
Posts: 540
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: 567
Joined: 13 Feb 2017, 13:44
GitHub: DelPyth
Location: Somewhere in the US

Re: "AT" like in PEARL

09 Nov 2019, 23:32

What exactly does this do?

- [AHK].......: 1.1.33.02 Unicode 64-bit
- [OS].........: Windows 10.0.18362
- [GITHUB]...: github.com/DeltaPyth
- [PAYPAL]....: paypal.me/DelPyth
- [DISCORD]..: Delta#3324

Remember to use [code]CODE[/code] for your multi-line scripts.
Stay safe, stay inside, and remember to wash your hands for 20 seconds!
User avatar
haichen
Posts: 540
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: 540
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: 4470
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: 540
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 4 guests