Help - Search - Members - Calendar
Full Version: Specific Time to Start Macro
AC Tools Everything Macro > AC Tool Macros > Other Macros
cobalt06
Hey all,

I've looked through the Help Files and here on the forums, but have yet to find an answer to my question. I need the macro that I'm developing to start at a specific time (a time that I set at some point prior to starting the macro). Would I have to call the Windows clock or is does AC Tool already "know" what time it is? Also, how accurate can I be when I set the designated time to start-- i.e. milliseconds are preferred.

Example:

Manually set macro to start
At 3:00:00 macro begins and runs until ends

Any help?

EDIT: The game is browser based and has it's own server clocks on every page. This time is actually what I would like to go off of, but I'm willing to use my Windows clock. How would I pull this information off of the site. I can't use IsObject because it is constantly changing.
Vanberk
Did you use the forum search?

http://forums.cameroncole.com/index.php?showtopic=14898

-Vanberk laugh.gif
cobalt06
Lol I guess that would have been smart. Thanks for the link.
cobalt06
Can a similar code to

Procedure DropOff when {Hour} = 6 and {Minute} > 55

Be used for {Millisecond}?

EDIT: Also, would it be possible to pull the time from a browser's page?
Vanberk
Search for "FormatDateTime" in the AC Tool Help.

I dont think i can help you get the server clock (Im still a noob). But you can just look at it and find out what GMT they use and then do something like this:
CODE
constants
h=0
n=0
gmth=2 // GMT hour
gmtm=30 // GMT minute
end

FormatDateTime h = {now}, h // Current computer hour
FormatDateTime n = {now}, n // Current computer minute
COMPUTE $h = $h - $gmth // Use the hour and substract it with 2
COMPUTE $n = $n - $gmtm // Use the minutes and substract it with 30
SayPaste $h $n
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2010 Invision Power Services, Inc.