WoW:API LaunchURL: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
mNo edit summary
m (Move page script moved page API LaunchURL to API LaunchURL without leaving a redirect)
 
(7 intermediate revisions by 7 users not shown)
Line 1: Line 1:
{{wowapi|removed=1.10.0}}
Launches an external web browser and navigates to the URL provided.
Launches an external web browser and navigates to the URL provided.


LaunchURL("URL")
LaunchURL("url")
 
----
;''Arguments''
 
:''"URL": URL of the website to open. Seems to only accept some URLs, works with base URL of the world of warcraft websites (wow-europe.com, worldofwarcraft.com, etc).


----
== Parameters ==
;''Returns''
=== Arguments ===
* URL (string) - URL of the website to open. Seems to only accept some URLs, works with base URL of the world of Warcraft websites, like wow-europe.com, worldofwarcraft.com, etc....


:;nil
=== Returns ===
: none


----
== Example ==
;''Example''
LaunchURL("http://www.worldofwarcraft.com")
<nowiki> LaunchURL("http://www.worldofwarcraft.com");</nowiki>


;''Result''
;Result
Navigates a new web browser window to http://www.worldofwarcraft.com
Navigates a new web browser window to http://www.worldofwarcraft.com


----
== Notes ==
;''Description''
* This function still exists inside the login Lua environment, however not in the addon environment.
 
* Removed in patch 1.10.0
: Launches an external web browser and navigates to the URL provided.
----
 
;''Possible Exploits?''
 
As in 1.8.4(or earlier ) It also seams to work to navigate to "www.wow-europe.com/wow.php/argument/variabel".<br>
You can't use numbers in the string only aplhabetic charaters , "/" and "-".<br>
It also open the webpage in your default browser. Not only MSIE.<br>
This can be use to communicate with other programs.<br>
Just create a program and register it as the default browser.<br>
----
{{Template:WoW API}}
[[Category:API Functions|LaunchURL]]
[[Category:API System Functions|LaunchURL]]

Latest revision as of 04:46, 15 August 2023

WoW API < LaunchURL

Launches an external web browser and navigates to the URL provided.

LaunchURL("url")

Parameters[edit]

Arguments[edit]

  • URL (string) - URL of the website to open. Seems to only accept some URLs, works with base URL of the world of Warcraft websites, like wow-europe.com, worldofwarcraft.com, etc....

Returns[edit]

none

Example[edit]

LaunchURL("http://www.worldofwarcraft.com")
Result

Navigates a new web browser window to http://www.worldofwarcraft.com

Notes[edit]

  • This function still exists inside the login Lua environment, however not in the addon environment.
  • Removed in patch 1.10.0