Jump to content

colour variation


Recommended Posts

You can use the built-in parameter in PixelSearch() The color variation. Put like 20 or something.

how would i write that , like this

Func WarpCheck1()

Do

PixelSearch(537,746,537,746,0x959595,20)

until @error=0

Sleep(200)

EndFunc

as in ,20 after 0x959595

and does that give me 20 shades above and 20 shades below 0x959595?

Link to comment
Share on other sites

Heres The System I Use When I Use Pixel Search.. And I Think Its Above & Below

Source : Example.Au3

Global $Bottom = (@DesktopHeight) 
Global $Right = (@DesktopWidth)
Global $Color = ('')
Global $Shade_Variation = ('') ; Color Variation Variable
     _Loop ()

Func _Loop ()
Do
     Sleep ('100')
$Pixel_Search = PixelSearch ('0', '0', $Right, $Bottom, $Color, $Shade_Variation)
Until Not @Error 
     _Next ($Pixel_Search['0'], $Pixel_Search['1'])
EndFunc

Func _Next ($Pos_X, $Pos_Y)
;===========================
;===========================
     _Loop ()
EndFunc

~ Hope This Helps

- John

Latest Projects :- New & Improved TCP Chat

Link to comment
Share on other sites

Oh And This Could Be A Handy Tool :D

Source : Color Finder.Au3

#Include <GUIConstants.au3>
#NoTrayIcon
Opt ('GUIOnEventMode','1')

GUICreate (' Color Finder v1.0', '100', '75', '-1', '-1', '0')
GUISetOnEvent ($GUI_EVENT_CLOSE , '_Exit')
$Label = GUICtrlCreateLabel ('','11','15','150','50')
GUICtrlSetFont ('-1','14','','','Arial')
GUISetState (@SW_SHOW)

; WinSetTrans (' Color Finder v1.0', '', '75')

While ('1')
Sleep ('150')
$Pos = MouseGetPos ()
$Pixel = PixelGetColor ($Pos['0'], $Pos['1'])
$Hex_Color = ('0x' & Hex ($Pixel, '6'))
Sleep ('150')
GUISetBkColor ($Hex_Color)
GUICtrlSetData ($Label, $Hex_Color)
HotKeySet ('!{F1}','_Clip_Hex_Color')
WEnd

Func _Clip_Hex_Color ()
ClipPut ($Hex_Color) 
EndFunc

Func _Exit ()
Exit

[Alt + F1 Clips The Hex Color :D]

- John

Latest Projects :- New & Improved TCP Chat

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...