WoW:MACRO stopwatch: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
No edit summary
m (Move page script moved page MACRO stopwatch to MACRO stopwatch without leaving a redirect)
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{macroapi}} __NOTOC__
{{macroapi}}
 
Opens the Stopwatch user interface. There are three different methods:
 
Opens the Stopwatch user interface. There are three different methods:
  /stopwatch
  /stopwatch
  /stopwatch time
  /stopwatch time
Line 11: Line 9:
:sw
:sw
:timer
:timer


== Arguments ==
== Arguments ==
:;time : Toggles the stopwatch to count down from the given time. Format: [[H:]M:]S
:;time
:;action : One of the following:
:: Toggles the stopwatch to count down from the given time. Format: [[H:]M:]S
:;action
:: One of the following:
::clear - Stops the timer and resets to 0
::clear - Stops the timer and resets to 0
::pause - Pauses the timer
::pause - Pauses the timer
Line 21: Line 20:
::reset - Stops the timer and resets to 0
::reset - Stops the timer and resets to 0
::stop - Stops the timer and resets to 0
::stop - Stops the timer and resets to 0
 
::close - Closes the timer's window


== Notes ==
== Notes ==

Latest revision as of 04:48, 15 August 2023

Slash commands

Opens the Stopwatch user interface. There are three different methods:

/stopwatch
/stopwatch time
/stopwatch action

Aliases[edit]

stopwatch
sw
timer

Arguments[edit]

time
Toggles the stopwatch to count down from the given time. Format: [[H:]M:]S
action
One of the following:
clear - Stops the timer and resets to 0
pause - Pauses the timer
play - Starts the timer, counting direction is based upon start condition
reset - Stops the timer and resets to 0
stop - Stops the timer and resets to 0
close - Closes the timer's window

Notes[edit]

  • Without an argument, the stopwatch will start at 0 and count up.
  • "/stopwatch 1:0:0 will make the stopwatch count down from an hour, /stopwatch 1:30 will make it count down from 1 minute, 30 seconds, and */stopwatch 30 will make it count down from 30 seconds."
  • Time is converted automatically, so "/sw 1:342:6304" will result in 8 hours, 27 minutes, and 4 seconds.
  • Does not start automatically (user must either click the "Play" button or include "/stopwatch play" in the macro as well).
  • The stopwatch was added in the Wrath of the Lich King content patch, right before the expansion.