When the priority of a subroutine is set to 1, even if the priority of the GuiSize subroutine is set to a higher level, it will not be executed immediately. Why?
As in the example below, when the TEST button is pressed, the window is zoomed within 5 seconds and the edit control is not redrawn.
Code: Select all
Gui, +Resize
Gui, Add, Edit, w380 vedit
Gui, Add, Button,, TEST
Gui, Show, h200 w400
return
GuiSize:
Thread, Priority, 2
GuiControl, MoveDraw, edit, % "w" A_GuiWidth - 20
return
ButtonTEST:
Thread, Priority, 1
sleep, 5000
return