Sign in to follow this  
acdc79979

AHK request(ITEM ReroolMod)

Recommended Posts

kentpachi    0

this site wont help you without payment, go to ahk forum bro, you might learn a thing or two there.

 

i even made my own bot using ahk but not that good though

Share this post


Link to post
Share on other sites
immo    216

this site wont help you without payment, go to ahk forum bro, you might learn a thing or two there.

 

Somehow ironical that such comment comes from a person with just a single forum posting...

 

@acdc79979

I don't think this has been done by any user yet (at least nothing public). But since reading the entire current affix list is very easy to do (CTRL + C while hovering the item and you get all item mods in the clipboard variable), rerolling an item to some specific affixes shouldn't be too hard to accomplish.

 

This little snippet should point you into the right direction:

Spoiler
F1::
	iteminfo := CreateIteminfoFromClipboard(ItemToClipboard())
	Loop, % iteminfo.MaxIndex()
		Msgbox, % iteminfo[A_Index]
return

ItemToClipboard()
{
	IfWinActive Path of Exile ahk_class POEWindowClass
	{
		SendMode Input
		clipboard := ""
		Send ^c
		ClipWait, 0.05
		If(ErrorLevel)
			return 0
		else
			return clipboard
	}
}
			
CreateIteminfoFromClipboard(Clipboardcontent)
{
	If (Clipboardcontent != "") {
		_ItemInfo := []
		Loop, Parse, Clipboardcontent, `n, `r
			_ItemInfo.Insert(A_LoopField)
		return _ItemInfo
	}
}

Simply hover over an item and press F1. This results in looping through all lines from the gathered item info (and in my example output each line through a msgbox.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this