I want to use AutoIt under Windows 10 to automate a PuTTY session. However, AutoIt is not recognizing any text inside of the PuTTY window.
This is what I have done ...
#include <Constants.au3>
;; The following creates new window to a PuTTY ssh session on
;; a different machine and waits for this window to become
;; active. The title of the window is "aa" ...
Run("putty.exe -load aa")
$w = WinWaitActive("aa")
;; The following properly pops up after the ssh window is fully open and active ...
MsgBox($MB_OK, "Status", "ssh window open")
;; This properly waits 5 seconds. Text is showing in the ssh window ...
Sleep(5000)
$text = WinGetText("aa")
;; But this just pops up an empty message box with the title "Text" ...
MsgBox($MB_OK, "Text", $text)
I also tried WinGetText($w), and I got the same results.
I want to capture the PuTTY window text. What am I doing incorrectly?
Thank you very much in advance.