Fossil Rock Posted September 22, 2006 Share Posted September 22, 2006 (edited) NOTE: See next reply before you waste your time. I can't figure out why when I reduce the Top and/or Bottom coordinate(s) the PixelCheckSum equates to 1.Anyone see anything wrong with the code or have an explaination as to why ? I haven't found anything in the forum yet, but I'm still looking.expandcollapse popup#include <GUIConstants.au3> ; PixelChecksum ( left, top, right, bottom ) ; SplashTextOn ( "", "" , w , h , x pos , y pos , 1 ) $Form1 = GUICreate("PCS vs Splash", 226, 146, -1, 100) $Left = GUICtrlCreateInput("", 22, 32, 20, 21) $Top = GUICtrlCreateInput("", 46, 32, 20, 21) $Right = GUICtrlCreateInput("", 70, 32, 20, 21) $Bottom = GUICtrlCreateInput("", 94, 32, 20, 21) $PCS = GUICtrlCreateButton("PCS", 136, 12, 75, 25, 0) $Splash = GUICtrlCreateButton("Splash", 136, 44, 75, 25, 0) $Reset = GUICtrlCreateButton("Reset", 136, 76, 75, 25, 0) $Exit = GUICtrlCreateButton("Exit", 136, 108, 75, 25, 0) GUICtrlCreateLabel("PixelCheckSum", 30, 66, 78, 17) GUICtrlCreateLabel("L", 28, 14, 10, 17) GUICtrlCreateLabel("T", 52, 14, 12, 17) GUICtrlCreateLabel("R", 76, 14, 11, 17) GUICtrlCreateLabel("B", 100, 14, 11, 17) $PCS_Label = GUICtrlCreateLabel("", 30, 84, 83, 17) GUISetState(@SW_SHOW) While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit Case $PCS _PCS() Case $Splash _Splash() Case $Reset ;; Case $Exit Exit EndSwitch WEnd Func _PCS() $L = GUICtrlRead($Left) $T = GUICtrlRead($Top) $R = GUICtrlRead($Right) $B = GUICtrlRead($Bottom) GUICtrlSetData($PCS_Label, PixelChecksum($L,$T,$R,$B)) EndFunc Func _Splash() $L = GUICtrlRead($Left) $T = GUICtrlRead($Top) $R = GUICtrlRead($Right) $B = GUICtrlRead($Bottom) SplashTextOn("1","",$R,$B,$L,$T,1) WinSetTrans("1","",100) EndFunc Edited September 22, 2006 by Fossil Rock Agreement is not necessary - thinking for one's self is! Link to comment Share on other sites More sharing options...
Fossil Rock Posted September 22, 2006 Author Share Posted September 22, 2006 (edited) Hang on... I might be an idiot.... yep... I'm an idiot .... Right can't be less than Left and Bottom can't be less than Top.I'm glad I figured it out before the flames stated hitting.Maybe this will help someone else .... Edited September 22, 2006 by Fossil Rock Agreement is not necessary - thinking for one's self is! Link to comment Share on other sites More sharing options...
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