Hello ! i'm trying to build a script which will write some commands on Putty. However, many instances of Putty are lauched so I have to route my commands to the good window ! Here is my script : Local $title = "WAS 5 - " & $project
$id = Run("G:\putty.exe -load myconf")
$hWnd = _GetHwndFromPID($id)
WinSetState ($hWnd , "", @SW_MAXIMIZE)
WinWaitActive($hWnd)
WinSetTitle($hWnd, "", $title)
If WinActive ($hWnd, "") Then
ControlSend ($title, "", "","ssh -l login server{ENTER}")
Sleep(750)
ControlSend ($title, "", "","echo './myscript.sh " & $project & "'{ENTER}")
EndIf Here is my problem : when my window isn't active, my script manages to write in the good Putty Terminal however, strange character are sent... For example : it doesn't write echo './myscript.sh test' but echo ';.-./myscript.sh T_;est' Could you help me ? I have already tried to set "opt" parameter to the controlSend Function but nothing changes... Thanks and have a nice day !