View Single Post
12-15-06, 10:18 PM   #10
ferlus
A Defias Bandit
Join Date: Dec 2006
Posts: 3
can i pass the unit name to a macro or function?

I would like to shift left click on a person in my party frame and have clique run a custom macro or a script that would do the following.

/s I clicked on Ferlus while holding the shift key down.

Ferlus = the name of the unit I clicked on.

Some ideas i had were:
/script text = "I clicked on "..UnitName(this.unit).." while holding the shift key down."
/script SendChatMessage(text)

I get the following error:
[string "text= " I clicked on "..UnitName(this.unit).." while"]:1: Usage: UnitName("unit")
  Reply With Quote