wait while the exact sub-window exists
Posted: 15 May 2018 06:13
this is the part of my working script:
the problem is that i need to change the wait 40000 so that there were no necessity to wait 40s everytime
because sometimes 25s is enough (and sometimes even 10s is enough)
explanation:
1. after sendkeys "k" is performed (the foobar's main window is active), a small foreground foobar's sub-window appears and begins the process of converting
this sub-window has the following settings:
then sendkeys "e" has to be automatically performed (the foobar's main window is active)
there should be a 3000ms delay after the sub-window was closed (and before sendkeys "e" was performed)
is it possible? if yes, how exactly should i change this part of my script?
Code: Select all
sendkeys "k"; wait 40000; sendkeys "e"because sometimes 25s is enough (and sometimes even 10s is enough)
explanation:
1. after sendkeys "k" is performed (the foobar's main window is active), a small foreground foobar's sub-window appears and begins the process of converting
this sub-window has the following settings:
2. after conversion is done, the sub-window automatically closesprogram: C:\Program Files\Foobar\foobar2000.exe
a part of the actual window caption: Converting
window class: #32770
then sendkeys "e" has to be automatically performed (the foobar's main window is active)
there should be a 3000ms delay after the sub-window was closed (and before sendkeys "e" was performed)
is it possible? if yes, how exactly should i change this part of my script?