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 TicketCleanup, 16 years ago

Version: 3.3.0.0

Automatic ticket cleanup.

comment:2 by Valik, 16 years ago

Resolution: Rejected
Status: newclosed

The first one is too trivial and the second one will not work. It seems you didn't notice AutoIt isn't multi-threaded.

Modify Ticket

Action
as closed The ticket will remain with no owner.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.