Modify ↓
Opened 16 years ago
Closed 16 years ago
#1316 closed Feature Request (Rejected)
SleepUntilTime($hour, $min, $sec) and RunOnTime($hour, $min, $sec, "UserFunction")
| Reported by: | andref | Owned by: | |
|---|---|---|---|
| Milestone: | Component: | AutoIt | |
| Version: | Severity: | None | |
| Keywords: | SleepUntilTime RunOnTime _TimeToTicks Sleep | Cc: |
Description
#include<Date.au3>
;Idea of first:
Func SleepUntilTime($hour, $min, $sec)
$tics=_TimeToTicks($hour, $min, $sec)-_TimeToTicks()
Sleep($tics)
EndFunc
;Idea of second
Func RunOnTime($hour, $min, $sec, "UserFunction")
;create new thread
;In thread run: SleepUntilTime($hour, $min, $sec)
;In thread: Run(..., "UserFunction")
;prabobaly It can be made with Timer too
EndFunc
Thx
Attachments (0)
Change History (2)
comment:1 by , 16 years ago
| Version: | 3.3.0.0 |
|---|
comment:2 by , 16 years ago
| Resolution: | → Rejected |
|---|---|
| Status: | new → closed |
The first one is too trivial and the second one will not work. It seems you didn't notice AutoIt isn't multi-threaded.
Note:
See TracTickets
for help on using tickets.

Automatic ticket cleanup.