Pixel Checker
Disclaimer :
This tool is used with the Adventure Bot : https://www.mpgh.net/forum/showthread.php?t=1358690
It is only working on trove on primary monitor.
Info & Tuto :
To make it work :
- Press "i" and disable everything except "Dungeons".
- Then set the game to windowed mode.
- Maximize this window.
- Find one or more dungeons ingame.
- Open your character page.
- Start the tool as admin (this will show a little tooltip with coordinates of the mouse, screen resolution and pixel color).
- Bring your pointer to the middle of the dungeon star.
- Press 1 to pause the script !
- Save those 3 values : (X, Y, Color)
- if you want to detect multiple dungeons, find a 3* dungeon and repeat with each dungeon :
Code:
Dungeon1 := DwmGetPixel(1563, 120,ahk_id %Handle%)<- here are the first 2 values
if (Dungeon1 = "0xe9fa")<- And here is the third
If you want to detect more dungeons, you have to add them :
Code:
Dungeon1 := DwmGetPixel(1563, 120, ahk_id %Handle%)
Dungeon2 := DwmGetPixel(1563, 193,ahk_id %Handle%)
Dungeon3 := DwmGetPixel(1563, 266,ahk_id %Handle%)
if (Dungeon1 = "0xe9fa"||Dungeon2 = "0x4ff1fb"||Dungeon3 = "0x9af7fe")
Feel free to comment with your resolution and a working combination of "X, Y, Color" to help others !
AHK Script :
Code:
loop
{
activeMonitorInfo( X, Y, Width, Height, Color)
ToolTip, X : %X% Y : %Y% Resolution : %Width%x%Height% Color : %Color%
Sleep 50
}
Numpad0::ExitApp
Numpad1::Pause,,1
activeMonitorInfo( ByRef X, ByRef Y, ByRef Width, ByRef Height, ByRef Color )
{
;retrieves the size of the monitor, the mouse is on
CoordMode, Mouse, Window
MouseGetPos, mouseX , mouseY
SysGet, monCount, MonitorCount
Loop %monCount%
{
SysGet, curMon, Monitor, %a_index%
if ( mouseX >= curMonLeft and mouseX <= curMonRight and mouseY >= curMonTop and mouseY <= curMonBottom )
{
X := mouseX-curMonLeft
y := mouseY
Height := curMonBottom - curMonTop
Width := curMonRight - curMonLeft
Handle := WinExist("A")
Color := DwmGetPixel(X, Y, ahk_id %Handle%)
return
}
}
}
DwmGetPixel(x, y, hwnd)
{
hDC := DllCall("user32.dll\GetDCEx", "UInt", hwnd, "UInt", 0, "UInt", 1|2)
pix := DllCall("gdi32.dll\GetPixel", "UInt", hDC, "Int", x, "Int", y, "UInt")
DllCall("user32.dll\ReleaseDC", "UInt", hwnd, "UInt", hDC)
pix := DecToHex(pix)
return pix
}
DecToHex(dec)
{
oldfrmt := A_FormatInteger
hex := dec
SetFormat, IntegerFast, hex
hex += 0
hex .= ""
SetFormat, IntegerFast, %oldfrmt%
return hex
}
Virus scans :
https://virusscan.jotti.org/fr-FR/fi...job/uhx16fgrl2
https://www.virustotal.com/fr/file/7...is/1523839278/