Thanks PegLegTV. While I was recording this video and writing this post, you posted a response which seems to have the same purpose of what I just made. Take a look below...
This is some of the data about the chrome window which I use in my video. In autoit, I can use a combination of any of these parameters below to make sure I'm attaching to the right window:
Title: Google -
Google ChromeClass:
Chrome_WidgetWin_1>>>> Visible
Text <<<<
Chrome Legacy WindowThe video below shows how VC's method is failing and confirming the reason is probably the existence of more than one process for chrome. Btw, the wiki
mentions it can fail and I'm sure James already knows the exact situations where it can fail. I'm not complaining at all.
The video also shows how I can solve that situation with external scripting, but wouldn't like to go that path because it makes the stuff more complicated because then I would need to make my script to talk with VC and vice versa. Probably will not justify the effort. Also will need to keep track of external source code, etc, etc...
The interesting thing is that both VC and autoit scripting are using some windows api to get control of windows, so maybe James can find a way to implement different matching techniques? If not, that's fine anyway as I can workaround it with scripts as shown in the video.
https://youtu.be/GI0Z981PbMQ