#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
GUICreate("")
Local $idMyedit = GUICtrlCreateEdit("Для чего такое может понадобиться?" & @CRLF, 0, 0, 200, 200, $ES_AUTOVSCROLL + $WS_VSCROLL)
Local $idButton_Notepad = GUICtrlCreateButton("Run Notepad", 120, 220, 85, 25)
GUISetState(@SW_SHOW)
While 1
Switch GUIGetMsg()
Case $idButton_Notepad
$iPID = Run("notepad.exe", "", @SW_SHOWMAXIMIZED)
WinWait("[CLASS:Notepad]", "", 10)
Local $text = GUICtrlRead($idMyedit)
for $i = 0 to StringLen($text)
Sleep(100)
Send(StringMid($text,$i,1))
next
Case $GUI_EVENT_CLOSE
ExitLoop
EndSwitch
WEnd
|