Re: [VB2010] need a lil help with a launcher
sorry web page crap has been solved for about 30 min ago and about ur comment about looking um how do u think i did most of what i did ive spent prolly 20+ hours googling to get good examples of what im trying to do and the time crap i tried but i cant seem to get it down
and the double post stuff i dont know how that happened as all i did was edit my post
Re: [VB2010] need a lil help with a launcher
so... how long do u actually think people will keep the launcher open? lol anyways do this, and just make a php that pulls the number of players online, since i assume that your database handles online users, example; online 1 for yes 0 for no, and make the php do like..
Code:
SELECT * FROM users WHERE online = '1'
etc.
Code:
Dim URL as string = "http://192.168.1.1/onlineplayer.php" 'IDK your url..
Dim OnlinePlayers as string = New System.Net.WebClient().DownloadString(url)
onlineusersTextbox.text = OnlinePlayers
ultimately, you could put a timer into your form, make it start with
timer1.start
on the form load, then change the interval either in the properties panel, or before.after starting the timer in the form load, with;
timer1.interval = '10000'
just an example, make the interval how ever long you want the function to happen in ms.
then double click the timer and under the timer tick event, just put the code to pull the information, etc.
i use it in an example here:
http://forum.ragezone.com/f144/vb-ne...1/#post7318467
hope i helped.
Re: [VB2010] need a lil help with a launcher
Quote:
Originally Posted by
-DefaulT
so... how long do u actually think people will keep the launcher open? lol anyways do this, and just make a php that pulls the number of players online, since i assume that your database handles online users, example; online 1 for yes 0 for no, and make the php do like..
Code:
SELECT * FROM users WHERE online = '1'
etc.
Code:
Dim URL as string = "http://192.168.1.1/onlineplayer.php" 'IDK your url..
Dim OnlinePlayers as string = New System.Net.WebClient().DownloadString(url)
onlineusersTextbox.text = OnlinePlayers
ultimately, you could put a timer into your form, make it start with
timer1.start
on the form load, then change the interval either in the properties panel, or before.after starting the timer in the form load, with;
timer1.interval = '10000'
just an example, make the interval how ever long you want the function to happen in ms.
then double click the timer and under the timer tick event, just put the code to pull the information, etc.
i use it in an example here:
http://forum.ragezone.com/f144/vb-ne...1/#post7318467
hope i helped.
to the first part of ur post its already working i have a program that reads the managerserver.exe basicly managerserver is like a login server so to speak it dont write anything so this tool i have reads a offset in the exe and outputs it to a txt file thats how im getting players online count and it dont matter how long launcher is open for that is besides the point....anyways i just did it with a refresh button cuz i cant get this stupid timer crap working