• Visit Rebornbuddy
  • [Plugin] TurboMailer

    Discussion in 'Archives' started by seafunk, Jan 19, 2012.

    1. seafunk

      seafunk New Member

      Joined:
      Feb 23, 2011
      Messages:
      273
      Likes Received:
      4
      Trophy Points:
      0
      This will reload the ui whenever there is invisible mail on the server and your visible mail count gets down to 1. If there are more messages than 1 it will not be triggered, Use with pb should be ideal since pb is a lot more reliable in properly looting mails and deleting the empty ones than addons like postal.

      It was about time I got this to work like it is supposed to. Enjoy!
       

      Attached Files:

      Last edited: Mar 6, 2012
      lathrodectus and no1knowsy like this.
    2. wownerds

      wownerds New Member

      Joined:
      Feb 15, 2011
      Messages:
      1,385
      Likes Received:
      30
      Trophy Points:
      0
      Did I miss the attachment? ;)
       
    3. seafunk

      seafunk New Member

      Joined:
      Feb 23, 2011
      Messages:
      273
      Likes Received:
      4
      Trophy Points:
      0
      Nay I just forgot it.
       
    4. no1knowsy

      no1knowsy Well-Known Member

      Joined:
      Feb 28, 2010
      Messages:
      3,927
      Likes Received:
      57
      Trophy Points:
      48
      So it will refresh received in-game mails once there is 1 left in mailbox?

      Awesomesauce :)
      Panda hugs to you.
       
    5. AutomaticCoding

      AutomaticCoding Banned

      Joined:
      Dec 20, 2011
      Messages:
      1,091
      Likes Received:
      1
      Trophy Points:
      0
      If(MailCount == 1) {Lua.DoString("RunMacroText(\"/reload\")");}

      Y U NO HUG ME!?! I did it in a single line.
       
    6. no1knowsy

      no1knowsy Well-Known Member

      Joined:
      Feb 28, 2010
      Messages:
      3,927
      Likes Received:
      57
      Trophy Points:
      48
      Hehe.
      /Hug
      But no petting.
       
    7. seafunk

      seafunk New Member

      Joined:
      Feb 23, 2011
      Messages:
      273
      Likes Received:
      4
      Trophy Points:
      0
      I might not have done it in the smartest way because I used a hundred workarounds while trying to google-learn both lua's and c#'s syntax, but I'm pretty sure the final plugin would contain more than 1 line... I have never learned programming in a structured fashion and never communicated much on it either, but I've learned that the central idea is usually imaginable in a single line. Mind you I'm just talking out of my ass, and I do actually bow down humbly before your skills, however much irony could be read into that sentence.
       
    8. lathrodectus

      lathrodectus Member

      Joined:
      Sep 13, 2011
      Messages:
      403
      Likes Received:
      5
      Trophy Points:
      18
      What i always wanted !!
      Thanks a lot dude.
       
    9. AutomaticCoding

      AutomaticCoding Banned

      Joined:
      Dec 20, 2011
      Messages:
      1,091
      Likes Received:
      1
      Trophy Points:
      0
      Every program in the world could be written on a single line. From:

      public class myClass {
      public static void main(String[] args) {
      for(int i = 0; i < 100; i++) {
      System.out.println(i);
      }
      }
      }

      To:
      public class myClass {public static void main(String[] args) {for(int i = 0; i < 100; i++) {System.out.println(i);}}}

      Same result, a lot smaller, a lot harder to read
       
    10. seVen

      seVen New Member

      Joined:
      Jan 31, 2010
      Messages:
      589
      Likes Received:
      20
      Trophy Points:
      0

      the answer to life, the universe and everything == 42?
       
    11. seafunk

      seafunk New Member

      Joined:
      Feb 23, 2011
      Messages:
      273
      Likes Received:
      4
      Trophy Points:
      0
      You sure have named a valid point there! :D
       
    12. Martinescu

      Martinescu New Member

      Joined:
      May 13, 2011
      Messages:
      24
      Likes Received:
      0
      Trophy Points:
      1
      Hi, sounds interesting. Can someone explain how to use this? PB with GetMail action or something? I was trying some configuration and nothing. And need or not TSM? Thanks.
       
    13. seafunk

      seafunk New Member

      Joined:
      Feb 23, 2011
      Messages:
      273
      Likes Received:
      4
      Trophy Points:
      0
      Just move to HB's plugin folder. Then get all mail with PB's internal routine.
       
    14. lexase

      lexase New Member

      Joined:
      Feb 8, 2011
      Messages:
      68
      Likes Received:
      0
      Trophy Points:
      0
      don't work every time
       
    15. seafunk

      seafunk New Member

      Joined:
      Feb 23, 2011
      Messages:
      273
      Likes Received:
      4
      Trophy Points:
      0
      i just rewrote this by properly attaching it to mailbox events, but it seems blizz has blocked the reload action somehow. an alternative would be to send keystrokes, but im afraid keypress doesnt always send a single stroke... :(

      sendmessage would work fine, but i have no idea how to access the wow process id through hb... any help?
       
    16. Inrego

      Inrego New Member Buddy Store Developer

      Joined:
      Feb 7, 2010
      Messages:
      2,765
      Likes Received:
      71
      Trophy Points:
      0
      Personally, I'd be using this:
      PHP:
      Lua.DoString("CheckInbox()");
      And I believe the reason why it sometimes doesn't work, is because this is throttled server side by Blizzard. If you use Postal, then you can see a timer on how long until you can refresh the mailbox when you close it.
      For example if you have more mails (which has not yet been loaded into mailbox), then when you close the mailbox frame, Postal will write in your chat how long until new mails will appear. I believe this to be a timer of this throttle, since the timers were matching quite good with my own experience of when I could call CheckInbox()

      I don't know if CheckInbox() and /reload are the same, as I do not know of /reload (what does it do, exactly? - ah, reloadui. And here I've been typing /console reloadui every single time >_>)

      Anyway - afaik reloading UI will break a few things in PB (I'm not sure), plus it improves the risk of HB crash?
       
      Last edited: Mar 5, 2012
    17. seafunk

      seafunk New Member

      Joined:
      Feb 23, 2011
      Messages:
      273
      Likes Received:
      4
      Trophy Points:
      0
      uppd a new version, written from scratch, should be a lot more stable now, but youll have to put a reload macro on button 1.
       
    18. Inrego

      Inrego New Member Buddy Store Developer

      Joined:
      Feb 7, 2010
      Messages:
      2,765
      Likes Received:
      71
      Trophy Points:
      0
      That's a bummer.. Have you tried
      PHP:
      Lua.DoString("ReloadUI()");
      ?

      EDIT: Ah wait, it does require a hardware event :/
       
      Last edited: Mar 6, 2012
    19. Treuben

      Treuben Member

      Joined:
      Jan 8, 2012
      Messages:
      337
      Likes Received:
      0
      Trophy Points:
      16
      Can any1 tell me, what this plugin do and for what it is good for?
       
    20. seafunk

      seafunk New Member

      Joined:
      Feb 23, 2011
      Messages:
      273
      Likes Received:
      4
      Trophy Points:
      0
      itll reload the ui when there arent anymore visible mails

      @inrego
      thanks for the advice, that hasnt been working for a while i think, but sendmacrotext never required a hardware event until now, very recently after i upped the first version of this plugin lol... go figure.

      an alternative that i could easily get to work would be using sendmessages. id like to find away to (directly) get the mainwindowhandle or at least the process id of the respective wow process without having to enumerate all windows or read hb's mainwindowtitle. there should be a variable with the processid stored in it, but i havent been able to figure out what its called lol.

      wow never tried to detect the sender of sendmessages before and eventhough thats easily done i doubt theyre going to. i could just do sth like: enter, /, r, e, l, o, a, d, enter. not sure if the parameters will change with different regional settings and all, but i dont think so. i usually just spy on the window and copy the parameters.
       

    Share This Page