Chrome Legacy Window

Started by domvalle@comcast.net, September 10, 2025, 09:22:50 PM

Previous topic - Next topic

domvalle@comcast.net

I have this phone app that connects to my office PBX.
Control manager can operate but only with RoboScripter.
If I try to re-use the code it will not work...
...hmmm, the ID does change on running but I'm unable to find the new ID like RoboScripter does.
Any suggestions for re-using the below?
...also, this app opens 7 separate PIDs always shows a winstate of -1 @HIDDEN, duh!

;RoboScripter
; Made with
;   RoboScripter ver: 45
;   CtlMgr ver: 44043
AddExtender("wwctl44i.dll")

;Launch Program
Run("C:\Users\ddellavalle.MVNHC\AppData\Local\Programs\com.sangoma.switchvox.desktopsoftphone\Sangoma Phone.exe","")

;Title: Chrome Legacy Window
;ID: 41331536
;Class: Chrome_RenderWidgetHostHWND
;Level: 2

; Default cWndByWndSpec seems OK here
window1=cWndByWndSpec("Chrome_WidgetWin_1","Sangoma Phone",3,41331536,41324144,0)
ControlHandle=cWndByID(window1,41331536)
cSetFocus(ControlHandle)  ; Activates Window
TimeDelay(1)
SendKey(`123`)     ;Sends Keystrokes


domvalle@comcast.net

Oh, forgot to mention, this window does not respond to winactivate or other window cmds

td

Try one of the many other WIL functions for extracting the window handle for a window. d

[edit]
One technique to consider is some combination of the AppProcID, WinItemProcID, WinItemChild, and perhaps DllHwnd.
"No one who sees a peregrine falcon fly can ever forget the beauty and thrill of that flight."
  - Dr. Tom Cade

JTaylor

I have no idea whether this will help but if you don't find a solution using the native WinBatch functions, maybe this will give you an idea.   It no longer retrieves the Chrome URL since v38 was a long time ago but maybe the way it gets the Handles will be of use.  I only post it because of the "Chrome Legacy" text in your post.

Jim

domvalle@comcast.net

thank you...

So I spent many hours collecting window info on this app but still cannot find the ID: that Robo does, hmmm!
...My guess is this app will just not cooperate!
here is all the other info but cannot make anything work out side of Robo...

Window Analysis 6.0
Windowname : Sangoma Phone
Max Level : 2

Parent
    Child
1       Class         Id   Name      WndStyle   WndStyleEx   ClassStyle
0        Chrome_WidgetWin_1   0   Sangoma Phone   67305472   524328      8
0   1    Intermediate D3D Window   0          1476395008   2621476      32

#WIN$ID#00491792
0 Title Sangoma Phone
1 ID 0
2 Class Chrome_WidgetWin_1
3 Parent 0
4 First Sibling 2166698
5 Previous Sibling 2954072
6 Next Sibling 198018
7 Last Sibling 65868
8 First Child 7476756
9 Owner 0
20 Window style 67305472
21 Window extended style 524328
22 Class style 8


#WIN$ID#006B0FA6
0 Title Sangoma Phone
1 ID 0
2 Class Chrome_WidgetWin_1
3 Parent 0
4 First Sibling 2166698
5 Previous Sibling 3480206
6 Next Sibling 263476
7 Last Sibling 65868
8 First Child 660380
9 Owner 0
20 Window style 348585984
21 Window extended style 256
22 Class style 8


domvalle@comcast.net

UPDATE:
...OK, so just found out that this app now has a browser version!
That works with winActivate!
...so scratch this Chrome Legacy Window!!
thanks,

SMF spam blocked by CleanTalk