Код:
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#include <EditConstants.au3>
GUICreate("Input Filter", 300, 30, -1, -1)
GUISetState(@SW_SHOW)
$stopRecording = 2
While GUIGetMsg() <> $GUI_EVENT_CLOSE
Do
$stopRecording = $stopRecording+1
ConsoleWrite("Stop func: "&$stopRecording &@CRLF)
sleep(500)
Until $stopRecording = 1
WEnd
Почему выполнение цикла приостанавливается, если кликаешь и удерживаешь нажатой кнопку мыши на заголовке окна?