Thread Tools Display Modes
09-28-18, 12:21 PM   #1
joeyo
An Aku'mai Servant
Join Date: Jan 2012
Posts: 31
click through player/target/minimap frame macro help

so i have this toggle switch that i use to make my frames clickable or clickthrough

/run local a = not PlayerFrame:IsMouseEnabled() PlayerFrame:EnableMouse(a) TargetFrame:EnableMouse(a) MinimapCluster:EnableMouse(a) Minimap:EnableMouse(a)

i was curious is there a way to make it so that if i hold shift all 3 become clickable and then if i release shift everything becomes click through again?
  Reply With Quote
09-28-18, 01:50 PM   #2
Kanegasi
A Molten Giant
 
Kanegasi's Avatar
AddOn Author - Click to view addons
Join Date: Apr 2007
Posts: 666
Go to https://addon.bool.no and create an addon with this code:

Lua Code:
  1. local f = CreateFrame("frame")
  2. f:SetScript("OnEvent", function()
  3.     local shift = IsShiftKeyDown()
  4.     PlayerFrame:EnableMouse(shift)
  5.     TargetFrame:EnableMouse(shift)
  6.     MinimapCluster:EnableMouse(shift)
  7.     Minimap:EnableMouse(shift)
  8. end)
  9. f:RegisterEvent("MODIFIER_STATE_CHANGED")
  Reply With Quote
09-28-18, 07:53 PM   #3
joeyo
An Aku'mai Servant
Join Date: Jan 2012
Posts: 31
Originally Posted by Kanegasi View Post
Go to https://addon.bool.no and create an addon with this code:

Lua Code:
  1. local f = CreateFrame("frame")
  2. f:SetScript("OnEvent", function()
  3.     local shift = IsShiftKeyDown()
  4.     PlayerFrame:EnableMouse(shift)
  5.     TargetFrame:EnableMouse(shift)
  6.     MinimapCluster:EnableMouse(shift)
  7.     Minimap:EnableMouse(shift)
  8. end)
  9. f:RegisterEvent("MODIFIER_STATE_CHANGED")
works perfect thankyou so much for the quick response

Last edited by joeyo : 09-28-18 at 08:08 PM.
  Reply With Quote

WoWInterface » AddOns, Compilations, Macros » AddOn Help/Support » click through player/target/minimap frame macro help

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