Guest User

Untitled

a guest
Jan 7th, 2018
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.20 KB | None | 0 0
  1. Public Class Mining
  2. Dim overwatch() As Process
  3. Dim two() As Process
  4. Dim three() As Process
  5. Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load
  6. overwatch = Process.GetProcessesByName("Overwatch")
  7. two = Process.GetProcessesByName("kopanie 2x gtx 1060 — zencash")
  8. three = Process.GetProcessesByName("mining — zencash")
  9. For i As Integer = 0 To 2
  10. If overwatch.Count = 1 And two.Count = 0 Then
  11. TextBox1.Text = "Włączanie kopania na 2 kartach."
  12. TextBox1.Update()
  13. Process.Start("C:\Users\Vomar\Desktop\ccminer-x86-2.2.3-cuda9\kopanie 2x gtx 1060 — zencash.exe")
  14. ProgressBar1.PerformStep()
  15. ElseIf overwatch.Count = 1 And three.Count = 1 Then
  16. TextBox1.Text = "Wyłączanie kopania na 3 kartach."
  17. TextBox1.Update()
  18. three(0).CloseMainWindow()
  19. ProgressBar1.PerformStep()
  20. ElseIf overwatch.Count = 0 And two.Count = 1 Then
  21. TextBox1.Text = "Wyłączanie kopania na 2 kartach."
  22. TextBox1.Update()
  23. two(0).CloseMainWindow()
  24. ProgressBar1.PerformStep()
  25. ElseIf overwatch.Count = 0 And three.Count = 0 Then
  26. TextBox1.Text = "Włączanie kopania na 3 kartach."
  27. TextBox1.Update()
  28. Process.Start("C:\Users\Vomar\Desktop\ccminer-x86-2.2.3-cuda9\mining — zencash.exe")
  29. ProgressBar1.PerformStep()
  30. ElseIf overwatch.Count = 0 And three.Count = 1 Then
  31. TextBox1.Text = "Kopanie na 3 kartach."
  32. TextBox1.Update()
  33. ProgressBar1.PerformStep()
  34. ElseIf overwatch.Count = 1 And two.Count = 1 Then
  35. TextBox1.Text = "Granie i kopanie na 2 kartach."
  36. TextBox1.Update()
  37. ProgressBar1.PerformStep()
  38. End If
  39. If ProgressBar1.Value = ProgressBar1.Maximum Then
  40. ProgressBar1.Value = ProgressBar1.Minimum
  41. End If
  42. Threading.Thread.Sleep(1000)
  43. i -= 1
  44. Next
  45. End Sub
  46. End Class
Advertisement
Add Comment
Please, Sign In to add comment