Skip to content

Commit

Permalink
Merge pull request #2 from Dgc2002/master
Browse files Browse the repository at this point in the history
Fleshed out the Wiki url generation. Maps/Rares now use the item's ty…
  • Loading branch information
thirdy authored Oct 4, 2016
2 parents 099632d + 2c4abce commit a32aa0e
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion TradeMacro.ahk
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,18 @@ IfWinActive, Path of Exile ahk_class Direct3DWindowClass
Send ^c
Sleep 250
DoParseClipboardFunction()
WikiUrl := "http://pathofexile.gamepedia.com/" Item.Name

if (Item.IsUnique) {
UrlAffix := Item.Name
} else if (Item.IsFlask) {
UrlAffix := Item.SubType
} else {
UrlAffix := Item.TypeName
}

UrlAffix := StrReplace(UrlAffix," ","_")
WikiUrl := "http://pathofexile.gamepedia.com/" UrlAffix

Run % WikiUrl
SuspendPOEItemScript = 0 ; Allow Item info to handle clipboard change event
}
Expand Down

0 comments on commit a32aa0e

Please sign in to comment.