Global $aRSS[3][2]
HotKeySet('{Esc}', '_Stop');завершение работы скрипта
_GuiNote()
Func _GuiNote()
Local $hGui = GUICreate('Send & Sleep', 400, 260)
$aRSS[0][0] = GUICtrlCreateInput('', 10, 10, 300, 25, 0x2000);только цифры
__GUICtrlEdit_SetCueBanner(-1, 'Send')
$aRSS[0][1] = GUICtrlCreateInput('', 10, 45, 300, 25, 0x2000); только цифры
__GUICtrlEdit_SetCueBanner(-1, 'Sleep')
$aRSS[1][0] = GUICtrlCreateInput('', 10, 80, 300, 25, 0x2000);только цифры
__GUICtrlEdit_SetCueBanner(-1, 'Send')
$aRSS[1][1] = GUICtrlCreateInput('', 10, 115, 300, 25, 0x2000); только цифры
__GUICtrlEdit_SetCueBanner(-1, 'Sleep')
$aRSS[2][0] = GUICtrlCreateInput('', 10, 150, 300, 25, 0x2000);только цифры
__GUICtrlEdit_SetCueBanner(-1, 'Send')
$aRSS[2][1] = GUICtrlCreateInput('', 10, 185, 300, 25, 0x2000); только цифры
__GUICtrlEdit_SetCueBanner(-1, 'Sleep')
Local $iButton = GUICtrlCreateButton('OK', 10, 225, 70, 25, 0x0001)
GUISetState()
While 1
Switch GUIGetMsg()
Case -3
Exit
Case $iButton
For $i = 0 To UBound($aRSS) - 1
$aRSS[$i][0] = GUICtrlRead($aRSS[$i][0])
$aRSS[$i][1] = GUICtrlRead($aRSS[$i][1])
Next
GUIDelete()
_RunNot()
EndSwitch
WEnd
EndFunc ;==>_GuiNote
Func _RunNot()
While 1
For $i = 0 To UBound($aRSS) - 1
Run("notepad.exe")
WinWaitActive("[class:Notepad]")
Send($aRSS[$i][0])
Sleep($aRSS[$i][1])
WinClose("[class:Notepad]")
ControlClick("[class:#32770]", "", "[CLASS:Button; INSTANCE:2]")
Next
Sleep(10)
WEnd
EndFunc ;==>_RunNot
Func __GUICtrlEdit_SetCueBanner($i_ID, $s_Text)
Local Const $__EM_SETCUEBANNER = 0x1501
Return GUICtrlSendMsg($i_ID, $__EM_SETCUEBANNER, 1, String($s_Text))
EndFunc ;==>__GUICtrlEdit_SetCueBanner
Func _Stop()
Exit
EndFunc ;==>_Stop