MMOwned - World of Warcraft Exploits, Hacks, Bots and Guides

Homepage Register FAQ Members Mark Forums Read Advertise Marketplace FPSowned


Go Back   MMOwned - World of Warcraft Exploits, Hacks, Bots and Guides > Programming > Programming section > VB
Reload this Page [Guide] Visual Basic 2008 - How To Make A Custom Launcher
VB Discussions about VB programming

Reply
 
LinkBack Thread Tools
[Guide] Visual Basic 2008 - How To Make A Custom Launcher
(#1)
Old
Caroe's Avatar
Caroe is Offline
Sergeant
Rep Power: 2
Reputation: 14
Caroe is on a distinguished road
 
Posts: 60
Join Date: Jul 2007
Location: H4x0r W0r|d
Legendary [Guide] Visual Basic 2008 - How To Make A Custom Launcher - 05-20-2008

Custom Launcher
-by Caroe

Design :

1) Make a Textbox, And a Button (Button Should Be Called "Set Realmlist"
2) Make 2 More buttons, they should be called "Retail [EU]" and "Retail [USA]"
3) Make 2 More Buttons, called "Start WoW" and "Delete Cache"
4) Make a button, Called "Close"
5) set the Textbox and button "Set Realmlist" at eachother's site
6) You can also add "Save Settings" and "Load Settings" If u want. (U dont have to)

Coding :

1) Click on "Retail [EU]" and write in this code :
Code:
Dim installpath As String = String.Empty
        installpath = My.Computer.Registry.GetValue("HKEY_LOCAL_MACHINESOFTWAREblizzard entertainmentworld of warcraft", "installpath", Nothing)
        Dim fs As New FileStream(installpath & "realmlist.wtf", FileMode.Create, FileAccess.Write)
        Dim s As New StreamWriter(fs)
        s.WriteLine("set realmlist eu.logon.worldofwarcraft.com")
        s.WriteLine("set patchlist eu.version.worldofwarcraft.com")
        s.Close()
        If MsgBox("Realmlist was set succesfully") Then
        Else
            MsgBox("error in setting realmlist")
        End If
Notest that the red is the Realmlist, so if u wanna make a button to ur own server, add a button called "Your Server Name" and add same code, but change the realmlist.
2) On the "Retail [USA]" Use the same code, but change the realmlist :
Code:
Dim installpath As String = String.Empty
        installpath = My.Computer.Registry.GetValue("HKEY_LOCAL_MACHINESOFTWAREblizzard entertainmentworld of warcraft", "installpath", Nothing)
        Dim fs As New FileStream(installpath & "realmlist.wtf", FileMode.Create, FileAccess.Write)
        Dim s As New StreamWriter(fs)
        s.WriteLine("set realmlist Us.Logon.Worldofwarcraft.Com")
        s.WriteLine("set patchlist Us.Version.Worldofwarcraft.Com(")
        s.Close()
        If MsgBox("Realmlist was set succesfully") Then
        Else
            MsgBox("error in setting realmlist")
        End If
3) On the "Close" button use this Code :
Code:
Form1.Close()
4) on the "Start WoW" Button use this code :
Code:
Dim ss As String = startgame("HKEY_LOCAL_MACHINESOFTWAREblizzard entertainmentworld of warcraft", "installpath", "WoW.exe")
        If ss <> String.Empty Then
            My.Settings.wow = ss
            My.Settings.Save()
        End If
5) On "Delete Cache" use this:
Code:
Dim installpath As String = String.Empty
        installpath = My.Computer.Registry.GetValue("HKEY_LOCAL_MACHINESOFTWAREblizzard entertainmentworld of warcraft", "installpath", Nothing)
        If Directory.Exists(installpath & "/cache") Then
            Directory.Delete(installpath & "/cache", True)
            MsgBox("Cache deleted successfully")
        Else
            MsgBox("There is no cache")
        End If
6) Lets take a break, Shall we ? so long, so good
7) Now to the "Set Realmlist" Button lets make the code, its the one that makes the "Custom" in Launcher. this is the code :
Code:
Dim installpath As String = String.Empty
        installpath = My.Computer.Registry.GetValue("HKEY_LOCAL_MACHINESOFTWAREblizzard entertainmentworld of warcraft", "installpath", Nothing)
        Dim fs As New FileStream(installpath & "realmlist.wtf", FileMode.Create, FileAccess.Write)
        Dim s As New StreamWriter(fs)
        s.WriteLine("set realmlist " + TextBox1.Text)
        s.Close()
        If MsgBox("Realmlist was set succesfully") Then
        Else
            MsgBox("error in setting realmlist") '
        End If
its the exact same code as the others, but ! look at the red. i wrote "Set Realmlist " like in the other ones. but then i make a space after it, and said "+ Textbox1.Text" that does so it will change it to "Set Realmlist (And Whatever The Textbox Says)" that would be an example "Set Realmlist (Textbox = Caroe.Caroe) then it would be "Set Realmlist Caroe.Caroe"
8) and if u wanted the "Save Settings" and "Load Settings" buttons, here it comes,
9) "Save Settings" code :
Code:
My.Computer.FileSystem.WriteAllText("C:Saved Settings.txt", TextBox1.Text, False)
        MsgBox("Your Settings Was Saved In C:Saved Settings.txt")
The Red Text makes it saving wherever the red text is, so in my example it saves in C:\ as "Saved Settings.txt" so it would be "C:\Saved Settings.txt".
10) now the "Load Settings" button, go to the code and say :
Code:
Dim OFD As New OpenFileDialog
        OFD.Filter = ".txt | *.txt*"

        If (OFD.ShowDialog(Me) = Windows.Forms.DialogResult.OK) Then
            Dim O As New System.IO.StreamReader(OFD.FileName)
            TextBox1.Text = O.ReadToEnd
            O.Close()
        End If
This one is a bit longer, and makes u able to open all .txt files (Text Documents) if u change the red to another file, u will be able to open that, but cannot be used in the launcher.

If u want to test mine, Here it is : [Only registered and activated users can see links. ]

Thanks, i hope u Enjoyed the Guide.

Last edited by Caroe; 05-20-2008 at 12:58 PM.
Reply With Quote

Donate to remove ads.
(#2)
Old
EmiloZ's Avatar
EmiloZ is Offline
Flying Danish Leecher
Rep Power: 4
Reputation: 383
EmiloZ is just really niceEmiloZ is just really niceEmiloZ is just really niceEmiloZ is just really nice
 
Posts: 957
Join Date: Jun 2007
Location: Denmark - Europe
05-21-2008

I gave you the source, don't leech!




Nominated [Only registered and activated users can see links. ]
[Only registered and activated users can see links. ] so now im contributer will girls sleep with me?
Reply With Quote
(#3)
Old
The Maffyx is Offline
Lieutenant Commander
Rep Power: 2
Reputation: 60
The Maffyx will become famous soon enough
 
Posts: 625
Join Date: Feb 2007
05-21-2008

Not to mention the settings should really be saved in the WoW folder not just C:\, I'd hate it if I had programs doing this all the time cluttering it up.




Reply With Quote
(#4)
Old
Caroe's Avatar
Caroe is Offline
Sergeant
Rep Power: 2
Reputation: 14
Caroe is on a distinguished road
 
Posts: 60
Join Date: Jul 2007
Location: H4x0r W0r|d
05-21-2008

Emiloz ? i dont leech, since i didnt got the sourcecode from u.

me and a friend found it out. well i remember i asked u for code to make realmlist changer Custom and not Un-Custom, but u didnt tell me.. then i just realised it was actually easy to just add " + textbox1.text" so no, i dont leech
Reply With Quote
(#5)
Old
Krip's Avatar
Krip is Offline
Contributor
Rep Power: 1
Reputation: 130
Krip will become famous soon enoughKrip will become famous soon enough
 
Posts: 640
Join Date: Jan 2008
Location: MMOwned HQ
05-25-2008

How do you 'define' StreamWriter and things like that because I have 14 errors saying blahblah Not Defined.

Thanks




Reply With Quote
(#6)
Old
The Maffyx is Offline
Lieutenant Commander
Rep Power: 2
Reputation: 60
The Maffyx will become famous soon enough
 
Posts: 625
Join Date: Feb 2007
05-26-2008

Quote:
Originally Posted by Krip View Post
How do you 'define' StreamWriter and things like that because I have 14 errors saying blahblah Not Defined.

Thanks
He's missing the imports, you're looking for

Imports System.IO

Stick that up at the top above your class.




Reply With Quote
(#7)
Old
Krip's Avatar
Krip is Offline
Contributor
Rep Power: 1
Reputation: 130
Krip will become famous soon enoughKrip will become famous soon enough
 
Posts: 640
Join Date: Jan 2008
Location: MMOwned HQ
05-26-2008

Alright, thanks... that fixed those.

I have these two: "startgane" is not declared" and "'wow' is not a member of 'WindowsApplication1.My.MySettings'."




Reply With Quote
(#8)
Old
The Maffyx is Offline
Lieutenant Commander
Rep Power: 2
Reputation: 60
The Maffyx will become famous soon enough
 
Posts: 625
Join Date: Feb 2007
05-26-2008

Quote:
Originally Posted by Krip View Post
Alright, thanks... that fixed those.

I have these two: "startgane" is not declared" and "'wow' is not a member of 'WindowsApplication1.My.MySettings'."
I'm sure it's supposed to be "startgame" not "startgane" so try fixing that typo and the other one should fix itself if I'm right.





Last edited by The Maffyx; 05-26-2008 at 11:43 AM.
Reply With Quote
(#9)
Old
Clain's Avatar
Clain is Online
Contributor
Rep Power: 1
Reputation: 103
Clain will become famous soon enoughClain will become famous soon enough
 
Posts: 922
Join Date: Jan 2008
05-26-2008

The first part of the code was leeched and some of the other parts from Kolikok


Visual Basic .NET Coder
Will code programs for money/gamecard. Contact me on msn for more information!
You have one more chance to do right and its tonight.
Reply With Quote
(#10)
Old
Krip's Avatar
Krip is Offline
Contributor
Rep Power: 1
Reputation: 130
Krip will become famous soon enoughKrip will become famous soon enough
 
Posts: 640
Join Date: Jan 2008
Location: MMOwned HQ
05-26-2008

Now I get startgame is not declared ^_^

Name 'startgame' is not declared.




Reply With Quote
(#11)
Old
The Maffyx is Offline
Lieutenant Commander
Rep Power: 2
Reputation: 60
The Maffyx will become famous soon enough
 
Posts: 625
Join Date: Feb 2007
05-26-2008

Quote:
Originally Posted by Krip View Post
Now I get startgame is not declared ^_^

Name 'startgame' is not declared.
Looks like start game is a method that he left out, not sure what he had in there.




Reply With Quote
(#12)
Old
Maven01's Avatar
Maven01 is Offline
Master Sergeant
Rep Power: 1
Reputation: 16
Maven01 is on a distinguished road
 
Posts: 91
Join Date: Nov 2007
Location: Sharding ur purplez
05-29-2008

yeah in order to not get that Startgame error just put this in your code

Code:
    Private Function startgame(ByVal RegPath As String, ByVal RegValue As String, ByVal ExeFile As String) As String
        Dim retval
        Dim installpath As String = String.Empty
        installpath = My.Computer.Registry.GetValue(RegPath, RegValue, Nothing)
        If Directory.Exists(installpath) Then

            ChDir(installpath)
            retval = Shell(ExeFile, 1)
        Else
            With OpenFileDialog1
                .InitialDirectory = GetFolderPath(Environment.SpecialFolder.ProgramFiles)
                If .ShowDialog() = Windows.Forms.DialogResult.OK Then
                    Process.Start(.FileName)
                    Return .FileName
                End If


            End With


        End If

        Return String.Empty
    End Function
Reply With Quote
(#13)
Old
frkcoaster6 is Offline
Site n00b.. (A leecher if I've been here for more than a month and can't earn 5 rep)
Rep Power: 1
Reputation: 2
frkcoaster6 is an unknown quantity at this point
 
Posts: 6
Join Date: May 2008
06-28-2008

I get countless errors when i am using the code. Certain codes they build ok but when i try to use the buttons i get errors. and some codes i cannot get to work wondering if i could get some help.
Reply With Quote
(#14)
Old
Brutal Pink Panther's Avatar
Brutal Pink Panther is Offline
Master Sergeant
Rep Power: 1
Reputation: 7
Brutal Pink Panther is an unknown quantity at this point
 
Posts: 117
Join Date: Mar 2008
07-03-2008

im the freind :P


Very Experinced Visual Basic Coder.
Reply With Quote
(#15)
Old
kitelight08 is Offline
Site n00b.. (A leecher if I've been here for more than a month and can't earn 5 rep)
Rep Power: 1
Reputation: 1
kitelight08 is an unknown quantity at this point
 
Posts: 10
Join Date: Jul 2008
07-09-2008

Upon using that code maven i get openfiledialog1 is not declared ?
Reply With Quote
Reply

Donate to remove ads.

Thread Tools

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are On



Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
vBulletin Skin developed by: vBStyles.com


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344