![]() PS: I do not wnt to emulate mouse clicks, as I want to run the applet in hidden mode with Control Panel window also hidden. ![]() ![]() $CB_SETCURSEL = 0x14E $speakers_combobox = ControlGetHandle ( $winid, "", 1004 ) DllCall ( "user32.dll", "int", "SendMessage", "hwnd", $speakers_combobox, "int", $CB_SETCURSEL, "int", 0, "int", 0 )it changes current selection, but not settings. $speakers_combobox = ControlGetHandle ( $winid, "", 1004 ) DllCall ( 'user32.dll', 'int', 'SendMessage', 'hwnd', $speakers_combobox, 'uint', 0x0131, 'wParam', 0x02, 'lParam', 0x002000e5 )but no luck, neither combobox value, nor settings change. I've sniffed the combobox commands sent/recieved with Winspector Spy: ![]() The problem is that its callback is not triggered by:ĬontrolCommand ( $winid, '', 1004, 'SelectString', '2/2.1 Speakers' )orĬontrolCommand ( $winid, '', 1004, 'SetCurrentSelection', 0 )The value inside combobox is changed, but it does not actually change the settings =( I'm trying to automate some action in Creative Audio Control Panel (sound card control applet).Ĭurrently I want my script to change speakers configuration.Īnd here comes trouble, as you can see there is no Apply/Ok buttons, so changing value in combobox switches the mode instantly.
0 Comments
Leave a Reply. |