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
immo

advanced iLVL Reveal (ingame Tooltip / "no" keystrokes!)

Recommended Posts

I wanted a more elegant way to reveal the itemlevel. Without any Chatinput.

Features:

[*:19k5axya]iLVL revealing without any /Command input (except for items laying on the ground)

[*:19k5axya]No more picking items up to reveal iLVL (except for items laying on the ground)

[*:19k5axya]Itemname, Base-Itemtype & Itemlevel are directly displayed under your Mousecurser in an "ingame-tooltip" (working for items in your inventory, bankslots, equipped items & linked chatitems)

[*:19k5axya]you can even reveal the iLVL from items laying on the ground without having to place them in your inventory first (This method works by using the /itemlevel command :x)

How To:

For items in your inventory, bankslots, equipped items & linked chatitems:

[*:19k5axya]Hover your mousecurser over the desired item and press: "CTRL" + "C"

[*:19k5axya]Itemname, Base-Itemtype & Itemlevel are directly displayed under your Mousecurser in an "ingame-tooltip"

For items laying on the ground:

[*:19k5axya]Hover your mousecurser over the desired item and press: "CTRL" + "X"

[*:19k5axya]Itemlevel will be displayed in the chatwindow (just like normal)

tooltip visibility:

[*:19k5axya]tooltip disappears after 7,5 seconds

[*:19k5axya]tooltip also disappears if you move the mouse more then 40 pixel from the initial source position

Preview Footage:

My solution:

#NoEnv  ; Recommended for performance and compatibility with future AutoHotkey releases.
#Warn  ; Enable warnings to assist with detecting common errors.
#Persistent ; Only the user can kill the application
SendMode Input  ; Recommended for new scripts due to its superior speed and reliability.
StringCaseSense, On ; Match strings with case.

MouseMovePixels = 40 ; How many pixels you have to move until tooltip disapears.
Menu1 = POE.iLVL-Revealer.
ver = v1.3c

; Some various fancy tray icon stuff.
	Menu, tray, Tip, %Menu1%%ver%`nrevealing your iLVL since 2013
	Menu, tray, NoStandard
	Menu, tray, add, %Menu1%%ver%, RemoveTooltip
	Menu, tray, disable, %Menu1%%ver%
	Menu, tray, add
	Menu, tray, add, Reload, MyReload
	Menu, tray, add, Edit, MyEdit
	Menu, tray, add
	Menu, tray, add, Exit, ExitSub
return

#IfWinActive, Path of Exile ; May save CPU usage when copying stuff outside of PoE. Hasn't been tested.
OnClipboardChange:
	StopName = 0 ; Stop appending things to the name.
	GotItemlevel = 0 ; Just in case the script doesn't find the itemlevel
	Name = ; Blank name (for now)
	Loop, parse, Clipboard, `n, `r ; Goes through a loop with the lines of text found in the clipboard
	{
		if StopName = 0 
		{
			if A_Loopfield = -------- ; Checks when to stop appending stuff to the name
			{
				StopName = 1
				continue
			}
			if A_Index = 1 ; Starts a check whether it has "Rarity", as well as avoiding appending the rarity to the name.
			{
				IfNotInString, A_Loopfield, Rarity: ; Checks whether it has "Rarity:" in the first line. If it doesn't...
					Exit
			}
			else
				Name = %Name%%A_Loopfield%`n ; Appends the line to the name with a line break.
		}
		IfInString, A_Loopfield, Itemlevel: ; if it contains "Itemlevel:"
		{
			Name = %Name%%A_LoopField% ; There's already a line break left from before, so there's no need for a line break now
			GotItemlevel = 1
			break ; Stops unnecessary logic 
		}
	}
	if GotItemlevel = 0 ; If we didn't get the itemlevel...
		exit
	MouseGetPos, X, Y ; Stores the mouse position when the tooltip was displayed
	ToolTip, %Name%, X + 35, Y + 35 ; The name is taken just to confirm what item the user is hovering over.
	Increment := 0 ; Sets the variable to increment
	SetTimer, TimerTick, 100
return
#IfWinActive

TimerTick:
	Increment += 1 ; When it hits 75 (7.5 sec), it removes the tool tip just in case of it screwing up
	MouseGetPos, currentX, currentY ; Used for the below expression
	if ((X - CurrentX)**2 + (Y - CurrentY)**2 > MouseMovePixels**2 or Increment >= 75) {
		SetTimer, TimerTick, Off ; When the mouse moves MouseMovePixels pixels, it stops the tooltip.
		ToolTip
	}
return

MyListVars:
	ListVars
Return

MyReload:
    Reload
Return

MyEdit:
    Edit
Return

RemoveTooltip: ; exactly what it says on the tin
	ToolTip
return

^x:: ; if item lays on the ground (not equiped or in your inv.)
	#IfWinActive, Path of Exile
	SendInput, {Space}
	BlockInput On
	SendInput, i
	MouseClick, Left
	SendInput, {Enter}
	SendInput, {/}itemlevel
	SendInput, {Enter}
	Sleep, 100
	MouseClick, Left
	BlockInput Off
return

ExitSub:
	F12::
	ExitApp
return

"Installation":

download & extract the above rar file

[*:19k5axya]save the extracted "POE_iLVL-Revealer.v1.3a.ahk" where ever you want & run it

[*:19k5axya]when ingame mouseover the item you want to reveal the iLVL and press "CTRL"+"C" or "CTRL"+"X"!

[*:19k5axya]F12 quits the Script

additional notes:

[*:19k5axya]I would be glad if some of you could test this script a bit. Although I'm pretty sure that everything works as intended but you never know ;>

[*:19k5axya]If you encounter bugs let me know!

[*:19k5axya]If you have any feature requests which should be added, let me know!

[*:19k5axya]I really appreciate every feedback!

[*:19k5axya]If someone discovers a more elegant method to reveal the iLVL from items on the ground » LET ME KNOW!

latest update / changes:

[*:19k5axya]16.10.2013: v1.3c (added function to reveal linked Chatitems! - working with the ingame tooltip)

[*:19k5axya]15.10.2013: v1.3b (added function to reveal iLVL for items on the ground)

[*:19k5axya]14.10.2013: v1.3a - initial release (revealing works for inventory & bankslots)

Share this post


Link to post
Share on other sites

Thanks for the information begerus! I think this was only a matter of time before someone steals any code without asking.

@the unknown thief:

quickly asking for permission first would have been nice.

What was going on? Did you not have the courage? Afraid I would have said no?

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...

×
×
  • Create New...