Normal
Try GUIWindowManager.Process in place of the xxxxx, it may also be necessary to refresh the control manually via GUIControl.RefreshControl.The purpose of this method is basically to yield time for other tasks in the current thread to be performed, such as rendering. It's advisable to try and avoid local wait loops such as the one in the previous example, during those 2.5 seconds if you don't yield then the UI will be unresponsive.In the above code snippet you should also consider yielding during the while loop.Let us know how you get on.
Try GUIWindowManager.Process in place of the xxxxx, it may also be necessary to refresh the control manually via GUIControl.RefreshControl.
The purpose of this method is basically to yield time for other tasks in the current thread to be performed, such as rendering. It's advisable to try and avoid local wait loops such as the one in the previous example, during those 2.5 seconds if you don't yield then the UI will be unresponsive.
In the above code snippet you should also consider yielding during the while loop.
Let us know how you get on.