PoojaKrishna Posted October 11, 2021 Posted October 11, 2021 (edited) Hi, I am trying to save the whole content of a Firefox pop-up window to a text file. >>>> Window <<<< Title: Mozilla Firefox Class: MozillaWindowClass >>>> Control <<<< ClassnameNN: MozillaCompositorWindowClass1 $HWND =WinGetHandle("[TITLE:Mozilla Firefox]") WinSetState($HWND, "", @SW_MAXIMIZE ) WinActivate($HWND) sleep(3000) ;ControlSend($HWND, "", "[CLASS:MozillaCompositorWindowClass; INSTANCE:1]", "^s") ;send("^s") sleep(2000) $hSaveAs = WinGetHandle("[TITLE:Save As]") $hCtrl = ControlGetHandle ( $hSaveAs, "", "[CLASS:Edit; INSTANCE:1]" ) ControlSetText ( $hSaveAs, "", $hCtrl, "C:\Test\new.txt" ) sleep(3000) ControlClick ( $hSaveAs, "", "[CLASS:Button; INSTANCE:2]" ) In attended mode the Send method works fine to initiate the save as dialog but in un attended mode nothing seems to work. The content type of the page is: text/plain Any input is highly appreciated. I am stuck on it for many hours. Edited October 11, 2021 by PoojaKrishna
Bert Posted October 11, 2021 Posted October 11, 2021 The Vollatran project My blog: http://www.vollysinterestingshit.com/
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now