Jump to content

possible to do it ?


undead
 Share

Recommended Posts

  • Moderators

AutoIt is not a multi thread. But there are some options of including the second script. Take a look at AdlibEnable() in the help file, that may help a bit.

Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.

Link to comment
Share on other sites

ok if i understand i can do like that ? :

AdlibEnable ( "CheksIFsomeErrorhere" , 60000 )

Func CheksIFsomeErrorhere()

If WinActive("Error") Then

WinKill("Error")

EndIf

If WinActive("sraczka") Then

WinKill("sraczka")

EndIf

EndFunc

;my main script sstarts

while 1 ..............

Wend

SO WHEN my main script will be working then that function on start will be checking for that windows all the time ? every one minute as i wrote there ?

thanks for helping :P

Link to comment
Share on other sites

AdlibEnable is nice, but it can be stopped by some dialogs! Check this discussion, where you can find some nice tricks about how do run another au3 script from the first one or restart the main exe and run another part of its script.

BTW.. "scrazka"?..how disgusting name of window. Are you Polish right? Some of us understand! :P

Link to comment
Share on other sites

hmm so here can be problem but my program have msg boxes and file open dialog only at first start then he read all from ini file.

If he will only pauses main script while doing adlib script it is ok. I must test it and maybe after first run program should be resetted and then adlib function without any msg boxes will be working cool. Thx anyway

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