Thread Tools Display Modes
Prev Previous Post   Next Post Next
07/30/22, 08:44 AM   #1
pithka
AddOn Author - Click to view addons
Join Date: Jan 2021
Posts: 5
Weird Behavior - ZO_LinkHandler_OnLinkMouseUp

I'm trying to make guild links clickable in my addon. Generating a guild link is pretty easy.
  • GetGuildRecruitmentLink(guildId)

Getting a guildId is easy, simply generate one in game and then copy/paste it into a text editor.
  • |H1:guild:694135|hHard Dungeoneers|h

Then automating a link click is pretty easy
  • ZO_LinkHandler_OnLinkMouseUp(link, button, control)

So you put it all together and the strangest thing happens.
  • ZO_LinkHandler_OnLinkMouseUp(GetGuildRecruitmentLink(575137), MOUSE_BUTTON_INDEX_LEFT)

This will work if you're ALREADY IN THE GUILD, but it will not work if you don't belong to the guild. Which is the exact opposite behavior than you'd want for a guild link. I really can't figure this one out. Any ideas?

Last edited by pithka : 07/30/22 at 09:27 AM.
  Reply With Quote
 

ESOUI » Developer Discussions » General Authoring Discussion » Weird Behavior - ZO_LinkHandler_OnLinkMouseUp


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