<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.returnofreckoning.com/index.php?action=history&amp;feed=atom&amp;title=API%3AOpenURL</id>
	<title>API:OpenURL - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.returnofreckoning.com/index.php?action=history&amp;feed=atom&amp;title=API%3AOpenURL"/>
	<link rel="alternate" type="text/html" href="https://wiki.returnofreckoning.com/index.php?title=API:OpenURL&amp;action=history"/>
	<updated>2026-10-17T11:08:52Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.11</generator>
	<entry>
		<id>https://wiki.returnofreckoning.com/index.php?title=API:OpenURL&amp;diff=30618&amp;oldid=prev</id>
		<title>Maintenance script: UI Lua API import (WAR 1.4.8)</title>
		<link rel="alternate" type="text/html" href="https://wiki.returnofreckoning.com/index.php?title=API:OpenURL&amp;diff=30618&amp;oldid=prev"/>
		<updated>2026-10-16T19:47:26Z</updated>

		<summary type="html">&lt;p&gt;UI Lua API import (WAR 1.4.8)&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{LuaApi|group=Interface}}&lt;br /&gt;
Opens one of the client&amp;#039;s predefined web addresses in the default web browser.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
OpenURL(urlIndex)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Arguments ==&lt;br /&gt;
;urlIndex : &amp;lt;code&amp;gt;number&amp;lt;/code&amp;gt; – Index of the address in the client&amp;#039;s URL list. Use the &amp;lt;code&amp;gt;GameData.URLs&amp;lt;/code&amp;gt; values. Fractions are dropped.&lt;br /&gt;
&lt;br /&gt;
== Returns ==&lt;br /&gt;
Nothing.&lt;br /&gt;
&lt;br /&gt;
== Details ==&lt;br /&gt;
* The address is not passed from Lua: the index is looked up in the client&amp;#039;s built-in &amp;lt;code&amp;gt;URLs&amp;lt;/code&amp;gt; data list. An addon cannot open an arbitrary address with this function.&lt;br /&gt;
* An index outside the list gives an empty address, and nothing is opened.&lt;br /&gt;
* An address without a scheme gets &amp;lt;code&amp;gt;http&amp;lt;/code&amp;gt; added. An address with a scheme is opened only if the scheme is &amp;lt;code&amp;gt;http&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;https&amp;lt;/code&amp;gt; (case does not matter); anything else is not opened.&lt;br /&gt;
* The address is opened through the Windows shell with the &amp;quot;open&amp;quot; verb, which normally starts the default browser.&lt;br /&gt;
* No result is returned to Lua, so a script cannot tell whether a browser was started.&lt;br /&gt;
* The function needs at least one argument and only reads the last one.&lt;br /&gt;
&lt;br /&gt;
== Errors ==&lt;br /&gt;
None besides the generic &amp;#039;&amp;#039;Invalid Parameters&amp;#039;&amp;#039; message when the argument is missing or not a number.&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
From &amp;lt;code&amp;gt;ea_helpwindow/source/faqwindow.lua&amp;lt;/code&amp;gt;:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
OpenURL( GameData.URLs.URL_KNOWLEDGE_BASE )&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
From &amp;lt;code&amp;gt;interfacecore/source/transferpopupwindow.lua&amp;lt;/code&amp;gt;:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
OpenURL( GameData.URLs.URL_ACCOUNT_MANAGEMENT )&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* [[API:EA_Window_HelpGetFAQTopicList|EA_Window_HelpGetFAQTopicList]]&lt;/div&gt;</summary>
		<author><name>Maintenance script</name></author>
	</entry>
</feed>