Dear Rohwedder, you made me understand, thank you very much !
I don't know if my code was clear enough to understand what I intended to do : I'd like to change position and/or buttons of a window as soon as possible after loading it. So I wanted to run a "settimer" routine just before creating the window so that the routine is ready to modify the window. If the timer is loaded a long time enough (100ms) after the settimer command, the window has the time to load but this way of doing doesn't fit the "as soon as possible" requirement. If the timer is loaded too quickly (10ms), the window doesn't have the time to appear and the winwait blocks. I could also run the timer periodically (with no blocking stuff in it) but I'd like it's routine to execute once.
For your information, here is the window :
Code: Select all
MsgBox, 35, %title% - Confirmation,blabla
And here is what I execute in routine :
Code: Select all
watchBoxConfirmWindow:
{
winwait, %title% - Confirmation
controlSetText, Button1, This, %title% - Confirmation
controlSetText, Button2, That, %title% - Confirmation
controlSetText, Button3, Zout, %title% - Confirmation
return
}
I can't put the controlSetText lines after loading the window (without any settimer stuff), because the lines won't be executed until the window is closed.
If you have any idea for doing that, It would be appreciated