View Single Post
06-30-17, 07:42 AM   #2
Xardir
A Kobold Labourer
Join Date: Jun 2017
Posts: 1
Do you mean something like this?
Code:
/script print(GetIgnoreName(GetSelectedIgnore()));
If you are able to copy text out of the chatbox, you can use this script. Just select a player on your ignorelist and use this script.

EDIT:
i wrote a very short addon:

1. Select ignored player
2. Type "/igname get" or "/ign get"
3. Select the name in the EditBox and copy it with Ctrl + C



main.lua
Lua Code:
  1. SLASH_IGNAME1, SLASH_IGNAME2 = '/igname', '/ign';
  2. local function handler(msg, editbox)
  3.     if msg == 'get' then
  4.         StaticPopup_Show("IGNORE_NAME")
  5.     end
  6. end
  7. SlashCmdList["IGNAME"] = handler;
  8.  
  9.  
  10. StaticPopupDialogs["IGNORE_NAME"] = {
  11.     text = "",
  12.     button1 = "Close",
  13.     OnShow = function (self, data)
  14.     self.editBox:SetText(GetIgnoreName(GetSelectedIgnore()))
  15.     end,
  16.     timeout = 0,
  17.     whileDead = true,
  18.     hideOnEscape = true,
  19.     preferredIndex = 3,
  20.     hasEditBox = true
  21. }

GetIGName.toc
Code:
## Interface: 70200
## Title: GetIGName
## Notes: Puts the name of selected ignored player in an editbox.
## Author: Xardir-Blackmoore
## Version: v0.1

main.lua

Last edited by Xardir : 06-30-17 at 09:14 AM.
  Reply With Quote