I have been using this for years, and thought that I understood it. But some recent scripts have been causing me some problems, and I thought I would use this again, but am not having the success I expected.WaitReady suspends script execution until the foreground window has finished processing mouse, keyboard, show window, and optionally, paint events. Issue 1 to include paint events, and 0 to exclude paint events. This command can therefore be used to wait until the active application is ready to receive keyboard and mouse events in most situations.
Could you please provide a more detailed explanation of the differences, and perhaps a longer list of what might constitute painting activities? The operative words in the Help section may be "most situations"
I am also finding that if I Single Step through a script that has WaitReady>1, that I cannot proceed because it will never be ready? Is that normal? If yes, can we have a way to step over that command in the Single Step Mode?
My current problem is specifically when doing muliple Search/Replace tasks in TextPad. I open the Replace window, Send in the Search string, Tab, Send in the Replace string, do Replace all. I am then using WaitReady> to wait for completion before the loop continues for next Search/Replace. At this time I will probably change to WaitRectChanged or other image process. But I really expected that WaitReady would do this for me.
Thanks for listening.