Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ; Path of Exile EzPrice v011016
- ; Hover on item and press the hotkey. It'll retrieve the name of that item, open a new browser tab with poe.trade, paste the name and search for it. Easy way to price-check that I've done primarily for myself, just wanted to share.
- ; I'd advise to map the script onto some macro hotkey like ctrl+numpad7 (^Numpad7)
- ; Save this code and as .ahk (dl Autohotkey if you don't have it)
- #IfWinActive Path of Exile
- #c:: ; Windows - C <------------------ T H E H O T K E Y ------- Look up there https://autohotkey.com/docs/KeyList.htm
- clipboard = ; Empty the clipboard
- Sleep, 50
- Send, ^c ; Ctrl - C
- ClipWait, 1.5
- If clipboard=
- {
- Tooltip, No item data
- SetTimer, RemoveToolTip, 1500
- return
- }
- ClipSaved := clipboard
- StringReplace ClipSaved, ClipSaved, <<set:MS>><<set:M>><<set:S>>, , A
- ItemNameStartPos = % InStr(ClipSaved, "`r", false, 1, 1) ; 1st carriage return symbol
- ItemNameEndPos = % InStr(ClipSaved, "--", false) ; "--------"
- ItemNameLength := (ItemNameEndPos - ItemNameStartPos)
- StringMid, OutputResult, ClipSaved, ItemNameStartPos + 2, ItemNameLength - 4
- Sleep, 50
- Clipboard = %OutputResult%
- Tooltip, %OutputResult%
- SetTimer, RemoveToolTip, 2500
- ; >-->
- ; this is the part that opens your browser. If you prefer this script to only copy the name of the item, delete this part (leave return)
- Run, http://poe.trade/search
- Sleep, 2500 ; if your PC is slow, up this number. <-------------------------
- Send, ^v
- Sleep, 300
- Send {Enter}
- ; >-->
- return
- RemoveToolTip:
- SetTimer, RemoveToolTip, Off
- ToolTip
- return
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement