Sign in to follow this  
Followers 0
Guest fcadena

Help - Script AUtoit3

5 posts in this topic

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

Share this post


Link to post
Share on other sites

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()
endfunc

The upper block's code is another function?

I ask because you have EndFunc at the end.

Asentar_caja()
endfunc

Perhaps, you needs to be more specific... :idiot:

Share this post


Link to post
Share on other sites

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()
endfunc

The upper block's code is another function?

I ask because you have EndFunc at the end.

Asentar_caja()
endfunc

Perhaps, you needs to be more specific...  :idiot:

<{POST_SNAPBACK}>

asentar.au3

Share this post


Link to post
Share on other sites

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()

:idiot:

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
Sign in to follow this  
Followers 0