Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ;Creator: [email protected]
- ;Program Name: AhTSMAutoPost.ahk by [email protected]
- ;Date: 12/21/2016
- ;Purpose: ;WoW mailbox to auctioneer and post auctions, then repeat until stopped.
- ;----------------MUST READ AND FOLLOW DIRECTIONS!!!!-----------------
- ;1 must have autohotkey installed
- ;2 must be standing DIRECTLY in front of mailbox near the auctioneer robot in northrend dalaran
- ;3 must have numlock ON
- ;4 must goto ingame menu, interface, mouse, check click-to-move
- ;5 must have ingame resolution set to 1920x1080 (wide) - fullscreen mode
- ;6 must have ingame menu, key bindings, targeting, set interact with target bound to the key 'k'
- ;7 must have a macro with the following code in the '9' spell box location to target auctioneer
- ; /target Brassbolt
- ;8 must goto TSM ingame settings, options, module options, auction house tab settings, default tab set to auctioning
- ;----------------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
- ;------------------------------MUST setup the following tsm macros
- ;9 must have a macro with the following code in the '0' spell box location to push quick post btn
- ; /click TSMQuickPostButton
- ;10 must have a macro with the following code in the '-' spell box location to push quick post btn
- ; /click TSMOpenMailButton
- ;now you can open the AhTSMAutoPost.ahk and it should load a small icon in corner of mini taskbar etc
- ;when you are in the game and at mailbox ready to start push the numpad 3 to begin. Then have fun being afk!
- #MaxThreadsperHotKey 10 ;this helps from clogging
- Numpad3:: ;this is the numpad #3 key that starts n stops script
- ;if u press numpad 3 to turn off u must wait for it to reach the mailbox again to stop
- toggle := !toggle ;needed for keybind/script start stop etc
- While toggle ;where the magic happens again and again
- {
- Sleep 403 ;waits a second before starting
- MouseMove 954,595,5 ;moves mouse to center mailbox area
- Sleep 321 ;waits a second
- Send, {RButton} ;right clicks the mailbox (hopefully)
- if !toggle
- break
- Sleep 852 ;waits a sec
- ;MouseMove 242,553,50 ;moves mouse to open/receive mail
- ;Sleep 1002 ;waits a sec
- ;Send, {LButton} ;left clicks btn and receives mail
- Send, {-} ;the macro key being used with TSMOpenMailButton in /TradeSkillMaster_Mailing/Modules/Inbox.lua
- Sleep 125032 ;waits about 45seconds before going to auctioneer step
- if !toggle
- break
- Send, {9} ;targets auctioneer
- Sleep 774 ;waits a sec
- Send, {k} ;presses interact btn and walks to auctioneer
- Sleep 2311
- Send, {Space} ;jumps to look like real player
- Sleep 832
- Send, {Space} ;jumps to look like real player
- Sleep 891
- Send, {Space} ;jumps to look like real player
- Sleep 9791 ;waits for player to reach auctioneer (no rush)
- Send, {k} ;presses interact again because sometimes first time wont do it
- Sleep 891 ;lets player catch his breathe..
- if !toggle
- break
- ;--------------------------NON MACRO OPTIONS-------------------------
- ;REMOVE the SEMICOLON from next line if you post using groups (add SEMICOLON to other option)
- ;MouseMove 147,574,50 ;moves mouse to START POST SCAN
- ;REMOVE the SEMICOLON from next line if you use quick post from bags option (add SEMICOLON to other option)
- ;MouseMove 821,476,50 ;moves mouse to QUICK POST FROM BAGS
- ;ADD the SEMICOLON to both above MouseMove lines above if you use the TSM MACROS option
- ;Sleep 1362 ;waits a sec
- ;Send, {LButton} ;clicks either start post scan btn or quick post from bags btn
- Send, {0} ;hits macro key for quick post from bags btn
- Sleep 4324 ;waits for items to start to query
- if !toggle
- break
- MouseMove 771,724,10 ;moves mouse to confirm post btn -- use this also with wheel poster option
- ;Sleep 2016 ;waits a sec
- Loop, 1900 ;will quickly POST items
- {
- ;Send, {LButton} ;clicks post btn
- ;Send, {8} ;hits macro key to post item
- Send, {Ctrl DOWN} ;tsm wheel up quick poster key
- Send, {Alt DOWN} ;tsm wheel up quick poster key
- Send, {WheelUp DOWN}
- Sleep 38 ;wait time between each click
- if !toggle
- break
- }
- Send, {Ctrl UP}
- Send, {Alt UP}
- Send, {WheelUP UP}
- Send, {Esc} ;closes ah panel
- Sleep 731 ;waits a sec
- if !toggle
- break
- Send, {s DOWN} ;walks backwards to the mailbox corner(hopefully)
- Sleep 1311
- Send, {Space} ;jumps to look like real player
- Sleep 832
- Send, {Space} ;jumps to look like real player
- Sleep 891
- Send, {Space} ;jumps to look like real player
- Sleep 891
- Send, {Space} ;jumps to look like real player
- Sleep 5031 ;time for walk to mailbox
- Send, {s UP} ;stops the backwards walking madness
- ;THEN REPEATS
- if !toggle
- break
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement