BobFX

Encapsulate, or sandbox AIT interactions?

8 posts in this topic

#1 ·  Posted

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

Share this post


Link to post
Share on other sites



#2 ·  Posted

10 minutes ago, BobFX said:

but if I'm working on something else my own actions are going to mess up the scrip.

Mess up or not is your programming skills!


Regards,
 

Share this post


Link to post
Share on other sites

#3 ·  Posted

4 minutes ago, VIP said:

Mess up or not is your programming skills!

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

Jos


Visit the SciTE4AutoIt3 Download page for the latest versions  - Beta files                                How to post scriptsource        Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

#4 ·  Posted

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,
 

Share this post


Link to post
Share on other sites

#5 ·  Posted

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

Share this post


Link to post
Share on other sites

#6 ·  Posted

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


Visit the SciTE4AutoIt3 Download page for the latest versions  - Beta files                                How to post scriptsource        Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

#7 ·  Posted

@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

Share this post


Link to post
Share on other sites

#8 ·  Posted

Thanks jpm, I'll see if this can help with my routines.

Share this post


Link to post
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