All perfect praise be to Allah, The Lord of the Worlds. I testify that there is none worthy of worship except Allah, and that Muhammad,
, is His slave and Messenger.
It is not permissible for you to take those pills while you are fasting because taking them nullifies the fast. Taking those pills is not intended to treat a disease, so that it could be said that it is permissible.
Allah Knows best.