Thread: Nk Check Pixel

Results 1 to 4 of 4
  1. #1
    limacezzz's Avatar
    Join Date
    May 2015
    Gender
    male
    Posts
    62
    Reputation
    10
    Thanks
    336
    My Mood
    Inspired

    Lightbulb Nk Check Pixel

    Pixel Checker

    Disclaimer :
    This tool is used with the Adventure Bot : https://www.mpgh.net/forum/showthread.php?t=1488522
    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 from the GUI or directly from the file.
    • Bring your cursor 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:
    PixelGetColor Dungeon1, 1570, 130, RGB <- Here are the first 2 values
    PixelGetColor Dungeon2,  1570, 202, RGB  <- Same here with vertical offset
    PixelGetColor Dungeon3,  1570, 274, RGB  <- And here too
    if (Dungeon1 = "0xFEF89A"||Dungeon2 = "0xFEF89A"||Dungeon3 = "0xFEF89A")<- And here are the color codes
    Feel free to comment with your resolution and a working combination of "X, Y, Color" to help others !


    AHK Script :
    Code:
    loop
    {
    	MouseGetPos X, Y 
    	PixelGetColor Color, %X%, %Y%, RGB
    	ToolTipColor(Color, "Black")
    	ToolTip,  X : %X%   Y : %Y%   Resolution : %A_ScreenWidth%x%A_ScreenHeight%   Color : %Color%`n Press num1 to pause and copy values`nPress num0 to exit
    }
    Numpad0::ExitApp
    Numpad1::Pause,,1 
    
    ;libraries :
    ;Thanks to lexikos for his tooltip color lib
    ToolTipColor(Background := "", Text := "", hwnd := "") {
        static bc := "", tc := ""
        if (hwnd = "") {
            if (Background != "")
                bc := Background="Default" ? "" : _TTG("Color", Background)
            if (Text != "")
                tc := Text="Default" ? "" : _TTG("Color", Text)
            _TTHook()
        }
        else {
            VarSetCapacity(empty, 2, 0)
            DllCall("UxTheme.dll\SetWindowTheme", "ptr", hwnd, "ptr", 0
                , "ptr", (bc != "" && tc != "") ? &empty : 0)
            if (bc != "")
                DllCall("SendMessage", "ptr", hwnd, "uint", 1043, "ptr", bc, "ptr", 0)
            if (tc != "")
                DllCall("SendMessage", "ptr", hwnd, "uint", 1044, "ptr", tc, "ptr", 0)
        }
    } 
    _TTHook() {
        static hook := 0
        if !hook
            hook := DllCall("SetWindowsHookExW", "int", 4
                , "ptr", RegisterCallback("_TTWndProc"), "ptr", 0
                , "uint", DllCall("GetCurrentThreadId"), "ptr")
    } 
    _TTWndProc(nCode, _wp, _lp) {
        Critical 999
       ;lParam  := NumGet(_lp+0*A_PtrSize)
       ;wParam  := NumGet(_lp+1*A_PtrSize)
        uMsg    := NumGet(_lp+2*A_PtrSize, "uint")
        hwnd    := NumGet(_lp+3*A_PtrSize)
        if (nCode >= 0 && (uMsg = 1081 || uMsg = 1036)) {
            _hack_ = ahk_id %hwnd%
            WinGetClass wclass, %_hack_%
            if (wclass = "tooltips_class32") {
                ToolTipColor(,, hwnd)
            }
        }
        return DllCall("CallNextHookEx", "ptr", 0, "int", nCode, "ptr", _wp, "ptr", _lp, "ptr")
    } 
    _TTG(Cmd, Arg1, Arg2 := "") {
        static htext := 0, hgui := 0
        if !htext {
            Gui _TTG: Add, Text, +hwndhtext
            Gui _TTG: +hwndhgui +0x40000000
        }
        Gui _TTG: %Cmd%, %Arg1%, %Arg2%
        if (Cmd = "Font") {
            GuiControl _TTG: Font, %htext%
            SendMessage 0x31, 0, 0,, ahk_id %htext%
            return ErrorLevel
        }
        if (Cmd = "Color") {
            hdc := DllCall("GetDC", "ptr", htext, "ptr")
            SendMessage 0x138, hdc, htext,, ahk_id %hgui%
            clr := DllCall("GetBkColor", "ptr", hdc, "uint")
            DllCall("ReleaseDC", "ptr", htext, "ptr", hdc)
            return clr
        }
    }
    Virus scans :
    https://virusscan.jotti.org/fr-FR/fi...job/j5e4v1bga5
    https://www.virustotal.com/gui/file/...decc/detection
    <b>Downloadable Files</b> Downloadable Files
    Last edited by T-800; 03-05-2020 at 10:07 AM.
    "Open source enables a development method for software that harnesses the power of distributed peer review and transparency of process.
    The promise of open source is higher quality, better reliability, greater flexibility, lower cost, and an end to predatory vendor lock-in."

    -> Gem farming bot

  2. The Following 3 Users Say Thank You to limacezzz For This Useful Post:

    harrizuan (02-22-2020),Joca. (02-21-2020),kissanime (03-02-2020)

  3. #2
    meme's Avatar
    Join Date
    Jan 2016
    Gender
    male
    Location
    42.434720, -83.985
    Posts
    8,047
    Reputation
    1403
    Thanks
    2,410
    My Mood
    Lurking
    /approved //2short
    Quote Originally Posted by Hennessy View Post
    meme is shittiest general mod ever.
     
    dd/mm/yy
    Member | 28/1/16 - ∞
    Premium | 20/3/16 - ∞
    BattleOn Minion | 24/12/17 - 21/7/21
    Minion+ | 4/4/19 - 11/12/20
    Other MMMORPG Minion | 10/11/19 - 21/7/21
    Publicist | 7/2/20 - Unknown
    Minecraft Minion | 10/12/20 - 21/7/21
    General Minion | 10/12/20 - 21/7/21

    Moderator | 11/12/20 - 21/7/21
    Princess | 5/1/21 - 30/6/21
    Global Moderator | 21/7/21 - ∞
    Pharaoh | 30/1/22 - ∞
    Trusted Member | 16/3/23 - ∞

  4. The Following User Says Thank You to meme For This Useful Post:

    limacezzz (02-10-2020)

  5. #3
    Ohsaewon's Avatar
    Join Date
    Oct 2018
    Gender
    male
    Posts
    286
    Reputation
    42
    Thanks
    24
    this is a wonderful tutorial

  6. The Following User Says Thank You to Ohsaewon For This Useful Post:

    limacezzz (02-14-2020)

  7. #4
    Joca.'s Avatar
    Join Date
    Oct 2018
    Gender
    male
    Posts
    60
    Reputation
    10
    Thanks
    13
    You should do youtube video tutorial

Similar Threads

  1. [Price Check] Pixel 3 XL 128GB Refurbished
    By yair5652 in forum Marketplace Price Check / Questions
    Replies: 3
    Last Post: 06-29-2019, 08:37 AM
  2. Google Pixel 2XL B&W 128GB already in Reship - Price Check
    By boy in forum Marketplace Price Check / Questions
    Replies: 13
    Last Post: 06-07-2018, 10:21 AM
  3. Guys check this out
    By kvmn8 in forum General
    Replies: 13
    Last Post: 06-26-2006, 02:10 AM
  4. 2 Pixel Tutorial
    By Flawless in forum Tutorials
    Replies: 15
    Last Post: 02-21-2006, 02:53 PM
  5. Lol check out my crappy sig
    By Severed in forum Art & Graphic Design
    Replies: 1
    Last Post: 02-21-2006, 11:05 AM