[edit] I intend to build some external add on to VLC player, so for that I'm using the FindWindow
type of functions in order to control the VLC player from my program.
What's the best programming practice to control external window from your own window?
Is the FindWindowEx
the best practice, or FindWindow
better for that, or is there some developed lib for it? Any tips for using FindWindowEx
like it should be used?
[edit] Also, in many cases the titles may vary along different languages,
so hwnd = FindWindow(null, "Calculator")
may not work if the title is not "Calculator" but "Simulateur" [French] or "Rechner" [German]. How can I make sure it finds the window, no matter what is the OS language?
And another side question - is there any possibility to anchor my application next to the VLC player, in way that any movement of the vlc player window will also move my application? I couldn't find any appropriate function for that.