Hello @immi563
I happen to have an ini file that works with WinScp. Have a look.
[General]
EnableLogging=0
LogMethod=1
RunApp="C:\Program Files (x86)\WinSCP\WinSCP.exe"
AppWindowTitle="Login"
[TaskSequence1]
AppWindowTitle="Login"
AppWindowControlID="[CLASS:TEdit; INSTANCE:2]"
SendKeys=%host%
[TaskSequence2]
AppWindowTitle="Login"
AppWindowControlID="[CLASS:TEdit; INSTANCE:1]"
SendKeys=%username%
[TaskSequence3]
AppWindowTitle="Login"
AppWindowControlID="[CLASS:TPasswordEdit; INSTANCE:1]"
SendKeys=%password%
[TaskSequence4]
AppWindowTitle="Login"
AppWindowControlID="[CLASS:TButton; INSTANCE:5"
Sendkeys={enter}
;AppWindowControlClick=1
You can find our doc here on the PS Automate utility.
PS_Automate Utility | PS
In order to get the AppWindControlID I used the AutoIt utility Au3Info.exe that ships with AutoIT.
You can find details on it here.
AutoIt Window Info Tool
Drag the target over the control you want to use and copy the Advanced (Class) details.
In the last step the click did not work so I used the SendKeys to send Enter.
Hope this helps,
Regards,
John
thank you so much .. this should help