Jump to content

Help - Script AUtoit3


Guest fcadena
 Share

Recommended Posts

Guest fcadena

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

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:

Link to comment
Share on other sites

Guest fcadena

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

Link to comment
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:

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