И так тоже не вышло:
Код:
#include <BlockInputEx.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
If ($CmdLine[0]) And ($CmdLine[1] = '/send') Then
_Send()
Exit
EndIf
Func _Send()
_BlockInputEx( 2 )
sleep(5000)
_BlockInputEx( 0 )
EndFunc
$Form1 = GUICreate("test title", 280, 166)
$Label1 = GUICtrlCreateLabel("Отсчет пошел", 51, 22, 171, 33)
GUICtrlSetFont(-1, 18, 400, 0, "MS Sans Serif")
$Label2 = GUICtrlCreateLabel("10", 121, 79, 32, 36, $SS_CENTER)
GUICtrlSetFont(-1, 20, 400, 0, "MS Sans Serif")
GUISetState(@SW_SHOW)
for $i = 9 to 0 step -1
Sleep(1000)
GUICtrlSetData($Label2, $i)
Next
GUISetState(@SW_HIDE)