kevev Posted March 11, 2024 Posted March 11, 2024 I have a ComboBox that I am watching for change of selection with: _GUICtrlComboBox_GetCurSel($MyCOMBO) The issue is that when I click on the pulldown and any time the mouse pointer hovers over a selection the app thinks I have selected. Is there any way to only detect the value when it has been clicked and is actually selected? Thank You in advance! :)
argumentum Posted March 11, 2024 Posted March 11, 2024 post a sample code to replicate the issue Follow the link to my code contribution ( and other things too ). FAQ - Please Read Before Posting.
kevev Posted March 11, 2024 Author Posted March 11, 2024 Also I would like to disable mouse wheel scrolling when pointer is over a specific ComboBox.
kevev Posted March 11, 2024 Author Posted March 11, 2024 ; Watch for bitrate change and kill FFMPEG if changed. If $FFMPEGIO_ffmpeg_SHOULD_BE_RUNNING = 1 Then $sSelected_DESTINATION_COMBO_READ_ID = _GUICtrlComboBox_GetCurSel($iVIDEO_BITRATE_COMBO) If $Running_sDESTINATION_COMBO_READ_ID <> $sSelected_DESTINATION_COMBO_READ_ID Then $Running_sDESTINATION_COMBO_READ_ID = _GUICtrlComboBox_GetCurSel($iVIDEO_BITRATE_COMBO) ConsoleWrite('Bitrate changed!' & @CRLF) Call( "KILL_FFMPEG" ) EndIf EndIf sleep(100)
Andreik Posted March 11, 2024 Posted March 11, 2024 1 hour ago, kevev said: ; Watch for bitrate change and kill FFMPEG if changed. If $FFMPEGIO_ffmpeg_SHOULD_BE_RUNNING = 1 Then $sSelected_DESTINATION_COMBO_READ_ID = _GUICtrlComboBox_GetCurSel($iVIDEO_BITRATE_COMBO) If $Running_sDESTINATION_COMBO_READ_ID <> $sSelected_DESTINATION_COMBO_READ_ID Then $Running_sDESTINATION_COMBO_READ_ID = _GUICtrlComboBox_GetCurSel($iVIDEO_BITRATE_COMBO) ConsoleWrite('Bitrate changed!' & @CRLF) Call( "KILL_FFMPEG" ) EndIf EndIf sleep(100) This is not a runnable code. If you want to watch for change of selection in a ComboBox look at _GUICtrlComboBox_Create() example in help file. Depending on your needs you can process $CBN_SELCHANGE or $CBN_EDITCHANGE messages received through WM_COMMAND.
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