The slider goes berserk on some programs
Some programs? Which?
Did you spill anything on your keyboard? Unplug it and see. Same with the mouse for the heck of it.
Have you tried rebooting your computer?
Hit Control-Alt-Delete and start Task Manager: Are there any open applications you don't recognize?