Jump to content

Problem with ControlSend


Recommended Posts

Hi,

I'm writing a script to install Firefox and then to install the R-Kiosk Addon. So far, it's all good up through the install. I get to the end of the install and the application launches. I then try and open the XPI file for R-Kiosk. I'm trying to use ControlSend but all it does is open the File Open dialogue and sits there with the cursor blinking in the File Name field that I'm trying to pass the file name into.

Here's my script thus far:

Run ("E:\firefox Setup 3.5.8 /s")

WinWaitActive ("Mozilla Firefox Setup")

Send ("!n")

WinWaitActive ("Mozilla Firefox Setup")

Send ("!u")

Send ("!n")

WinWaitActive ("Mozilla Firefox Setup")

Send ("!i")

WinWaitActive("Mozilla Firefox Setup", "Completing the Mozilla")

Send ("!f")

WinWaitActive("Mozilla Firefox Start Page - Mozilla Firefox")

Send ("!fo")

WinActivate("Open File")

ControlSend("Open File", "File Name", "Edit1", "r-kiosk-0.7.2-fx.xpi")

Thoughts? Suggestions?

Link to comment
Share on other sites

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...