Quantcast A Simple Problem - WoWInterface
Thread Tools Display Modes
09-27-19, 12:44 AM   #1
WorstedSet
A Defias Bandit
Join Date: Sep 2019
Posts: 2
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!
  Reply With Quote
09-27-19, 05:04 AM   #2
erispope
A Murloc Raider
Join Date: Sep 2019
Posts: 7
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.
  Reply With Quote
09-27-19, 06:52 AM   #3
Kanegasi
An Onyxian Warder
 
Kanegasi's Avatar
AddOn Author - Click to view addons
Join Date: Apr 2007
Posts: 395
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
  Reply With Quote
09-28-19, 06:46 PM   #4
WorstedSet
A Defias Bandit
Join Date: Sep 2019
Posts: 2
Originally Posted by erispope View Post
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
  Reply With Quote

WoWInterface » AddOns, Compilations, Macros » AddOn Help/Support » A Simple Problem

Thread Tools
Display Modes

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