Sbakor Posted October 16, 2010 Share Posted October 16, 2010 Hello, im new to autoit and programming in general, ive went through a lot of basic tutorials and now im trying to create a very basic instant messenger program just to see if i can. Im trying to make a progress bar show a user's ping time to the server, such as if they have low ping the bar is full if high ping its low. was wondering if this is possible. Link to comment Share on other sites More sharing options...
MrMitchell Posted October 16, 2010 Share Posted October 16, 2010 Use a progress bar as a gauge of sorts? GUICtrlCreateProgress() Link to comment Share on other sites More sharing options...
Sbakor Posted October 16, 2010 Author Share Posted October 16, 2010 Use a progress bar as a gauge of sorts? GUICtrlCreateProgress()Yes exactly, Link to comment Share on other sites More sharing options...
MrMitchell Posted October 16, 2010 Share Posted October 16, 2010 Just create yourself a GUI, then add the progress bar. Progress bar can only go 0 to 100 (I assume), so figure out your min and max ping response times and divide the current ping response time by what you would consider the the max that value would be used to set the progressbar. For instance: Min = 50ms Max = 1500ms Random response time would be 350ms. 350/1500 = ~23 so your bar would be about a quarter full. Use Ping() if you didn't already know about it. Link to comment Share on other sites More sharing options...
Sbakor Posted October 16, 2010 Author Share Posted October 16, 2010 Just create yourself a GUI, then add the progress bar. Progress bar can only go 0 to 100 (I assume), so figure out your min and max ping response times and divide the current ping response time by what you would consider the the max that value would be used to set the progressbar.For instance:Min = 50msMax = 1500msRandom response time would be 350ms. 350/1500 = ~23 so your bar would be about a quarter full.Use Ping() if you didn't already know about it.Thanks will give it a try Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now