Jump to content

Sky Slate Blueberry Blackcurrant Watermelon Strawberry Orange Banana Apple Emerald Chocolate
Photo

precision pixel checker


  • Please log in to reply
2 replies to this topic
SnowFlake_FlowSnake
  • Members
  • 845 posts
  • Last active: Jan 24 2016 05:24 PM
  • Joined: 08 Oct 2012

Hi

 

Press the Arrow keys to move your mouse 1 pixel away from your mouse location to see its pixel color for a more precis pixel checker,Press C key to copy the information to the Clipboard.

ESC to exit the tool.

 

Picture:

684e72e23a.jpg

code:

/*

Name: Precision Pixel Checker
Update time: 15/08/2015
Made by: SnowFlake & Xtra
Tested on: Windows 7 64 bit & Vista Home Premium 32-bit
AHK Ver: v1.1.22.03
Link: http://www.autohotkey.com/board/topic/148127-precision-pixel-checker/

Hokeys:
Press the arrow keys to move around.
C to copy.
ESC to exit the tool.
*/

#NoEnv
#SingleInstance force
Precision_Pixel := new PPG
return
;===============Hotkeys=================
UP::
Down::
Right::
Left::Precision_Pixel.Move(A_ThisHotkey)

C::Precision_Pixel.Copy()

Esc::ExitApp
;=======================================

class PPG
{
    __New()
    {
static
Gui, Add, Progress, x0 y0 w38 h38 hwndRGBColor, 100
     this.RGBColor := RGBColor
        Gui, Add, Text, x40 y15 w55 hwndBGRColor
     this.BGRColor := BGRColor
        Gui, Add, Text, x2 y40 w50 hwndXPos
     this.XPos := XPos
        Gui, Add, Text, x2 yp+13 w50 hwndYPos
     this.YPos := YPos 
        Gui, Add, Text, x2 y+15 w600 hwndWindowId
     this.WindowId := WindowId
        Gui, Add, Text, x2 y+10 w100, Press C to Copy
        Gui, +AlwaysOnTop -Caption -border +Disabled +ToolWindow
        Gui, Color, ffffca
            this.init := 0
        ToolTip, Press a Arrow key.,0,0
    }
    Move(d)
    {
this.init := 1
ToolTip
CoordMode, Mouse, Relative
CoordMode, Pixel, Relative
MouseMove, % d="Right" ? 1 : d="Left" ? -1 : 0
   , % d="Up" ? -1 : d="Down" ? 1 : 0,, R
MouseGetPos, x, y
GuiControl,, % this.XPos, % "X : " this.x := x
GuiControl,, % this.YPos, % "Y : " this.y := y
PixelGetColor, BGR, x, y
GuiControl,, % this.BGRColor, % this.BGR := BGR
PixelGetColor, RGB, x, y, RGB
GuiControl, % "+cb" SubStr(RGB,3), % this.RGBColor
WinGetActiveStats, winid, windowW, windowH, windowX, windowY
GuiControl,, % this.WindowId, % this.winid := winid
GuiControl, Move, this.WindowId, % "w" w := StrLen(winid)*5
guiW := (w<90 ? 90 : w) , Dz := 100 ; Deadzone
Gui, Show, % "NoActivate x" (x>windowW/2+Dz ? x-15-guiW : x+15) " y" (y>windowH/2+Dz ? y-135 : y+15) " w" guiW " h120"
    }
    Copy()
    {
if (this.init = 1)
{
     SoundBeep
            Clipboard :=
            Clipboard := "X Coordinates: " this.x "`r`nY Coordinates: " this.y "`r`n  Pixel Color: " this.BGR "`r`n Window Title: " this.winid
            ClipWait, 2
            ToolTip, %Clipboard% `r`n`r`nInfo copied to the clipboard`r`n->> To paste press Ctrl+V <<--
     sleep 5000
            ExitApp
}
     ToolTip, ---------->          Press a Arrow key!         <-----------,0,0
    }
}

  • Download link of my scripts on Autohotkey.com 2/10/2015 [DOWNLAND]
  • Contact Info:  https://github.com/floowsnaake //  FloowSnaake(A)gmail.com
  • IF you need Help send me a PM,Email or Post on Github

  • Quote by tank  Posted 29 September 2015 - 06:14 PM

  • "Eventually i will find a way to convert the DB back to PHPBB3. but i dont have the bandwidth right now. No one that has tried has had success. It is the Only way i can keep this open is if i could successfully convert it."

NowThenGoodBad
  • New members
  • 1 posts
  • Last active: Aug 12 2015 04:05 PM
  • Joined: 12 Aug 2015

This works in Windows Vista Home Premium 32-bit as well.



SnowFlake_FlowSnake
  • Members
  • 845 posts
  • Last active: Jan 24 2016 05:24 PM
  • Joined: 08 Oct 2012

thank you for the information :)


  • Download link of my scripts on Autohotkey.com 2/10/2015 [DOWNLAND]
  • Contact Info:  https://github.com/floowsnaake //  FloowSnaake(A)gmail.com
  • IF you need Help send me a PM,Email or Post on Github

  • Quote by tank  Posted 29 September 2015 - 06:14 PM

  • "Eventually i will find a way to convert the DB back to PHPBB3. but i dont have the bandwidth right now. No one that has tried has had success. It is the Only way i can keep this open is if i could successfully convert it."