Jump to content

ControlSend not working


Recommended Posts

I'm just starting to mess with AutoIt and pretty much copied this code from the examples provided (in the help documentation) for ControlSend.

Unfortunately something isn't right and I can't figure it out.

Any help is greatly appreciated.

; Start OpenOffice and open Magic Set Spreadsheet
Run("C:\Program Files\OpenOffice\program\scalc.exe")
WinWaitActive("Untitled 1 - OpenOffice.org Calc")
Send("!f!o")
WinActivate("Open","Look in")
ControlSend("Open","","[CLASS:Edit; INSTANCE:1]","C:\Documents and Settings\mainuser\My Documents\Magic\MTGO Sets.ods")
Link to comment
Share on other sites

After...

Send("!f!o")

... you aren't waiting for anything.

Lar.

Tried this too.. Not working either.

; Start OpenOffice and open Magic Set Spreadsheet
Run("C:\Program Files\OpenOffice\program\scalc.exe")
WinWaitActive("Untitled 1 - OpenOffice.org Calc")
Send("!f!o")
WinActivate("Open","Look in")
ControlSend("Open","","[CLASS:Edit; INSTANCE:1]","C:\Documents and Settings\mainuser\My Documents\Magic\MTGO Sets.ods")
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...