Hello,
If you could get the username from home page (if it is displayed on homepage) then you can create a window trigger (When window opens) on home page window. What you can do is create task that will extract username from home page. Now, create trigger for this task. Please follow below mentioned steps,
Select your task from Task list.
Select the Type as Window.
From Window Title drop down, specify the Title of homepage window. If you do not see the title, then open the webpage and click on Refresh.
From the Action, select 'When window opens' & save the trigger.
Every time the webpage window opens, it will launch your task i.e. will extract username.
Alternatively, you can automate the login process. What you can do is, create task that will open the login page and then insert Pause command to pause the task so that user can enter username and password. After pause, insert Extract data command to extract username from respective textbox and then insert command to click on 'Login' button. So, the user doesn't have to click on Login button, he just have to enter Username, Password and click on 'Resume' button. The text format of commands would appear as follows,
1. Open "http://www.mail.yahoo.com"
2. Pause
3. Extract data from Control type : Textbox, Webpage :
https://login.yahoo.com/config/login_verify2?&.src=ym to $Prompt-Assignment$
4. Click on 'Sign In' button in the webpage 'Yahoo! Mail: The best web-based email!'
Hope that helps.