Guest fcadena Posted January 4, 2005 Share Posted January 4, 2005 Hi, I made this script... if winactive("Progression") then Send("{ENTER}") endif if winactive("MSL System Warning") then Send("{ENTER}") endif WinActivate("Progression Workflow Explorer") Asentar_caja() endfunc func asentar_caja() send("A") Send("{ENTER}") WinWaitActive("Asentar caja") Send("{ENTER}") WinWaitActive("Opciones de Impresión") Send("{ENTER }") if winactive("Progression") then Send("{ENTER }") endif if winactivate("Asentar caja") then Send("!{f4}") endif Send("!f") Send("x") endfunc It works over an application Progression from Exact Software.. but no all the times it work ok.... sometimes works no call the func Asentar_caja() ... What can I change or what is wrong? Thank's Link to comment Share on other sites More sharing options...
Josbe Posted January 4, 2005 Share Posted January 4, 2005 Do you need constantly check these windows?Maybe you need a loop.Or these lines runs once?if winactive("Progression") then Send("{ENTER}") endif if winactive("MSL System Warning") then Send("{ENTER}") endif WinActivate("Progression Workflow Explorer") Asentar_caja() endfuncThe upper block's code is another function?I ask because you have EndFunc at the end.Asentar_caja() endfuncPerhaps, you needs to be more specific... AUTOIT > AutoIt docs / Beta folder - AutoIt latest beta Link to comment Share on other sites More sharing options...
Guest fcadena Posted January 4, 2005 Share Posted January 4, 2005 THIS LINES RUNS ONCE... ITS A SEQUENTIAL PROCESS... RUN 2 PROCESS ONE AFTER OTHER... BUT STILL NO WORK PROPERLY.... IF YOU WANT I CAN ATTACH ALL THE SCRIPT..AL OTHER SENCENTES ARE FOR LOCATE THE MENU OPTIONS....Do you need constantly check these windows?Maybe you need a loop.Or these lines runs once?if winactive("Progression") then Send("{ENTER}") endif if winactive("MSL System Warning") then Send("{ENTER}") endif WinActivate("Progression Workflow Explorer") Asentar_caja() endfuncThe upper block's code is another function?I ask because you have EndFunc at the end.Asentar_caja() endfuncPerhaps, you needs to be more specific... <{POST_SNAPBACK}>asentar.au3 Link to comment Share on other sites More sharing options...
Josbe Posted January 4, 2005 Share Posted January 4, 2005 Try to reduce this value: AutoItSetOption("SendKeyDelay", 100) I hope this helps. AUTOIT > AutoIt docs / Beta folder - AutoIt latest beta Link to comment Share on other sites More sharing options...
trids Posted January 5, 2005 Share Posted January 5, 2005 It might also be a good idea to make sure the window "Progression Workflow Explorer" is indeed active before calling Asentar_caja():if winactive("Progression") then Send("{ENTER}") endif if winactive("MSL System Warning") then Send("{ENTER}") endif WinActivate("Progression Workflow Explorer") ;Wait until the window is fully active .. WinWaitActive ("Progression Workflow Explorer") Asentar_caja() Link to comment Share on other sites More sharing options...
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