This site makes extensive use of JavaScript.
Please enable JavaScript in your browser.
Live
PTR
10.2.7
PTR
10.2.6
Beta
LF macro to switch between guild bank tabs
Post Reply
Return to board index
Post by
Toldu
As the title says, I'd like to create a macro that will switch to tab 1, tab 2, etc. as a /castsequence if possible.
Even better, if it can made into a /castsequence with /in commands between them (30 or 60 seconds each probably) that would be great.
Slightly off-topic, but what's the longest you can delay with each /in command? And yes, I know you can't use it for casting or such.
Post by
Wildhorn
Maybe tell us what you want to do? Because just "want to switch tab" is not enough. Switch for what? display it? scan it? check something in it?
It wont be a /castsequence. It require API scripting and /in wont works.
Post by
Toldu
There are a few guild sorting addons that I've found but none of them will switch between tabs while sorting the bank or sort without having each tab open in succession. I was hoping to run a macro or script while running the sorter so I could afk while it's sorting.
Post by
Wildhorn
local numTabs = GetNumGuildBankTabs()
while numTabs > 0 do
SetCurrentGuildBankTab(numTabs)
-- Insert your sorting code here
numTabs = numTabs - 1
end
if you want it macro style
/run local numTabs = GetNumGuildBankTabs();while numTabs > 0 do SetCurrentGuildBankTab(numTabs); Insert your sorting code here; numTabs = numTabs - 1;end
Post by
Toldu
Um, hate to look like a programming newb, but I am. I know very little of anything outside the conventional 255 character macros. Where would I even put either of those lines of code? I'm using
BankStack
but I'm willing to try another addon if it isn't compatible with your code there.
Post by
Toldu
I used.../run print( GetMouseFocus():GetName() ) which I just refound via another thread. This gives the buttons in question names of "GuildBankTab1Button" through "GuildBankTab6Button". The /click command works with these, although /cast does not. On a long shot, I decided to try /clicksequence, but that doesn't work either.
So, I
could
make 6 separate macros from 1-6 and that would keep me from having to actually find the little button to click on, but that still won't let me afk for 10 minutes while it's sorting all 6 tabs.
Hopefully something I learned tonight will help you find a complete solve to this issue.
Post by
Wildhorn
Oh, I know how to fix your thing. But I am just too lazy to download the addon you use, find where in the code is the sorting stuff, modify the code, etc...
So if you want to do it yourself, go in your addon foldr, open the .lua, find the sorting code, and add the loop i posted, save the file, reloadui then test.
Post by
HighFive
As far as I can see, "/sort guild" already does sort your whole guild bank.
What exactly do you want to do? Change the tabs while the sorting takes place? Sort each tab individually?
Be more specific in what and not how you think it could be achieved.
Post by
Toldu
Because as far as I can see, "/sort guild" already does sort your whole guild bank.
What exactly do you want to do? Change the tabs while the sorting takes place? Sort each tab individually?
Be more specific in what and not how you think it could be achieved.
none of them will switch between tabs while sorting the bank or sort without having each tab open in successionThe issue with BankStack is that when you "/sort guild" it
will
sort all tabs of your guild bank, but you have to manually switch to the next tab when it's done with the one it's working on or it just pauses. Once you change to the next tab then it will start sorting again. Also, for whatever reason, it isn't ever done after just 1 pass through the tabs. It will easily take 5 or more passes through the tabs before it "achieves perfection".
Post by
HighFive
Oh, I see. I have a couple of hunches but I won't post anything before testing it before (in at least a day from now).
In case anyone else wants to do it, I the problem seems to be, the addon never queries the tab items (iirc they are queried one by one, for example when you open a new tab, rather than all at once when you open the bank). It instead seems to wait (huh?) when it doesn't get returns from CursorHasItem.
Post Reply
You are not logged in. Please
log in
to post a reply or
register
if you don't already have an account.