WoW:MACRO stopwatch: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
(Added the close argument.)
mNo edit summary
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 22: Line 21:
::stop - Stops the timer and resets to 0
::stop - Stops the timer and resets to 0
::close - Closes the timer's window
::close - Closes the timer's window


== Notes ==
== Notes ==

Revision as of 00:49, 4 November 2013

Slash commands

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

/stopwatch
/stopwatch time
/stopwatch action

Aliases

stopwatch
sw
timer

Arguments

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

  • 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.