mrskibone 0 Posted October 18, 2010 I'm trying to determine the position and size of a Flash screen and making it compatible with all browsers. By using Window Info and the Class and ClassnameNN that it provides, this works fine in IE and Firefox Firefox 3 example: $pos = ControlGetPos("[CLASS:MozillaUIWindowClass]", "", "GeckoPluginWindow1") MsgBox(0, "Window Stats: Firefox3", "POS: " & $pos[0] & "," & $pos[1] & " SIZE: " & $pos[2] & "," & $pos[3] ) IE example: $pos = ControlGetPos("[CLASS:IEFrame]", "", "MacromediaFlashPlayerActiveX1") MsgBox(0, "Window Stats: IE", "POS: " & $pos[0] & "," & $pos[1] & " SIZE: " & $pos[2] & "," & $pos[3] ) But using the same information for Opera and Chrome won't give me the information Chrome example: $pos = ControlGetPos("[CLASS:Chrome_WidgetWin_0]", "", "NativeWindowClass1") MsgBox(0, "Window Stats: Chrome", "POS: " & $pos[0] & "," & $pos[1] & " SIZE: " & $pos[2] & "," & $pos[3] ) Opera example: $pos = ControlGetPos("[CLASS:OperaWindowClass]", "", "aPluginWinClass2") MsgBox(0, "Window Stats: Opera", "POS: " & $pos[0] & "," & $pos[1] & " SIZE: " & $pos[2] & "," & $pos[3] ) Does anyone know what I need to do differently to get this info from Chrome and Opera? Share this post Link to post Share on other sites