Jump to content

Join our Slack

Talk to other users and have a great time
Slack Server

Welcome to our Community

Click here to get your Exiled Bot license
Donation Store
Sign in to follow this  
acdc79979

AHK request(ITEM ReroolMod)

Recommended Posts

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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...