I found on one of the posts your code for recovery scenario. How would you pass the object to this function? I mean I know I have to select “Function Call” in the Recover scenario wizard to call this function, but how would you pass the object to it?
This function works fine if I use it in the Expert View and create the object in it (e.g., set Object = window(“win”).dialog(“dia”)) and then pass it to the function.
Set pwdWindow=Window("hwnd:=" & hwndPwdWindow)
pwdWindow.WinEdit("attached text:=.*","index:=1").Type "USER ID"
pwdWindow.WinEdit("attached text:=&Password:").SetSecure Crypt.Encrypt("PASSWORD")