Thread Tools Display Modes
Prev Previous Post   Next Post Next
05-26-19, 02:03 PM   #1
neosharp
A Kobold Labourer
Join Date: May 2019
Posts: 1
Clicking Button Macro/Script

I am trying to automatically assign points to a specific stat when leveling on a private server. (they give you stat points to distribute to str/stam/ag/int/spirit as you wish)

They have a lot of spaghetti code in their modification so I am linking the useful parts. They have 10 buttons/frames that assign either more or less of a stat, Inc_Str and Dec_Str for example increases or decreases strength.

local l=CreateFrame(\"Button\",\"Inc_Str\",t,nil)l:SetSize(23,23)l:SetPoint(\"CENTER\",60,-2)l:EnableMouse(true)l:SetNormalTexture(\"Interface/BUTTONS/UI-SpellbookIcon-NextPage-Up\")

l:SetScript(\"OnMouseUp\",s)

/script StatFrame:Show() opens the window where you can allocate points to stats
/script Inc_Str:Hide() will hide the button I'm attempting to click
/click StatFrame_CloseButton closes the window

However every attempt I have made with /click Inc_Str or /script Inc_Str:Click() has failed and it is driving me insane!!!!!
 
 

WoWInterface » Developer Discussions » Lua/XML Help » Clicking Button Macro/Script


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