View Single Post
06-05-23, 07:47 AM   #1
Yukka
A Theradrim Guardian
 
Yukka's Avatar
AddOn Author - Click to view addons
Join Date: Feb 2020
Posts: 60
Macro that copy my target name (request) [solved]

Hello Can someone nice make a macro that copy my target name? I need my targets names for the titles of the videos I'm recording. But the thing is that I cant take the time to copy my target name during the combat while recording, that would be ugly on the video and it would make me killed. Also some names contains special characters and my keyboard doesnt have them (german, russian, chinese, etc). A quick macro would be great, a macro that copy without showing a confirmation on the screen if possible. Thanks in advance. Have a nice day.

EDIT: I found this, can someone please modify it so it just print the name in the chat, I dont need the health.
/run local u="target" if UnitExists(u) then print(format("%s has %s of %s hp (%.1f%%).",UnitName(u),BreakUpLargeNumbers(UnitHealth(u)),BreakUpLargeNumbers(UnitHealthMax(u)),UnitHealth(u)*100/UnitHealthMax(u))) end

Last edited by Yukka : 06-06-23 at 08:42 AM.
  Reply With Quote