BobFX Posted July 23, 2017 Posted July 23, 2017 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...
Trong Posted July 23, 2017 Posted July 23, 2017 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,
Developers Jos Posted July 23, 2017 Developers Posted July 23, 2017 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.
Trong Posted July 23, 2017 Posted July 23, 2017 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,
BobFX Posted July 23, 2017 Author Posted July 23, 2017 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...
Developers Jos Posted July 23, 2017 Developers Posted July 23, 2017 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.
jpm Posted July 24, 2017 Posted July 24, 2017 @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
BobFX Posted July 24, 2017 Author Posted July 24, 2017 Thanks jpm, I'll see if this can help with my routines.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now