Jump to content

ControlSend ctrl + s to Fire fox popup window in un attended mode


Recommended Posts

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 by PoojaKrishna
Link to comment
Share on other sites

  • PoojaKrishna changed the title to ControlSend ctrl + s to Fire fox popup window in un attended mode

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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...