Hi Guys, Sorry replying on very old post. I want to launch the AS400 connection and pass the credentials. Below is the code I am using and telling to pass the userid and password on specific parameter. But we have lot of AS400's servers and cant have each file for one AS400 server. How can I read the position of the curson on username field and pass username and same for password.      Local $window = WinWaitActive("[CLASS:PCSWS:Main:00400000]","")    Local $AS400hwnd = WinGetHa