ThyElite Forums  
Go Back   ThyElite Forums > MyCoke Talk > Cheat Talk
Reload this Page Coke studios status (VB6)
Reply
 
Thread Tools Display Modes
(#1)
Old
DefectiveProduct is Offline
The Best
DefectiveProduct is on a distinguished road
 
Posts: 771
Join Date: Jul 2006
Location: O_o
Default Coke studios status (VB6) - 08-18-2006, 02:10 PM

Things you'll need:

6 labels
1 timer
1 textbox
3 inet controls

If you don't know how to draw an inet on your form, hit CTRL+T to bring up the project components. Scroll down and tick the box next to Microsoft Internet Transfer Control and hit Apply. A little icon of a computer and the earth behind it will appear in your toolbar. Click that icon and just draw the inets anywhere on your form.

LEAVE ALL OBJECT NAMES AS DEFAULT. DO NOT CHANGE THEIR NAMES.

Now.

Change the textboxes text to a quotation mark. Just one quotation mark, that's all.

Quote:
"
And set the textboxes Visible property to FALSE.

Now set your timers interval to 3000 and set it's Enabled property to TRUE.

Arrange your labels in this order

Quote:
Label1 Label2
Label3 Label4
Label5 Label6
Now change Label1s caption to "Open/Closed:"
Change Label3s caption to "Online:"
And change label5s caption to "Capacity"

For a better look, I would set the font for labels 2, 4 and six to bold. You don't have to, I just think it looks good. For a placeholder, I also made the captions for labels 2, 4 and 6 "Null"

Now your form should look something like this.



Now insert this code into your timer, and you're finished.

Code:
On Error Resume Next 'Just in case.
Dim strCode As String
Dim strCode2 As String
Dim strCode3 As String


' Get the closed/open status
strCode = Inet1.OpenURL("http://cokestudios2.cokemusic.com/sf/status?timestamp=")
strCode = Split(Split(strCode, "SS=" & Text1.Text & "")(1), "" & Text1.Text & " T")(0)
SPLITRESULT = strCode
If InStr(SPLITRESULT, "<") Or strCode = "" Then 'Checks to see if the split performed properly. The < is something you see in alot of failed splits because the failed split gets the entire page of the source. And sometimes failed splits do not get anything at all. Yeah, you get it.
Label2.Caption = "ERROR"
Else ' If the split does not contain the < character and is NOT absolutely nothing, this if function is done to determine whether the studios are open or not
If InStr(strCode, "O") Then
Label2.Caption = "Open"
Else
Label2.Caption = "Closed"
End If
End If


' Get the Online status
strCode2 = Inet2.OpenURL("http://cokestudios2.cokemusic.com/sf/status?timestamp=")
strCode2 = Split(Split(strCode2, "TSO=" & Text1.Text & "")(1), "" & Text1.Text & "")(0)
SPLITRESULT2 = strCode2
If InStr(SPLITRESULT2, "<") Or SPLITRESULT2 = "" Then
Label4.Caption = "ERROR"
Else
Label4.Caption = SPLITRESULT2
End If


'Get the capacity status
strCode3 = Inet3.OpenURL("http://cokestudios2.cokemusic.com/sf/status?timestamp=")
strCode3 = Split(Split(strCode3, "TSMC=" & Text1.Text & "")(1), "" & Text1.Text & " SS=")(0)
SPLITRESULT3 = strCode3
If InStr(SPLITRESULT3, "<") Or strCode = "" Then
Label6.Caption = "ERROR"
Else
Label6.Caption = SPLITRESULT3
End If
That's all there is to it.

I would apreciate any comments or suggestions.

Attatched below is a source and example application.

Hope this helps.
Attached Files
File Type: zip Get Coke Studios status.zip (7.9 KB, 12 views)






Reply With Quote
(#2)
Old
Pyro is Offline
Spamzilla
Pyro is on a distinguished road
 
Posts: 523
Join Date: Jun 2006
Location: My Home
Send a message via AIM to Pyro Send a message via MSN to Pyro
Default 08-18-2006, 03:34 PM

Good Job
This'll help a few people





Reply With Quote
(#3)
Old
DefectiveProduct is Offline
The Best
DefectiveProduct is on a distinguished road
 
Posts: 771
Join Date: Jul 2006
Location: O_o
Default 08-18-2006, 03:46 PM

Yeah, Kyle already used it in his CokeClient v2.

It might also give people an idea of how the very handy split function works.






Reply With Quote
(#4)
Old
mayorhacker13 is Offline
Senior Member
mayorhacker13 is on a distinguished road
 
Posts: 138
Join Date: Jul 2006
Default mmmmmmmmmm - 08-18-2006, 06:38 PM

i think that this is not going to help me


Reply With Quote
(#5)
Old
Skooled is Offline
1337
Skooled is on a distinguished road
 
Posts: 290
Join Date: Jul 2006
Default 08-18-2006, 06:54 PM

Defective thanks alot for this , ive been trying to do this forever. Maybe make a tut on how to make a open and close buttons . I already added to my client.


Reply With Quote
(#6)
Old
p1nba11 is Offline
Lots o' Posts
p1nba11 is on a distinguished road
 
Posts: 430
Join Date: Jul 2006
Location: Los Angeles, California
Send a message via AIM to p1nba11
Default 08-18-2006, 07:27 PM

Lol seangreasley.com


Best site. Easy to read.
Reply With Quote
(#7)
Old
Thunder_man is Offline
Member
Thunder_man is on a distinguished road
 
Posts: 20
Join Date: Aug 2006
Default 08-21-2006, 05:16 AM

Nice job on the tutorial bitch.
Reply With Quote
(#8)
Old
Alex- is Offline
1337
Alex- is on a distinguished road
 
Posts: 244
Join Date: Jul 2006
Location: Hell.
Send a message via AIM to Alex- Send a message via MSN to Alex-
Default 08-21-2006, 01:08 PM

Not to sound stupid, but what is this used for?


New coke name: Shots

Names For Sale.

Reply With Quote
(#9)
Old
DefectiveProduct is Offline
The Best
DefectiveProduct is on a distinguished road
 
Posts: 771
Join Date: Jul 2006
Location: O_o
Default 08-21-2006, 01:18 PM

A client or any other Visual Basic program.






Reply With Quote
(#10)
Old
Masked is Offline
Senior Member
Masked is on a distinguished road
 
Posts: 113
Join Date: Jul 2006
Default 08-21-2006, 03:43 PM

wow this is very cool. how did you find the

strCode = Inet1.OpenURL




Reply With Quote
Reply



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
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Coke Studios Not Open? Ogre Basher General Talk 15 08-20-2006 03:46 AM
Coke Studios and Habbo vouchers and my coke rewards codes programm Corcorino Programs 1 08-14-2006 10:29 AM
Coke Music Status Vis Online Materials 13 08-08-2006 04:03 PM
Coke Studios w3bst3r General Talk 2 06-23-2006 01:51 PM



Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.