Thread Tools Display Modes
11-05-15, 04:11 AM   #1
John770
A Kobold Labourer
Join Date: Nov 2015
Posts: 1
Test ping by lua

I want to make a program whit(Auto play media studio) that test my ping and say my ping

Please help me :

Give me a source code or an example

Thanks alot
  Reply With Quote
11-05-15, 11:10 AM   #2
Fizzlemizz
I did that?
 
Fizzlemizz's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Dec 2011
Posts: 1,871
If you are just looking for the code to get your latency then:

local _, _, latency = GetNetStats()
__________________
Fizzlemizz
Maintainer of Discord Unit Frames and Discord Art.
Author of FauxMazzle, FauxMazzleHUD and Move Pad Plus.
  Reply With Quote
11-05-15, 02:00 PM   #3
Phanx
Cat.
 
Phanx's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2006
Posts: 5,617
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.
__________________
Retired author of too many addons.
Message me if you're interested in taking over one of my addons.
Don’t message me about addon bugs or programming questions.
  Reply With Quote
11-05-15, 02:51 PM   #4
semlar
A Pyroguard Emberseer
 
semlar's Avatar
AddOn Author - Click to view addons
Join Date: Sep 2007
Posts: 1,060
I'm pretty sure this is spam since they just stuck the name of some random software in their post.
  Reply With Quote
11-05-15, 03:10 PM   #5
def9
A Cobalt Mageweaver
 
def9's Avatar
AddOn Author - Click to view addons
Join Date: Jan 2008
Posts: 219
Originally Posted by semlar View Post
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.
__________________
Epiria, level 100 Ret/Holy Paladin
Simkin level 100 Combat Rogue
Feldeemus, level 100 Arcane Mage
  Reply With Quote

WoWInterface » Developer Discussions » Lua/XML Help » Test ping by lua

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off