Jump to content

Problem with buffers


Recommended Posts

Hello,

I have some packages who setup with autoIT.

Individually, each of these installations works perfectly.

The problem is when we want to chain installations.

There, randomly (or at least we don't have better explanations) some package installation stop suddently, in wait of an event.

It does not arrive when we install the package alone.

Rightly or wrongly, I think that it has to stay in buffers systems events which were not acquitted.

In every case, my question is the following one : is there a command which would allow to clear the keyboard buffer or others buffers systems link to my problem ?

Thank you

Link to comment
Share on other sites

Define your terms. What does "...in wait of an event" mean? What does that look like, or how did you determine it was "in wait of an event"?

:(

Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law
Link to comment
Share on other sites

I think that an example is better :

WinWaitActive(TITLE,SUBTITLE)
Send("AAA")

Here my script wait a window with the title "TITLE" and with the subtitle "SUBTITLE".

When this condition is valid, AutoIT send "AAA".

I have several instructions like this one in each script.

And sometimes, when I chain several scripts, one of my scripts (sometimes more) failled and stop on a similar instruction...

I note that the titles are all different in my scripts.

I think that a buffer can be the problem (keyboard buffer ?).

Any idea ?

Link to comment
Share on other sites

$sTitle = "SomeTitle"
$sSubTitle = "SomeSubTitle"
$iTimeout = 30 ; time in seconds to wait for window to become active

If WinWaitActive( $sTitle, $sSubTitle, $iTimeout) Then
    Send("AAA")
    ; any other things you want to happen if win does become active
Else
    ; what you want to do if win does not become active after $iTimeout
    MsgBox(0,"Warning !","Window " & $sTitle & " never became active")
EndIf

GDIPlusDispose - A modified version of GDIPlus that auto disposes of its own objects before shutdown of the Dll using the same function Syntax as the original.EzMySql UDF - Use MySql Databases with autoit with syntax similar to SQLite UDF.
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...