the WeakAura you are looking for is very basic and easy to create. Here is how you do it:
Create a new aura (use “Text” or “Icon”)
Name the Aura
If you want to see a specific text (I choose “Hello World”), enter %c <your Text> in the Display tab and click Accept
Switch to the Trigger-Tab
Select the “Status” Trigger type, this will allow you to check a certain state, e.g. the Range
Therefore, select “Range Check” for the Status
Select the Unit you want to check the range for (set it to Focus)
If you want to check a specific distance (e.g. 40 yards), select the Distance box and then use the Operator <= and 40 for the Distance Field
And there you go.
Here is a sample if you run into trouble: !novtpQnmq0)lRup0dlkjeQOsThauqSvSbkouUnGjXb82GDK)GUSh43EhBNfHAVSsrjtgpZBEZBgdXqbqobKk3dAkTMgUGbKfRlM)uEgqQLcdH)gdY7hdeQO8OuTuYfgGmjlViBfqEDrDTMzGPPdIJgKgL810bjrd7Na1poicrMRBBOxkyVIj9PYhMXAAKx3TrQAQE46paYLoaYth2lAyCYxhomb)maik2bUuuCPfPKXNVLJCvpAw5lXh(8yBdqkTAJ8Kd91TvudgPT7l1Ihqn8Yn8kZrGmc)h9wAqm1U2vBOkdAG4wZfC9XGnAg8I2gf)WbMYfEUxT6C4n98cbXy1yv1ST09APA)ZYkgmgpXUNDMH6NTUM)kq2ozePylPy0kmzRWFwGLOizvuhVackZkQ4aICAuavRJpJDPWDmvw6kNGEIPd8v3Ik6tvD)5YiaWDuyPI5Pazz285aPR0RCHDD3KJSYF3v1TYwgYePciF77iTy7rYhgaZYMVC665(AiUtgUNwEnZPWNzfHi8Ir(JXrqOxX9NfTVpb8ITHPe0MFHISR)ZJ)cqEbNP86lazE2u3CI1u3T0nErrXINX0W1GPUsAyA0DPuuXVd1Afkp4SIAOU5w3I7uN3qZqMSkll3Da)uq4VBF420yB3iM5Wx)(exiXRiyror5IpE032W(yXBc39WUuXF76UFAPvUU56UIcF7wZpeA1)ivvBu0wGS5MfoRzvHT(8KiCnQrs9xWXvLs)DEBJH)(oEzdvR)pVA3T()XPxPBKQWTb3tI)DF)7u37qUajPxCsV0EO2FgDNM4ob(7