baconaise Posted February 9, 2019 Share Posted February 9, 2019 Hello! I've been using Yashied's wonderful ColorPicker UDF for a portion of my program. It says right in it that: "The library registers (permanently) the following window messages: WM_ACTIVATE, WM_COMMAND, WM_MOUSEWHEEL, WM_SETCURSOR." My trouble is that a different portion of my program (Search Function) was already using WM_COMMAND, so when I stick the two portions together, I can either make the ColorPicker work, or I can make the search function work. This is the portion of my code that doesn't get along with the ColorPicker: Func WM_COMMAND($hWnd, $iMsg, $wParam, $lParam) ;search function primer #forceref $hWnd, $iMsg Local $hWndFrom, $iIDFrom, $iCode $hWndFrom = $lParam $iIDFrom = BitAND($wParam, 0xFFFF) $iCode = BitShift($wParam, 16) Switch $iIDFrom Case $Search_Field Switch $iCode Case $EN_CHANGE If GUICtrlRead($Search_Field) <> "" Then ConsoleWrite("Search Item 1: " & GUICtrlRead($Search_Field) & @CRLF) Search_Function() EndIf EndSwitch EndSwitch Return $GUI_RUNDEFMSG EndFunc If I leave it in, I can't pick colors. If I take it out, I can't search. Does anyone have any idea how to make them get along? Link to comment Share on other sites More sharing options...
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
Already have an account? Sign in here.Sign In Now