Hello, Welcome to Just Answer
Are you available for chat now?
Looks like you have stepped away from your computer . I will post the answer here and switch over to the Q&A pattern so that you can view the answer later.
It is likely that the pimple like things on the eyelid are blocked meibomian glands. These glands are kind of modified sebaceous glands present in the eyelids.
Their secretions may get pent up from blocked meibomian gland ducts. These ducts can get blocked from trivial cause such as rubbing of eyes or from associated blepharitis( inflammed lid margins).
The treatment lies in regular warm compresses ( helps to release the pent up secretions), gentle lid massage with the finger tips.
Once the pimple like things subside, the lid margins can be gently scrubbed with 50:50 diluted baby shampoo( applied with the help of a Q-tip to the lidmargin only).
In case of persistent blocked ducts( even after a month of the above treatment), it would be better to get the eye examined by an ophthalmologist for a closer look.
Please feel free to ask follow up questions, if any.