Burgaud Posted August 11, 2021 Share Posted August 11, 2021 I have: GUICtrlCreateEdit GUICtrlCreateInput GUICtrlCreateTab GUICtrlCreateTabItem GUICtrlCreateListView None are overlapped... When I click on any of the above Controls, I want Autoit to call a function and perform tasks based on where the user clicked. Currently, I am using GUIRegisterMsg($WM_COMMAND, "_LostFocus") func _LostFocus($hWnd, $Msg, $wParam, $lParam) local $nNotifyCode = BitShift($wParam, 16) local $nID = BitAND($wParam, 0x0000FFFF) .....if $nNotifyCode is 256, then $nID is the ControlID that has focus (or click) endfunc But it is not working properly when I clicked on tabs: $nID is not updated, and $nNotifyCode is 512... I could use $nNotifyCode = 512 to mean user clicked on tabs but I still need to know which tab help 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