Some of the medicines used to treat RLS are also used to treat Parkinson's disease. Some of these medicines make dopamine. Others act like dopamine. This controls the urge to move the legs.