Skip to content
everloot

Lore archive · Warcraft Wiki, 2023 dump

API Button Click

Last wiki revision 2023-08-21

Performs a virtual mouse click on the button. Button:Click([button, isDown])

  • button: - Mouse or virtual button to simulate a click with.
  • isDown: - true if the button should be considered pressed (but not yet released); otherwise, it'll be considered released.
  • This function does nothing if the Button widget is, or if the button is already being clicked.
  • The arguments to this function will be passed to the widget's, , and script handlers.
  • This function ignores the widget's preferences, and does not fire the and script handlers.
  • Only the specified click will be simulated; it is thus possible to simulate multiple down-clicks without any up-clicks or vice versa.
  • If you call this function from a tainted execution path, the OnClick handler will also run on a tainted execution path -- you cannot use this function to trigger protected actions from insecure code.
  • The /click slash command can be used to call this function securely.

Source

https://warcraft.wiki.gg/wiki/API_Button_Click · retrieved 2023-11-13 · CC BY-SA 4.0

Converted from wikitext with templates, tables and images removed, so some sentences may be missing values.

This archive predates WoW: Forever. For collected gameplay facts see the Forever database. Search the archive.