From 2c4abce3ab63362127f6b52ceeb7f611ca1dd388 Mon Sep 17 00:00:00 2001 From: Dave Clarke Date: Sun, 2 Oct 2016 19:06:36 -0500 Subject: [PATCH] Fleshed out the Wiki url generation. Maps/Rares now use the item's type rather than name(e.g. 'Palace Map' instead of 'Twisted Sanctum'). Flasks will use 'Flask' since their specific type is not in the Item class. --- TradeMacro.ahk | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/TradeMacro.ahk b/TradeMacro.ahk index 5f13464d..a73b1775 100644 --- a/TradeMacro.ahk +++ b/TradeMacro.ahk @@ -20,7 +20,18 @@ 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 return