Guest User

Untitled

a guest
Feb 22nd, 2015
319
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
AutoIt 1.73 KB | None | 0 0
  1. $InputAnzahl = InputBox("Werbung", "Wie oft soll die Werbung gepostet werden?") ;Advertisment , How often should the Ads been posted?
  2.  
  3. HotKeySet("{End}", "exitit")
  4.  
  5. Func exitit()
  6. Exit
  7. EndFunc
  8.  
  9. Dim $ChangeLanguageDE [4][2] = [ _
  10.     [2844, 763], _ ;einstellungen
  11.     [2227, 527], _ ;sprachauwahl
  12.     [2439, 433], _ ;deutsch
  13.     [2537, 635]] ;bestätigen
  14.  
  15. Func ChangeLanguageToDE()
  16.     For $a = 0 To UBound($ChangeLanguageDE) - 1
  17.         MouseClick("left", $ChangeLanguageDE[$a][0], $ChangeLanguageDE[$a][1], 1)
  18.         Sleep(500)
  19.     Next
  20. EndFunc
  21.  
  22. Dim $ChangeLanguageEN [4][2] = [ _
  23.     [2844, 763], _ ;einstellungen
  24.     [2227, 527], _ ;sprachauwahl
  25.     [2169, 433], _ ;englisch
  26.     [2537, 635]] ;bestätigen
  27.  
  28. Func ChangeLanguageToEN()
  29.     For $a = 0 To UBound($ChangeLanguageEN) - 1
  30.         MouseClick("left", $ChangeLanguageEN[$a][0], $ChangeLanguageEN[$a][1], 1)
  31.         Sleep(500)
  32.     Next
  33.  EndFunc
  34.  
  35.  Dim $GetRdyToPost [4][2] = [ _
  36.     [2450, 638], _ ;klick in die mitte wegen fehlermeldung
  37.     [2041, 587], _ ;klick auf den chat
  38.     [2098, 259], _ ;klick auf den global
  39.     [2056, 301]] ;klick in den chat
  40.    
  41. Func GetRdyToPostFunc()
  42.     For $a = 0 To UBound($GetRdyToPost) - 1
  43.         MouseClick("left", $GetRdyToPost[$a][0], $GetRdyToPost[$a][1], 1)
  44.         Sleep(500)
  45.     Next
  46.  EndFunc
  47.  
  48. WinWaitActive("BlueStacks App Player")
  49. If $InputAnzahl = 0 then
  50.     exitit()
  51. Else
  52. Sleep (1000)
  53. EndIf
  54. Do
  55. Sleep (1000)
  56. GetRdyToPostFunc()
  57. Send ("{CTRLDOWN}")
  58. Sleep (1000)
  59. Send ("V")
  60. Sleep (1000)
  61. Send ("{CTRLUP}")
  62. MouseClick("left", 2305, 301) ;nachricht absenden
  63. ChangeLanguageToDE()
  64. Sleep (1000)
  65. GetRdyToPostFunc()
  66. Send ("{CTRLDOWN}")
  67. Sleep (1000)
  68. Send ("V")
  69. Sleep (1000)
  70. Send ("{CTRLUP}")
  71. MouseClick("left", 2305, 301) ;nachricht absenden
  72. ChangeLanguageToEN()
  73. $InputAnzahl -= 1
  74. Until $InputAnzahl = 0
Advertisement
Add Comment
Please, Sign In to add comment