Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 14 additions & 11 deletions Examples/_Console_Attach.au3
Original file line number Diff line number Diff line change
@@ -1,17 +1,20 @@
#AutoIt3Wrapper_Au3Check_Parameters=-d -w 1 -w 2 -w 3 -w 4 -w 5 -w 6 -w 7
#include '..\Console.au3'

#include <Console.au3>

$iPid = Run("cmd.exe")
ProcessWait($iPid)
_Example()
Exit

_Console_Attach($iPid)
Func _Example()

$aSize = _Console_GetScreenBufferSize()
Local $iPid = Run("cmd.exe")
ProcessWait($iPid)

$sHeader = _Console_ReadOutputCharacter(-1, $aSize[0], 0, 0)
_Console_Attach($iPid)
Local $aSize = _Console_GetScreenBufferSize()
Local $sHeader = _Console_ReadOutputCharacter(-1, $aSize[0], 0, 0)

MsgBox(0, "Test", $sHeader)
MsgBox(0, "Test", $sHeader)

_Console_Free()
ProcessClose($iPid)
Exit
_Console_Free()
ProcessClose($iPid)
EndFunc ;==>_Example