javascript - Sendmessage to Close "Leave This Page" Popup -


i using vba ie automation , have ran issue closing "leave page" popup. have had success sendmessage in past have been unable identify childhwnd.

ie.quit if ie.busy doevents hwnd = findwindow(vbnullstring, "windows internet explorer") if hwnd <> 0 childhwnd = findwindowex(hwnd, byval 0&, "button", "&leave page ") if childhwnd <> 0 sendmessage childhwnd, bm_click, 0, 0 

the hwnd identified without problem childhwnd comes 0 every time , sendmessage fails fire. used enumchildwindows try identify controls text , classname , "button" , "&leave page ". have tried without additional space , without & sign. still no luck. have suggestions? in advance.


Comments

Popular posts from this blog

facebook - android ACTION_SEND to share with specific application only -

python - Creating a new virtualenv gives a permissions error -

javascript - cocos2d-js draw circle not instantly -