Sign in to follow this  
Followers 0
mrskibone

ControlGetPos in Chrome and Opera

1 post in this topic

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



Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0