Sign in to follow this  
Followers 0
alanakko

colour variation

8 posts in this topic

hey guys can anyone suggest the way to add colour varitaion to this pixel search

Func WarpCheck1()

Do

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

until @error=0

Sleep(200)

EndFunc

like 0x959595 (grey) or any shade of grey

thanks

Share this post


Link to post
Share on other sites



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

Share this post


Link to post
Share on other sites

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?

Share this post


Link to post
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

Share this post


Link to post
Share on other sites

As far as I know, yes.

Share this post


Link to post
Share on other sites

great, thanks for the replys guys

Share this post


Link to post
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

Share this post


Link to post
Share on other sites

Also If You Would Like More Help.. Add Me On MSN [Maxell225@Hotmail.Com]


Latest Projects :- New & Improved TCP Chat

Share this post


Link to post
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
Sign in to follow this  
Followers 0