Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Pause::TogglePOEItemScript() ;pause item parsing with the pause key (other macros remain). key bind enabled by default.
- ;^Escape::CloseScripts() ;Ctrl+Esc closes all running scripts specified by (and including) ItemInfo or TradeMacro.
- F1::invitePlayer()
- ^F1::soldOut()
- F2::tradeWith()
- F3::thankYou()
- ^F4::globalBad()
- ^F5::tradingMacro()
- F5::SendInput {Enter}/hideout{Enter} ; go to hideout with F5
- ^WheelUp::SendInput {Left} ; Ctrl+mouse wheel up toggles stash tabs left
- ^WheelDown::SendInput {Right} ; Ctrl+mouse wheel down toggles stash tabs right
- ;^RButton::SendInput ^c ; Ctrl+right mouse button sends ctrl+c
- ;F2::^c ; binds ctrl+c to F2 key (in addition, not instead)
- ;^F9::instructionsMacro()
- F10::SendInput {Enter}/global 1{Enter} ; join a channel with F10
- invitePlayer(){
- send {ctrl down}{enter down}
- sleep 500
- send {enter up}{ctrl up}
- Loop, 26 {
- send {left down}{left up}
- }
- send {delete down}{delete up}
- SendInput {Raw}/invite%A_Space% ;!!!!!Allan please add chat console as functions with parameters to make code less ugly!!!!!!
- SendInput {Enter}
- }
- tradeWith(){
- send {ctrl down}{enter down}
- sleep 500
- send {enter up}{ctrl up}
- Loop, 26 {
- send {left down}{left up}
- }
- send {delete down}{delete up}
- SendInput {Raw}/tradewith%A_Space% ;!!!!!Allan please add chat console as functions with parameters to make code less ugly!!!!!!
- SendInput {Enter}
- }
- thankYou(){
- sleep 500
- send {ctrl down}{enter down}
- send {enter up}{ctrl up}
- sleep 500
- Send Thank you very much!»-(¯`·.·´¯)->
- SendInput {Enter}
- }
- soldOut(){
- sleep 500
- send {ctrl down}{enter down}
- send {enter up}{ctrl up}
- sleep 500
- Send Sold Out
- SendInput {Enter}
- }
- globalBad() {
- clipboard := "globalTrading ? 'Trading in global is bad, M\'kay?' : NULL"
- SendInput {Enter}
- SendInput {Raw}# %clipboard%
- SendInput {Enter} ;Scold those naysayers who think they can clutter up the already spam induced cesspool we call global 1.
- }
- tradingMacro() {
- global
- Gui, macroTrader:Add, Edit, vcurrencyAmount, ;these couple of lines just add the interface for the window to ask user for input values
- Gui, macroTrader:Add, DropDownList, vcurrencyType, Alteration|Alchemy|Chromes|Fuses|Chaos|Exalts|
- Gui, macroTrader:Add, Button, default, OK
- Gui, macroTrader:Show,
- return
- macroTraderGuiClose:
- Gui, macroTrader:Destroy ; if closed through x on interface, destroy the entire macro
- Return
- macroTraderButtonOK:
- Gui, macroTrader:Submit,
- InputBox, timeInMins, Time To Wait, How many minutes to make this person wait? ; prompt text on how long you need in minutes (like if you are in a map)
- InputBox, itemForSale, Item Input, What is ready to be purchased? ; prompt text for this is what the item they are buying
- if(currencyType = "" || currencyAmount = "" || itemForSale = "" || timeInMins = "") { ;if user didn't fill out the inputs from the interface destroy interface
- Gui, macroTrader:Destroy
- return
- }else{
- clipboard := "Please wait in my Hideout. I will be able to sell you " itemForSale " in " timeInMins " minute(s) for " currencyAmount " " currencyType " " ;using 4 variables the user put in, create a custom invite text for buyer. You could put in a >= check to determine if the minute(s) is plural or not but didn't get around to it.
- send {ctrl down}{enter down}
- sleep 500
- send {enter up}{ctrl up}
- Loop, 26 {
- send {left down}{left up}
- }
- send {delete down}{delete up}
- SendInput {Raw}/invite%A_Space% ;!!!!!Allan please add chat console as functions with parameters to make code less ugly!!!!!!
- SendInput {Enter}
- send {ctrl down}{enter down} ; ctrl + enter for shortcut for last person who pm you
- sleep 500
- send {enter up}{ctrl up}
- SendInput {Raw}%clipboard% ; send them the message we input at the start of function
- send {Enter}
- Loop { ; endless loop till ^f7 breaks it or ^f8 is pressed.
- Sleep,10
- if (GetKeystate("Control") && GetKeystate("F6") = 1) {
- clipboard := "" itemForSale " is in my inventory. YOU start trade when ready."
- SendInput {Enter}
- sleep 500
- SendInput `% %clipboard%
- SendInput {Enter}
- continue
- }
- if (GetKeystate("Control") && GetKeystate("F7") = 1) {
- clipboard := "Thanks for buying " itemForSale "! »-(¯`·.·´¯)->"
- sleep 500
- send {ctrl down}{enter down}
- send {enter up}{ctrl up}
- sleep 500
- Send {_}{~}{"}{~}{_}{_}{_}{~}{"}{~}{_}{_}{_}{~}{"}{~}{_}{_}{_}{~}{"}{~}{_}{_}{_}{~}{"}{~}{_}{_}{_}{~}{"}{~}{_}{_}{_}{~}{"}{~}{_}{_}{_}{~}{"}{~}{_}{_} ;woohoo waves!
- send {Enter}
- sleep 500
- send {ctrl down}{enter down}
- send {enter up}{ctrl up}
- sleep 500
- SendInput {Raw}%clipboard%
- send {Enter}
- sleep 500
- send {ctrl down}{enter down}
- send {enter up}{ctrl up}
- sleep 500
- Send {_}{~}{"}{~}{_}{_}{_}{~}{"}{~}{_}{_}{_}{~}{"}{~}{_}{_}{_}{~}{"}{~}{_}{_}{_}{~}{"}{~}{_}{_}{_}{~}{"}{~}{_}{_}{_}{~}{"}{~}{_}{_}{_}{~}{"}{~}{_}{_} ;woohoo waves!
- send {Enter}
- send {ctrl down}{enter down}
- sleep 500
- send {enter up}{ctrl up}
- Loop, 26 {
- send {left down}{left up}
- }
- send {delete down}{delete up}
- SendInput {Raw}/kick%A_Space%
- SendInput {Enter}
- timestamp = %A_Now%
- FormatTime Y, T, yyyy
- FormatTime D, T, YDay
- FormatTime H, T, H
- FormatTime M, T, m
- FormatTime S, T, s
- timestamp := 31536000*(Y-1970) + (D+Floor((Y-1972)/4))*86400 + H*3600 + M*60 + S ;Timestamp will be set to your windows clock and your timezone. This is not good practice it should be UTC, but it makes it easier to view locally without adding/subtracting hours.
- FileAppend, `n%timestamp%`,%timeInMins%`,%itemForSale%`,%currencyAmount%`,%currencyType%, C:\Users\Dave\Documents\poeLog.csv ;change this unless your username is also Dave on windows. Column headers are not added in this macro so you'll need to edit the file.
- Gui, macroTrader:Destroy
- return
- break
- }
- if (GetKeystate("Control") && GetKeystate("F8") = 1) { ; if multiple people pm during a trade use this or whisper them something like a . first before using ^f7. you can whisper yourself and do the trades to yourself if you really want the csv log and it becomes cumbersome.
- Gui, macroTrader:Destroy
- return
- break
- }
- }
- }
- }
- instructionsMacro(){
- clipboard := "I created it, my own extension trade macro. 1. download autohotkey 2. download poe-trademacro.github.io 3. replace *:\Users\*****\Documents\PoE-TradeMacro in the users folder with my macro found at pastebin.com/v28dghv9 4. run poe trade macro main file."
- clipboard2 := "Instructions: DO NOT USE WHEN YOU HAVE MULTIPLE PEOPLE PM YOU!!!! ctrl+f5: starts macro and invites last person to pm you on poe. ctrl+f6 lets party know the item is in your inventory now. ctrl+f7: kicks person, thanks them and logs sale into a csv file specified in the macro. default is C:\Users\Dave\Documents\poeLog.csv change this path or remove the line from the macro. This macro will not create the file's csv column headers for you. ctrl+f8 cancels the trade and no log is made or person kicked."
- send {ctrl down}{enter down}
- send {enter up}{ctrl up}
- sleep 500
- SendInput {Raw}%clipboard%
- send {Enter}
- sleep 500
- send {ctrl down}{enter down}
- send {enter up}{ctrl up}
- sleep 500
- SendInput {Raw}%clipboard2%
- send {Enter}
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement