I am sure there is a simple /script command that will do that I know you can do a /click framebuttonname but I have been using the Multiboxing V2 mod it does it for me. I know the mod automation does it too.
*edit* gosh I just read what I typed... I need to go back to school, talk about poor writing.........
Connect With Us