Esp d1 mini pro wifi issue

hi do I enable the wemos d mini pro as wifi so that i can configure which wifi the wemos wants to connect. like this one
image
right now I am using the code to connect the WIFI. but it gives me some hassle.
here’s my method right now. but I want some easy way like this one. I’ve seen it on YouTube,
image