VLC remotely control from C#

前端 未结 6 1304
孤城傲影
孤城傲影 2021-01-02 04:32

i\'m trying to control the VLC Media Player from C#. I tried getting a handle on the window with the FindWindow() command from .Net but as i found out the name of the window

6条回答
  •  一整个雨季
    2021-01-02 05:18

    If what you are trying to do is control a previously running executable, check out the Process class to enumerate through all the current processes or do it by name. Check the executable to match vlc.exe. You can then get a handle to the main window and do some P/Invoke to send messages as you are doing with your other executables. This is obviously riddled with potential problems such as if the there are changes to the keyboard shotcuts.

提交回复
热议问题