alanakko Posted April 26, 2008 Posted April 26, 2008 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
Swift Posted April 26, 2008 Posted April 26, 2008 You can use the built-in parameter in PixelSearch() The color variation. Put like 20 or something.
alanakko Posted April 26, 2008 Author Posted April 26, 2008 Swift said: You can use the built-in parameter in PixelSearch() The color variation. Put like 20 or something.how would i write that , like thisFunc WarpCheck1()DoPixelSearch(537,746,537,746,0x959595,20)until @error=0Sleep(200)EndFuncas in ,20 after 0x959595and does that give me 20 shades above and 20 shades below 0x959595?
z0mgItsJohn Posted April 26, 2008 Posted April 26, 2008 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
z0mgItsJohn Posted April 26, 2008 Posted April 26, 2008 Oh And This Could Be A Handy Tool 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 ] - John Latest Projects :- New & Improved TCP Chat
z0mgItsJohn Posted April 26, 2008 Posted April 26, 2008 Also If You Would Like More Help.. Add Me On MSN [Maxell225@Hotmail.Com] Latest Projects :- New & Improved TCP Chat
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now