Thread Tools Display Modes
02-10-09, 02:04 AM   #1
wownow1
A Murloc Raider
Join Date: Feb 2009
Posts: 5
Mouse over macro... help meh!

I need some help for a macro. What I'm trying to do is a single button for mouse over = focus and if mouse over does not exsist, current target = focus. Can anyone help?
  Reply With Quote
02-10-09, 10:10 AM   #2
Seerah
Fishing Trainer
 
Seerah's Avatar
WoWInterface Super Mod
Featured
Join Date: Oct 2006
Posts: 10,860
try this (untested)

/focus [target=mouseover][]
__________________
"You'd be surprised how many people violate this simple principle every day of their lives and try to fit square pegs into round holes, ignoring the clear reality that Things Are As They Are." -Benjamin Hoff, The Tao of Pooh

  Reply With Quote
02-10-09, 02:04 PM   #3
wownow1
A Murloc Raider
Join Date: Feb 2009
Posts: 5
I have that part and that wasnt my question. I was saying this in regards to the whole macro. The second part is whats confuzing.
  Reply With Quote
02-10-09, 02:13 PM   #4
Akryn
A Firelord
AddOn Author - Click to view addons
Join Date: Mar 2008
Posts: 479
/focus [target=mouseover, exists][]
  Reply With Quote
02-10-09, 02:48 PM   #5
wownow1
A Murloc Raider
Join Date: Feb 2009
Posts: 5
Originally Posted by Akryn View Post
/focus [target=mouseover, exists][]
I have tryed that, this is what I have so far.

/focus [target=mouse over, exists]

This part is where I need the help. If I currently have a mouse over then I will have a focus. If I dont have a mouse over then I want my current target to be focus. So somthing within this following marco needs to change.

/focus [target=target]
  Reply With Quote
02-10-09, 02:50 PM   #6
Akryn
A Firelord
AddOn Author - Click to view addons
Join Date: Mar 2008
Posts: 479
Originally Posted by wownow1 View Post
/focus [target=mouseover, exists]
that is not the same as what i posted, the [] is important and if you use exactly what i posted it will work.
  Reply With Quote
02-10-09, 04:55 PM   #7
Seerah
Fishing Trainer
 
Seerah's Avatar
WoWInterface Super Mod
Featured
Join Date: Oct 2006
Posts: 10,860
ah, yep, forgot the exists part. And, yes. That's why we had the [] in there. You need to try it verbatim before saying it doesn't work.
__________________
"You'd be surprised how many people violate this simple principle every day of their lives and try to fit square pegs into round holes, ignoring the clear reality that Things Are As They Are." -Benjamin Hoff, The Tao of Pooh

  Reply With Quote
02-10-09, 07:06 PM   #8
wownow1
A Murloc Raider
Join Date: Feb 2009
Posts: 5
yah my b.. what does the [] do?
  Reply With Quote
02-10-09, 08:59 PM   #9
Seerah
Fishing Trainer
 
Seerah's Avatar
WoWInterface Super Mod
Featured
Join Date: Oct 2006
Posts: 10,860
tells it to still use the macro even if the other conditionals are not met
__________________
"You'd be surprised how many people violate this simple principle every day of their lives and try to fit square pegs into round holes, ignoring the clear reality that Things Are As They Are." -Benjamin Hoff, The Tao of Pooh

  Reply With Quote
02-10-09, 11:34 PM   #10
wownow1
A Murloc Raider
Join Date: Feb 2009
Posts: 5
/focus [target=mouseover, exists][], [target=target]

this works. thanks for the []!!!

Last edited by wownow1 : 02-10-09 at 11:52 PM.
  Reply With Quote
02-10-09, 11:50 PM   #11
Akryn
A Firelord
AddOn Author - Click to view addons
Join Date: Mar 2008
Posts: 479
Originally Posted by wownow1 View Post
/focus [target=target]
That will focus your target no matter what. You want to do *just* /focus [target=mouseover, exists][]

If you really want to be more complicated, try this...

/focus [target=mouseover, exists, nodead][exists, nodead][target=focus][target=player]
/run if not UnitExists("focus") then ChatFrame1:AddMessage("ERROR:Copy/Paste failed due to user error, please press keys randomly until it works.") end
  Reply With Quote
02-11-09, 09:23 AM   #12
Seerah
Fishing Trainer
 
Seerah's Avatar
WoWInterface Super Mod
Featured
Join Date: Oct 2006
Posts: 10,860
You do not need that extra ", [target=target]" at the end. The [] already does that for you as was already mentioned. And a comma (,) is not a valid separator for conditionals (what's in the brackets) anyway (why we didn't use them above).

For further reference, please see this sticky thread from the UI & Macros forum: http://forums.worldofwarcraft.com/th...81820910&sid=1
__________________
"You'd be surprised how many people violate this simple principle every day of their lives and try to fit square pegs into round holes, ignoring the clear reality that Things Are As They Are." -Benjamin Hoff, The Tao of Pooh

  Reply With Quote

WoWInterface » AddOns, Compilations, Macros » AddOn Help/Support » Mouse over macro... help meh!


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