I dont know about any of the gurus of WinRunner and people who know more about it than i do, but i'm confused on what your program is doing and why are you trying to find a username in a window? Please give more detail in your question and example
Never argue with an idiot, they bring you down to their level and beat you with experience -- Dilbert
when I click on contacts, a small window will pop up and we need to double click on it in order to get that value. But when I record in it winrunner, it does not recognise the double click and that value is not displayed.
You could try recording using the keyboard (tab, up arrow, down arrow, space bar, F keys)I have found that ignored mouse actions can often be trapped as keystrokes.
If this works there may be clues as to how to parameterise