hackerheart Posted November 8, 2017 Share Posted November 8, 2017 Hello all, I have a question about the command GUIRegisterMsg ($ WM_NOTIFY, "") . Specifically, I used this command twice GUIRegisterMsg ($ WM_NOTIFY, "abc") GUIRegisterMsg ($ WM_NOTIFY, "CDF") Then it only run the second command. The first command it does not run out. Can anyone help me make both commands work? Thank you. Link to comment Share on other sites More sharing options...
hackerheart Posted November 8, 2017 Author Share Posted November 8, 2017 OK. Already Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted November 8, 2017 Moderators Share Posted November 8, 2017 hackerheart, Welcome to the AutoIt forums. As you have discovered, AutoIt will only run the last function defined in a GUIRegisterMsg line - so you have to combine both functions within a single handler and determine within that handler what code to run for the particular case. If you look inside my GUIListViewEx UDF (see my sig for the link) you will see how I have multiple options within the _GUIListViewEx_WM_NOTIFY_Handler function depending on exactly what message was intercepted by the GUIRegisterMsg call. M23 hackerheart 1 Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind Open spoiler to see my UDFs: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area Link to comment Share on other sites More sharing options...
hackerheart Posted November 10, 2017 Author Share Posted November 10, 2017 thanks 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