If you keep dreaming when you sleep and wake up feeling tired, you can take several types of drugs: 1. If you are suffering from hypo-neurosis or neurasthenia, you can take melatonin, which can improve your sleep and relieve the poor quality of sleep caused by plant nerve dysfunction, and relieve fatigue. 2. If you keep dreaming when you sleep, you can take drugs to improve the quality of sleep, such as eszopiclone. 3. If you keep dreaming while sleeping and feel tired after waking up, it is usually caused by insufficient blood supply to the brain and heart, so you can give the right medicine such as compound salvia tablets, salvia pills, ginkgo biloba, astragalus, ginseng and rhodiola to improve the tiredness caused by insufficient blood supply.