Hi Pat,
Welcome to the HP Forums!
I would like to take a moment and thank you for using the forum, it is a great place to find answers.
For you to have the best experience in the HP forum, I would like to direct your attention to the HP Forums Guide First Time Here? Learn How to Post and More.
I understand that your mouse appears to work correctly when you are using the battery, but is very erratic when the notebook is connected.
Here is a link to Troubleshooting Mouse Problems (Windows 7, Vista, XP) to assist you.
You can also run the The HP Support Assistant or MS Fix It to help resolve problems and look for updates.
If this has not resolved the issue, I suggest calling HP technical support.Please call HP technical support at 800-474-6836. If you live outside the US/Canada Region, please click the link below to get the support number for your region. HP Technical Support Sitemap