Thread Tools Display Modes
04/27/15, 09:27 AM   #1
JohnnyKing94
 
JohnnyKing94's Avatar
Join Date: Mar 2015
Posts: 45
Create openable link

Hi everybody, i'm trying to inlclude an openable url on my addon and i tested with the following api without succes

First case
Code:
 d("|H1:url:www.google.it|hil mio testo|h")
Second case
Code:
 d(ZO_LinkHandler_CreateURLLink("http://www.google.it","ciao"))
In both case i got: "TooltipControl: Attempt to set invalid or malformed link"

I also tried with the function "ConfirmOpenURL", still no success!!!! Am i missing something?
  Reply With Quote
04/27/15, 09:52 AM   #2
Baertram
Super Moderator
 
Baertram's Avatar
WoWInterface Super Mod
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 5,016
Afaik we can't work with direkt URLs in the game.
Just write the links as normal string like www.google.it and implement that:
-if people click on it the text will be copied to CHAT_SYSTEM.textEntry:SetText("www.google.it") and afterwards mark all text by using CHAT_SYSTEM.textEntry:GetEditControl():SelectAll()

So ppl can just click the link and afterwards press CTRL+C to copy it to the clipboard.
  Reply With Quote
04/27/15, 09:56 AM   #3
JohnnyKing94
 
JohnnyKing94's Avatar
Join Date: Mar 2015
Posts: 45
Originally Posted by Baertram View Post
Afaik we can't work with direkt URLs in the game.
Just write the links as normal string like www.google.it and implement that:
-if people click on it the text will be copied to CHAT_SYSTEM.textEntry:SetText("www.google.it") and afterwards mark all text by using CHAT_SYSTEM.textEntry:GetEditControl():SelectAll()

So ppl can just click the link and afterwards press CTRL+C to copy it to the clipboard.
so is there nothing like the function used by the game that opens the links and prompting messages like "your game wil be alt-tabbed etc"???
  Reply With Quote
04/27/15, 09:58 AM   #4
Fyrakin
 
Fyrakin's Avatar
AddOn Author - Click to view addons
Join Date: Apr 2014
Posts: 129
This is forbidden.
  Reply With Quote
04/27/15, 10:13 AM   #5
Ayantir
 
Ayantir's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2014
Posts: 1,019
You can't, function is not accessible
It's only available on /pregame and /internalingame
  Reply With Quote
04/27/15, 02:05 PM   #6
JohnnyKing94
 
JohnnyKing94's Avatar
Join Date: Mar 2015
Posts: 45
is it possible to reproduce it somehow?
  Reply With Quote
04/27/15, 02:18 PM   #7
Ayantir
 
Ayantir's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2014
Posts: 1,019
No, you can't.

The function which open your system browser is not accessible
  Reply With Quote
04/27/15, 02:46 PM   #8
QuadroTony
Banned
AddOn Author - Click to view addons
Join Date: Apr 2014
Posts: 828
question like this, people, better ask on ownedcore

this is like oficcial addon'a site - topics about smthing restricted always strongly prohibited
  Reply With Quote
04/27/15, 03:49 PM   #9
Baertram
Super Moderator
 
Baertram's Avatar
WoWInterface Super Mod
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 5,016
Originally Posted by JohnnyKing94 View Post
is it possible to reproduce it somehow?
Seriously:
I don't want to open my browser from withing this game by clicking any stuff.
And I bet many other people don't liek this kind of "automatism" neither, as it is always a question of security.

Use the copy to the chat text field and let people manually copy it by CTR+C to their clipboard.
This is the best comfort you can have with addons. Otherwise just write a text in your addon and let people manually read and copy it by paper and pencil (I heard about this one some years ago. Seemed to be a REAL BIG thing at this time and trained the brain o0 )
  Reply With Quote
04/27/15, 04:46 PM   #10
JohnnyKing94
 
JohnnyKing94's Avatar
Join Date: Mar 2015
Posts: 45
Originally Posted by Baertram View Post
Seriously:
I don't want to open my browser from withing this game by clicking any stuff.
And I bet many other people don't liek this kind of "automatism" neither, as it is always a question of security.

Use the copy to the chat text field and let people manually copy it by CTR+C to their clipboard.
This is the best comfort you can have with addons. Otherwise just write a text in your addon and let people manually read and copy it by paper and pencil (I heard about this one some years ago. Seemed to be a REAL BIG thing at this time and trained the brain o0 )
I've already done the chat text field copyable, but the OpenLinkInBrowser was more cool and i simply wanted to have some tips (offcore ) if someone did it or didn't
Ok i get it, it's the section of the official support
(pm me if you have any tips to give)
  Reply With Quote

ESOUI » Developer Discussions » General Authoring Discussion » Create openable link


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off