Each machine has multiple chrome (custom chromium) windows open simultaneously, and each of those has multiple active tabs. Every piece of this puzzle seems to be dynamic. If I click on the window frames with object wizard I get something like:
If I click within the frame on the website within that same frame, I get something like:Window: 54020C [Chrome_WidgetWin_1]
If I click on another tab in same window, I get another like the above where the top level matches, but other window number deoesn't.Window: 580478 [Chrome_RenderWidgetHostHWND] Top level: 54020C [Chrome_WidgetWin_1]
Straight forward enough... except that it never matches from machine to machine, and even if I relaunch the same exact profile and hit the same exact sites on the same exact tabs, ALL the numbers change. Top level, interior windows... all different. I've played around with trying to use handles, and I just can't find persistent info to work with.
So... I'd think I'd want to use window NAMES like "Chrome", etc. Unfortunately, the window names change constantly depending on which tab I'm on, and even which subpage of a site I happen to be on within that page... often without a single persistent word to use a wildcard with. Even when I can, it only works when there's a single browser window open as multiple sessions open plus wildcard names often leads to MS selecting the wrong window.
I've done my best for days now to work this out, but I'm just not seeing how to consistently do simple things like SetFocus. I'm getting the impression I need to be finding parents, then parsing which child window or something like that... but again, the numbers are different every time, and on every machine.
Just looking for the simplest way to say things like set focus on the Chrome session 1, and switch to tab 2. I've been handling the tabs via chrome keyboard shortcuts. Am I going about this all wrong?