WoWInterface

WoWInterface (https://www.wowinterface.com/forums/index.php)
-   Lua/XML Help (https://www.wowinterface.com/forums/forumdisplay.php?f=16)
-   -   Test ping by lua (https://www.wowinterface.com/forums/showthread.php?t=52862)

John770 11-05-15 04:11 AM

Test ping by lua
 
I want to make a program whit(Auto play media studio) that test my ping and say my ping :D

Please help me :

Give me a source code or an example

Thanks alot:cool:

Fizzlemizz 11-05-15 11:10 AM

If you are just looking for the code to get your latency then:

local _, _, latency = GetNetStats()

Phanx 11-05-15 02:00 PM

However, keep in mind that the values from GetNetStats are cached and won't update more often than every 30 seconds, no matter how often you call the function. Depending on your needs, you could also watch player spellcast events instead, and track the time difference between UNIT_SPELLCAST_SENT and UNIT_SPELLCAST_STARTED for the same spell.

semlar 11-05-15 02:51 PM

I'm pretty sure this is spam since they just stuck the name of some random software in their post.

def9 11-05-15 03:10 PM

Quote:

Originally Posted by semlar (Post 311680)
I'm pretty sure this is spam since they just stuck the name of some random software in their post.

Ya I'd go with this as well. He made the same post over at Demoticz forums and he's received some help, but he's not really giving them then answers they need to help him. Its almost like he wants a program written for him without actually having to learn the coding behind it.


All times are GMT -6. The time now is 11:25 PM.

vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI