The button wizard obtains the handle of the web flash game, taking the 360 browser as an example

Insert picture description here
This is captured by the button wizard


Hwnd = Plugin.Window.Find("360se6_Frame","4399弹弹堂-盛世七载-(495服)--4399网页游戏----专注精品页游的一线游戏平台 - 360安全浏览器 12.2")
zhwnd=Plugin.Window.FindEx(HWnd,0,"Chrome_RenderWidgetHostHWND",0)
zz = Plugin.Window.FindEx(zhwnd, 0, "Container", 0)//都是类名
c = Plugin.Window.FindEx(zz, 0, "Shell Embedding", 0)
c1 = Plugin.Window.FindEx(c, 0, "Shell DocObject View", 0)
c2 = Plugin.Window.FindEx(c1, 0, "Internet Explorer_Server", 0)
c3=Plugin.Window.FindEx(c2,0,"MacromediaFlashPlayerActiveX",0)
//Hwnd2 = Plugin.Window.Find("MacromediaFlashPlayerActiveX","")
//Hwnd3 = Plugin.Window.FindEx(590308, 0, "Static", 0)
Call Plugin.Bkgnd.LeftClick(c3, 718, 564)

You need to get the game window handle step by step from the parent window 360 browser.
Because the handle of the actual game window does not have a class name, the handle cannot be obtained directly. I
refer to these articles. I
want to make a script for page games in the background. The flash window has only the class name and no title.
Insert picture description here
How to get the handle of the webpage "in" by the
Insert picture description here
button wizard [Button Wizard Tutorial] Many situations encountered when getting the handle of the child window
Insert picture description here

Guess you like

Origin blog.csdn.net/weixin_40938312/article/details/107912354