Jump to content
UBot Underground

Specify Filename In Save As Dialog Using Windowscommands.dll


Recommended Posts

It is almost 2016.  What is currently the best method for typing a text filename into a windows Save As dialog? Here is my current code:

     click(<pid=87>,"Left Click","No")
    wait(.5)
    change checkbox(<id="rsAddMap">,"Checked")
    click(<id="rsPhoto">,"Left Click","No")
    wait(.5)
    click(<id="rsViewReport">,"Left Click","No")
    wait for element(<id="download">,30,"Appear")
    wait(.5)
    set(#url,$replace($url,"#",""),"Global")
    set(#pt1,"www.targetsite.com","Global")
    set(#pt2,$scrape attribute(<tagname="iframe">,"src"),"Global")
    navigate("{#pt1}{#pt2}","Wait")
    wait for element(<id="download">,30,"Appear")
    wait(10)
    click(<id="download">,"Left Click","No")
    comment("What can I do here to interact with the Save As dialog?" )
    stop script

 

The above code takes me as far as opening the windows Save As dialog box and specify a default file name.  How do I specify my own filename and then click the enter button?

 

 

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...