Advertisement
3nriched

super fast TSM WOW AH AUTO POSTER

Dec 25th, 2016
283
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ;Program Name: AhTSMAutoPost.ahk by [email protected]
  2. ;Date: 12/21/2016
  3. ;Purpose: ;WoW mailbox to auctioneer and post auctions, then repeat until stopped.
  4.  
  5.  
  6. ;----------------MUST READ AND FOLLOW DIRECTIONS!!!!-----------------
  7. ;1 must have autohotkey installed
  8. ;2 must be standing DIRECTLY in front of mailbox near the auctioneer robot in northrend dalaran
  9. ;3 must have numlock ON
  10. ;4 must goto ingame menu, interface, mouse, check click-to-move
  11. ;5 must have ingame resolution set to 1920x1080 (wide) - fullscreen mode
  12. ;6 must have ingame menu, key bindings, targeting, set interact with target bound to the key 'k'
  13. ;7 must have a macro with the following code in the '9' spell box location to target auctioneer
  14. ; /target Brassbolt
  15. ;8 must goto TSM ingame settings, options, module options, auction house tab settings, default tab set to auctioning
  16.  
  17. ;----------------TSM AH MACROS - READ THIS http://www.ownedcore.com/forums/world-of-warcraft/world-of-warcraft-general/wow-ui-macros-talent-specs/515041-tsm-how-make-tsm-buttons-macroable-start-post-scan-start-cancel-scan-etc.html
  18. ;------------------------------MUST setup the following tsm macros
  19. ;9 must have a macro with the following code in the '0' spell box location to push quick post btn
  20. ; /click TSMQuickPostButton
  21. ;10 must have a macro with the following code in the '-' spell box location to push quick post btn
  22. ; /click TSMOpenMailButton  
  23.  
  24.  
  25. ;now you can open the AhTSMAutoPost.ahk and it should load a small icon in corner of mini taskbar etc
  26. ;when you are in the game and at mailbox ready to start push the numpad 3 to begin. Then have fun being afk!
  27.  
  28.  
  29. #MaxThreadsperHotKey 10   ;this helps from clogging
  30. Numpad3::                  ;this is the numpad #3 key that starts n stops script
  31.                            ;if u press numpad 3 to turn off u must wait for it to reach the mailbox again to stop
  32.                            
  33. toggle := !toggle           ;needed for keybind/script start stop etc
  34.  
  35. While toggle              ;where the magic happens again and again
  36. {
  37.     Sleep 403             ;waits a second before starting
  38.     MouseMove 954,595,5   ;moves mouse to center mailbox area
  39.     Sleep 321             ;waits a second
  40.     Send, {RButton}        ;right clicks the mailbox (hopefully)
  41.    
  42.     if !toggle
  43.         break
  44.    
  45.     Sleep 852                 ;waits a sec
  46.    
  47.     ;MouseMove 242,553,50       ;moves mouse to open/receive mail
  48.     ;Sleep 1002                 ;waits a sec
  49.     ;Send, {LButton}            ;left clicks btn and receives mail
  50.     Send, {-}                   ;the macro key being used with TSMOpenMailButton in /TradeSkillMaster_Mailing/Modules/Inbox.lua
  51.     Sleep 125032                ;waits about 45seconds before going to auctioneer step
  52.    
  53.     if !toggle
  54.         break
  55.    
  56.     Send, {9}                  ;targets auctioneer
  57.     Sleep 774                 ;waits a sec
  58.     Send, {k}                  ;presses interact btn and walks to auctioneer  
  59.     Sleep 2311
  60.     Send, {Space}              ;jumps to look like real player
  61.     Sleep 832
  62.     Send, {Space}             ;jumps to look like real player
  63.     Sleep 891
  64.     Send, {Space}              ;jumps to look like real player
  65.     Sleep 9791                ;waits for player to reach auctioneer (no rush)
  66.     Send, {k}                  ;presses interact again because sometimes first time wont do it
  67.     Sleep 891                 ;lets player catch his breathe..
  68.    
  69.     if !toggle
  70.         break
  71.    
  72.     ;--------------------------NON MACRO OPTIONS-------------------------
  73.     ;REMOVE the SEMICOLON from next line if you post using groups (add SEMICOLON to other option)
  74.     ;MouseMove 147,574,50          ;moves mouse to START POST SCAN
  75.    
  76.     ;REMOVE the SEMICOLON from next line if you use quick post from bags option (add SEMICOLON to other option)
  77.     ;MouseMove 821,476,50          ;moves mouse to QUICK POST FROM BAGS
  78.    
  79.     ;ADD the SEMICOLON to both above MouseMove lines above if you use the TSM MACROS option
  80.  
  81.    
  82.     ;Sleep 1362                    ;waits a sec
  83.     ;Send, {LButton}               ;clicks either start post scan btn or quick post from bags btn
  84.     Send, {0}                     ;hits macro key for quick post from bags btn
  85.     Sleep 4324                    ;waits for items to start to query
  86.    
  87.     if !toggle
  88.         break
  89.    
  90.     MouseMove 771,724,10      ;moves mouse to confirm post btn -- use this also with wheel poster option
  91.     ;Sleep 2016                ;waits a sec
  92.    
  93.     Loop, 1900                 ;will quickly POST items
  94.     {
  95.    
  96.     ;Send, {LButton}           ;clicks post btn
  97.     ;Send, {8}                  ;hits macro key to post item
  98.     Send, {Ctrl DOWN}           ;tsm wheel up quick poster key
  99.     Send, {Alt DOWN}            ;tsm wheel up quick poster key
  100.     Send, {WheelUp DOWN}
  101.     Sleep 38                 ;wait time between each click
  102.  
  103.     if !toggle
  104.         break
  105.     }
  106.    
  107.     Send, {Ctrl UP}
  108.     Send, {Alt UP}
  109.     Send, {WheelUP UP}
  110.     Send, {Esc}         ;closes ah panel
  111.     Sleep 731           ;waits a sec
  112.    
  113.     if !toggle
  114.         break
  115.        
  116.     Send, {s DOWN}         ;walks backwards to the mailbox corner(hopefully)
  117.     Sleep 1311
  118.     Send, {Space}          ;jumps to look like real player
  119.     Sleep 832
  120.     Send, {Space}          ;jumps to look like real player
  121.     Sleep 891
  122.     Send, {Space}          ;jumps to look like real player
  123.     Sleep 891
  124.     Send, {Space}          ;jumps to look like real player
  125.     Sleep 5031            ;time for walk to mailbox
  126.     Send, {s UP}           ;stops the backwards walking madness
  127.    
  128.     ;THEN REPEATS
  129.  
  130.         if !toggle
  131.         break
  132. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement