WoWInterface

WoWInterface (https://www.wowinterface.com/forums/index.php)
-   AddOn Help/Support (https://www.wowinterface.com/forums/forumdisplay.php?f=3)
-   -   A Simple Problem (https://www.wowinterface.com/forums/showthread.php?t=57553)

WorstedSet 09-27-19 12:44 AM

A Simple Problem
 
Hello!
I'll just get right into it.

I used to have a script a few years ago (that I had found searching through google) that, when I ran it, it would get the target's name and paste it in a chat window. After pasting it in the chat window, I could simply highlight all, then copy. One button to paste the targets name in the chat window (using the script), and two more buttons to highlight all and copy. I'd simply press 3 buttons and I have my targets name copied.
I forgot how the script worked, it's been lost and I cant find it in google anymore. I'd appreciate if anyone of you Lua techies could tell me how to do that again!

And I don't want a workaround, it was useful because (In my Arena grinding days) it allowed me to be able to quickly copy and paste my arena partners and enemies into macros used for targeting them (all in less then a minute). Thanks in advance!

erispope 09-27-19 05:04 AM

Code:

/run local e=DEFAULT_CHAT_FRAME.editBox ChatEdit_ActivateChat(e) e.setText=1 e.text=UnitName("target")
Should work, barring big changes to chat.

Kanegasi 09-27-19 06:52 AM

Your arena enemies have macro targets.

Here's an example for 3v3:

Your party, from top to bottom on the frames:

/cast [@player] Spell
/cast [@party1] Spell
/cast [@party2] Spell

Your enemies, from top to bottom on the frames:

/cast [@arena1] Spell
/cast [@arena2] Spell
/cast [@arena3] Spell

WorstedSet 09-28-19 06:46 PM

Quote:

Originally Posted by erispope (Post 334012)
Code:

/run local e=DEFAULT_CHAT_FRAME.editBox ChatEdit_ActivateChat(e) e.setText=1 e.text=UnitName("target")
Should work, barring big changes to chat.

TYVM! Works perfectly :cool:


All times are GMT -6. The time now is 08:34 AM.

vBulletin © 2020, Jelsoft Enterprises Ltd
© 2004 - 2019 MMOUI