Quantcast Clicking Button Macro/Script - WoWInterface
Thread Tools Display Modes
05-26-19, 02:03 PM   #1
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\")


/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!!!!!
05-26-19, 04:59 PM   #2
A Warpwood Thunder Caller
aallkkaa's Avatar
AddOn Author - Click to view addons
Join Date: Jun 2017
Posts: 96
05-27-19, 05:51 AM   #3
Fishing Trainer
Seerah's Avatar
WoWInterface Super Mod
Join Date: Oct 2006
Posts: 10,691
Discussion of Private Servers, in any manner other than theoretical, is completely against our rules. We are an Official Fan Site. We follow Blizzard's rules, on top of our own rules.

Threads requesting assistance with Private Servers get locked. Repeated postings get you banned.
"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


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

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