Jump to content

Script stopping :(


Recommended Posts

#Include <FF.au3>

_FFConnect(Default, Default)
_FFAction("Print")
ControlClick("Print", "", "Button10")
_FFDisconnect()
MsgBox(64, "", "Disconnected from FireFox!")

After the print box comes up, the ControlClick is supposed to click 'OK' and the script should be on its way. But the script is stopping after the _FFAction("Print").

I tested the ControlClick by itself by manually opening a print box and executing only the ControlClick and it works just fine.

Please Help!

Link to comment
Share on other sites

Try putting a small Sleep() between _FFAction and ControlClick. A value of 100 should be sufficient, maybe as low as 10, maybe as high as 500.

edit: maybe WinWaitActive() instead of Sleep()..

Edited by somdcomputerguy

- Bruce /*somdcomputerguy */  If you change the way you look at things, the things you look at change.

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