Page 1 of 1

WinMenuSelectItem Command is not working for opening Add Sub Title dialog box for VLC Media Player. Is there any remedy?

Posted: 01 Sep 2020, 09:30
by Sabestian Caine
Neither these codes are working-

Code: Select all

WinMenuSelectItem, ahk_exe vlc.exe, , Subtitle, Add Subtitle File...
nor these codes are working-

Code: Select all

WinMenuSelectItem, ahk_exe vlc.exe, , 5&, 1&
I think it can be done by PostMessage command. But, I don't know how to use it. Please tell me how to open Add Subtitle file dialog box in VLC Media player. Thanks a lot.

Re: WinMenuSelectItem Command is not working for opening Add Sub Title dialog box for VLC Media Player. Is there any rem

Posted: 01 Sep 2020, 18:52
by boiler

Code: Select all

WinActivate, ahk_exe vlc.exe
Send, !ts

Re: WinMenuSelectItem Command is not working for opening Add Sub Title dialog box for VLC Media Player. Is there any rem

Posted: 02 Sep 2020, 07:47
by Sabestian Caine
boiler wrote:
01 Sep 2020, 18:52

Code: Select all

WinActivate, ahk_exe vlc.exe
Send, !ts
Thanks dear boiler for your good reply. your codes are working but, could there be something more reliable and constant for this purpose? I think this can be done more effectively by PostMassage command. As by these codes I can open Enter new address to download dialog box in Internet Download Manager-

Code: Select all

PostMessage, 0x111, 32789,,, Internet Download Manager
Can something like this be not done in VLC too?

Please help. Thanks..

Re: WinMenuSelectItem Command is not working for opening Add Sub Title dialog box for VLC Media Player. Is there any rem

Posted: 02 Sep 2020, 12:22
by rommmcek
This should improve reliability:

Code: Select all

WinActivate ahk_class QWidget ahk_exe vlc.exe
WinWaitActive ahk_class QWidget ahk_exe vlc.exe
SendInput, !t
WinWait ahk_class QPopup ahk_exe vlc.exe
SendInput, s

Re: WinMenuSelectItem Command is not working for opening Add Sub Title dialog box for VLC Media Player. Is there any rem

Posted: 02 Sep 2020, 12:36
by boiler
Sabestian Caine wrote:
02 Sep 2020, 07:47
I think this can be done more effectively by PostMassage command. As by these codes I can open Enter new address to download dialog box in Internet Download Manager-

Code: Select all

PostMessage, 0x111, 32789,,, Internet Download Manager
Can something like this be not done in VLC too?
You can follow this tutorial to try to find if there are messages that could be sent to that window via PostMessage to accomplish that.

Re: WinMenuSelectItem Command is not working for opening Add Sub Title dialog box for VLC Media Player. Is there any rem

Posted: 03 Sep 2020, 10:52
by Sabestian Caine
rommmcek wrote:
02 Sep 2020, 12:22
This should improve reliability:

Code: Select all

WinActivate ahk_class QWidget ahk_exe vlc.exe
WinWaitActive ahk_class QWidget ahk_exe vlc.exe
SendInput, !t
WinWait ahk_class QPopup ahk_exe vlc.exe
SendInput, s
Thanks dear rommmcek...

Re: WinMenuSelectItem Command is not working for opening Add Sub Title dialog box for VLC Media Player. Is there any rem

Posted: 03 Sep 2020, 10:56
by Sabestian Caine
boiler wrote:
02 Sep 2020, 12:36
Sabestian Caine wrote:
02 Sep 2020, 07:47
I think this can be done more effectively by PostMassage command. As by these codes I can open Enter new address to download dialog box in Internet Download Manager-

Code: Select all

PostMessage, 0x111, 32789,,, Internet Download Manager
Can something like this be not done in VLC too?
You can follow this tutorial to try to find if there are messages that could be sent to that window via PostMessage to accomplish that.

Thanks dear boiler... I have spent hours to control vlc by postmessage command but nothing is working... i have tried the above link and this link https://forum.videolan.org/viewtopic.php?t=13395 to make postmessage command work for vlc but everything went vain... anyway thanks a lot sir.. :|

Re: WinMenuSelectItem Command is not working for opening Add Sub Title dialog box for VLC Media Player. Is there any rem

Posted: 03 Sep 2020, 14:22
by malcev
You can do it with iaccessible interface help.

Re: WinMenuSelectItem Command is not working for opening Add Sub Title dialog box for VLC Media Player. Is there any rem

Posted: 04 Sep 2020, 11:16
by Sabestian Caine
malcev wrote:
03 Sep 2020, 14:22
You can do it with iaccessible interface help.
please provide more info about iaccessible interface... provide some links etc and tell how to use it... Thanks..

Re: WinMenuSelectItem Command is not working for opening Add Sub Title dialog box for VLC Media Player. Is there any rem

Posted: 04 Sep 2020, 11:24
by malcev