Advertisement
Guest User

Untitled

a guest
Jul 30th, 2016
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.97 KB | None | 0 0
  1. #Region ;**** Directives created by AutoIt3Wrapper_GUI ****
  2. #AutoIt3Wrapper_Icon=..\Old Version UI\PokeUI Source\Hektakun-Pokemon-150-Mewtwo.ico
  3. #AutoIt3Wrapper_Res_Description=Pokemon Go Map Hack
  4. #AutoIt3Wrapper_Res_Fileversion=3.0.1.0
  5. #AutoIt3Wrapper_Res_LegalCopyright=DiGiTy
  6. #EndRegion ;**** Directives created by AutoIt3Wrapper_GUI ****
  7. #include <ButtonConstants.au3>
  8. #include <EditConstants.au3>
  9. #include <GUIConstantsEx.au3>
  10. #include <WindowsConstants.au3>
  11. If FileExists(@TempDir & "\pokemon_login.ini") Then
  12. Else
  13. FileWrite(@TempDir & "\pokemon_login.ini", "Username" & @CRLF & "Password")
  14. EndIf
  15.  
  16. $userlogin = FileReadLine(@TempDir & "\pokemon_login.ini", 1)
  17. $userpass = FileReadLine(@TempDir & "\pokemon_login.ini", 2)
  18.  
  19. If Not FileExists(@TempDir & "\pokemon_settings.ini") Then
  20. $Pfad = InputBox("source", "Specify the source folder of the Pokemon Go Map Hack. Write down the Path.")
  21. $Python = InputBox("python", "Write down the Path of your python.exe")
  22. FileWrite(@TempDir & "\pokemon_settings.ini", $Pfad & @CRLF & $Python)
  23. EndIf
  24.  
  25. #Region ### START Koda GUI section ### Form=C:\Users\DiGiTy\Desktop\pokemap.kxf
  26. $Form1 = GUICreate("PokeMap v3.0.1", 596, 103, 192, 124)
  27. $Input1 = GUICtrlCreateInput($userlogin, 8, 8, 241, 21)
  28. $Input2 = GUICtrlCreateInput($userpass, 264, 8, 241, 21, $ES_PASSWORD)
  29. $Input3 = GUICtrlCreateInput("Latitude", 8, 40, 241, 21)
  30. $Input4 = GUICtrlCreateInput("Longitude", 264, 40, 241, 21)
  31. $Checkbox1 = GUICtrlCreateCheckbox("save login", 520, 8, 97, 17)
  32. $Button1 = GUICtrlCreateButton("Start", 8, 72, 65, 25)
  33. $Button2 = GUICtrlCreateButton("Stop", 96, 72, 65, 25)
  34. $Button3 = GUICtrlCreateButton("Reset", 184, 72, 65, 25)
  35. GUISetState(@SW_SHOW)
  36. #EndRegion ### END Koda GUI section ###
  37.  
  38. While 1
  39. $nMsg = GUIGetMsg()
  40. Switch $nMsg
  41. Case $GUI_EVENT_CLOSE
  42. $zahl = 0
  43. While $zahl < 100
  44. ProcessClose("cmd.exe")
  45. ProcessClose("python.exe")
  46. $zahl = $zahl + 1
  47. WEnd
  48. FileDelete(@TempDir & "\mapper.bat")
  49. Exit
  50. Case $Checkbox1
  51. If GUICtrlRead($CheckBox1) = $GUI_CHECKED Then
  52. $usersafe = GUICtrlRead($Input1)
  53. $passsafe = GUICtrlRead($Input2)
  54. FileDelete(@TempDir & "\pokemon_login.ini")
  55. FileWrite(@TempDir & "\pokemon_login.ini", $usersafe & @CRLF & $passsafe)
  56. Else
  57. FileDelete(@TempDir & "\pokemon_login.ini")
  58. FileWrite(@TempDir & "\pokemon_login.ini", "Username" & @CRLF & "Password")
  59. EndIf
  60. Case $Button1
  61. $usern = GUICtrlRead($Input1)
  62. $passw = GUICtrlRead($Input2)
  63. $lat = GUICtrlRead($Input3)
  64. $lon = GUICtrlRead($Input4)
  65. $pghsource = FileReadLine(@TempDir & "\pokemon_settings.ini", 1)
  66. $pythonsource = FileReadLine(@TempDir & "\pokemon_settings.ini", 2)
  67. $gmail = StringInStr($usern, "gmail.com")
  68.  
  69. If $gmail = 0 Then
  70. $command1 = "cd " & $pghsource
  71. $command2 = $pythonsource & " example.py -a ptc -u " & $usern & " -p " & $passw & " -l " & '"' & $lat & ", " & $lon & '"' & " -st 10"
  72. Else
  73. $command1 = "cd " & $pghsource
  74. $command2 = $pythonsource & " example.py -a google -u " & $usern & " -p " & $passw & " -l " & '"' & $lat & ", " & $lon & '"' & " -st 10"
  75. EndIf
  76.  
  77. $zahl = 0
  78. While $zahl < 100
  79. ProcessClose("cmd.exe")
  80. ProcessClose("python.exe")
  81. $zahl = $zahl + 1
  82. WEnd
  83.  
  84. FileDelete(@TempDir & "\mapper.bat")
  85. FileWrite(@TempDir & "\mapper.bat", $command1 & @CRLF & $command2)
  86. ShellExecute(@TempDir & "\mapper.bat", "", "", "open", @sw_hide)
  87.  
  88. Case $Button2
  89. $zahl = 0
  90. While $zahl < 100
  91. ProcessClose("cmd.exe")
  92. ProcessClose("python.exe")
  93. $zahl = $zahl + 1
  94. WEnd
  95.  
  96. Case $Button3
  97. FileDelete(@TempDir & "\pokemon_settings.ini")
  98. FileDelete(@TempDir & "\pokemon_login.ini")
  99. FileDelete(@TempDir & "\mapper.bat")
  100. $zahl = 0
  101. While $zahl < 100
  102. ProcessClose("cmd.exe")
  103. ProcessClose("python.exe")
  104. $zahl = $zahl + 1
  105. WEnd
  106. MsgBox(0, "Reset", "PokeMap was reset. The Programm will now shut down. Please restart PokeMap.exe")
  107. ProcessClose("PokeMap.exe")
  108. EndSwitch
  109. WEnd
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement