Modify ↓
Opened 15 years ago
Closed 15 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 Changed 15 years ago by TicketCleanup
- Version 3.3.0.0 deleted
comment:2 Changed 15 years ago by Valik
- Resolution set to Rejected
- Status changed from new to 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.
Guidelines for posting comments:
- You cannot re-open a ticket but you may still leave a comment if you have additional information to add.
- In-depth discussions should take place on the forum.
For more information see the full version of the ticket guidelines here.
Note: See
TracTickets for help on using
tickets.
Automatic ticket cleanup.