Jump to content

Encapsulate, or sandbox AIT interactions?


BobFX
 Share

Recommended Posts

HI,

AIT is an incredible tool, thanks to all that made it possible.

The only problem, since it manipulates keyboard and mouse events, there can be unwanted interactions.

For example, I start a script that process a video clip to convert audio and extract and process subtitles using tools that do not have a command line mode.

Each step takes time before the AIT controled window pop-ups. If I do nothing during that time, all is well, but if I'm working on something else my own actions are going to mess up the scrip.

Is there a way to maybe virtualise the AIT script and all the windows it starts to make them immune to user interaction, or even to other scrips that could run in parallel?

I have a multi-core processor and fast SSD drives to work on, so parallel working is often efficient, except when one script messes wit another...

Link to comment
Share on other sites

  • Developers
4 minutes ago, VIP said:

Mess up or not is your programming skills!

For the last time ..  refrain from these type of comments!

Jos

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to comment
Share on other sites

Why can not I express my idea or personal opinions?
Does it violate forum rules?


And I think I'm not welcome here! and also my last time!

Too many people like to criticize others here!
And it's also why people need to create new accounts for new questions ;)

Regards,
 

Link to comment
Share on other sites

1 hour ago, VIP said:

Mess up or not is your programming skills!

You did not understand the question. The programs work well by themselves, I'm searching a way to make then immune to external interactions.

I must also say that your grammar strange it is...

Link to comment
Share on other sites

  • Developers
5 hours ago, VIP said:

Too many people like to criticize others here!
And it's also why people need to create new accounts for new questions ;)

Care to elaborate?

Jos

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to comment
Share on other sites

@BobFX

It is true that functions as WinWaitActive, SendKeepActive are the minimum to use

Personnally i create a MyWinWaitActivate inplace of WinWaitActive to execute Winctivate if the Windows is not active followed by the WinWaitActive

Func MyWinWaitActivate($Par1, $Par2 = "", $iTimeout = 0)
    If (WinWait($Par1, $Par2, $iTimeout) = 0) Then Return 0
    If Not WinActive($Par1, $Par2) Then WinActivate($Par1, $Par2)
    WinWaitActive($Par1, $Par2)
EndFunc   ;==>MyWinWaitActivate

That solved a lot of script desynchronisation

Take care with AIT

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