Advertisement
Guest User

Untitled

a guest
Oct 15th, 2018
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #NoEnv  ; Recommended for performance and compatibility with future AutoHotkey releases.
  2. SetWorkingDir %A_ScriptDir%
  3. #SingleInstance, Force
  4. CoordMode, Pixel, Screen
  5. CoordMode, Mouse, Screen
  6. SetDefaultMouseSpeed, 7
  7. SetMouseDelay, 20
  8.  
  9.  
  10. ;Variabile generale
  11. global RedVMax :=           [1]
  12. global BlackVMax :=         [1]
  13. global i := 1
  14. global redV := 0
  15. global blackV := 0
  16. ;Variabile in secunde
  17. global Sleeping := 2800
  18. global sleepV32 := 2000
  19. global s1 := 15000
  20. global s2 := 10000
  21. global s3 := 5000
  22. global s4 := 1000
  23. global giantslep := 13000
  24. ;Variabile pentru statistica
  25. global b1 := 0
  26. global b2 := 0
  27. global b4 := 0
  28. global b8 := 0
  29. global b16 := 0
  30. global b32 := 0
  31. global b64 := 0
  32. global b128 := 0
  33. global b256 := 0
  34. global b512 := 0
  35. global b1024 := 0
  36. global b2048 := 0
  37. global b4096 := 0
  38. ;Terminarea Variabilelor
  39. ;Functii
  40. ;***********************************************
  41. FormatTime, timeString
  42. A1(){
  43.     if i=1
  44.     b1++
  45. }
  46. A2(){
  47.     if i = 2
  48.     b2++
  49. }
  50. A4(){
  51.     if i = 4
  52.     b4++
  53. }
  54. A8(){
  55.     if i = 8
  56.     b8++
  57. }
  58. A16(){
  59.     if i = 16
  60.     b16++
  61. }
  62. A32(){
  63.     if i = 32
  64.     b32++
  65. }
  66. A64(){
  67.     if i = 64
  68.     b64++
  69. }
  70. A128(){
  71.     if i = 128
  72.     b128++
  73. }
  74. A256(){
  75.     if i = 256
  76.     b256++
  77. }
  78. A512(){
  79.     if i = 512
  80.     b512++
  81. }
  82. A1024(){
  83.     if i = 1024
  84.     b1024++
  85. }
  86. A2048(){
  87.     if i = 2048
  88.     {
  89.         b2048++
  90.     }
  91. }
  92. A4096(){
  93.     if i = 4096
  94.     {
  95.         MsgBox, Ai pierdut totii banii :), dar mai ai profitul
  96.     }
  97. }
  98. logIn(){
  99.     MouseMove, 796, 392
  100.     click
  101. }
  102. logOut(){
  103.     MouseMove, 1699, 131
  104.     click
  105. }
  106. exitDialog(){
  107.     MouseMove, 1270,396
  108.     click
  109.     sleep, 1000
  110.     click
  111. }
  112.  
  113. statistics()
  114. {
  115.     FormatTime, timeString1
  116.     FileAppend, `nData: %timeString% `n, D:\Script-uri ruleta\Beta script-uri\Function V\Verificarea.txt
  117.     FileAppend, 1.Iteratia a ajuns la nr 1 de . %b1% . ori`n, D:\Script-uri ruleta\Beta script-uri\Function V\Verificarea.txt
  118.     FileAppend, 2.Iteratia a ajuns la nr 2 de . %b2% . ori`n, D:\Script-uri ruleta\Beta script-uri\Function V\Verificarea.txt
  119.     FileAppend, 3.Iteratia a ajuns la nr 4 de . %b4% . ori`n, D:\Script-uri ruleta\Beta script-uri\Function V\Verificarea.txt
  120.     FileAppend, 4.Iteratia a ajuns la nr 8 de . %b8% . ori`n, D:\Script-uri ruleta\Beta script-uri\Function V\Verificarea.txt
  121.     FileAppend, 5.Iteratia a ajuns la nr 16 de . %b16% . ori`n, D:\Script-uri ruleta\Beta script-uri\Function V\Verificarea.txt
  122.     FileAppend, 6.Iteratia a ajuns la nr 32 de . %b32% . ori`n, D:\Script-uri ruleta\Beta script-uri\Function V\Verificarea.txt
  123.     FileAppend, 7.Iteratia a ajuns la nr 64 de . %b64% . ori`n, D:\Script-uri ruleta\Beta script-uri\Function V\Verificarea.txt
  124.     FileAppend, 8.Iteratia a ajuns la nr 128 de . %b128% . ori`n, D:\Script-uri ruleta\Beta script-uri\Function V\Verificarea.txt
  125.     FileAppend, 9.Iteratia a ajuns la nr 256 de . %b256% . ori`n, D:\Script-uri ruleta\Beta script-uri\Function V\Verificarea.txt
  126.     FileAppend, 10.Iteratia a ajuns la nr 512 de . %b512% . ori`n, D:\Script-uri ruleta\Beta script-uri\Function V\Verificarea.txt
  127.     FileAppend, 11.Iteratia a ajuns la nr 1024 de . %b1024% . ori`n, D:\Script-uri ruleta\Beta script-uri\Function V\Verificarea.txt
  128.     FileAppend, 12.Iteratia a ajuns la nr 2048 de .  %b2048% . ori`n, D:\Script-uri ruleta\Beta script-uri\Function V\Verificarea.txt
  129.     FileAppend, 13.Iteratia a ajuns la nr 4096 de .  %b4096% . ori`n, D:\Script-uri ruleta\Beta script-uri\Function V\Verificarea.txt
  130.     FileAppend, `nEND Data: %timeString1%`n, D:\Script-uri ruleta\Beta script-uri\Function V\Verificarea.txt
  131. }
  132.  
  133. rowEntry(){
  134.    
  135. }
  136.  
  137. sleepAfterRotate(Sleeping){
  138.     Sleep, Sleeping
  139. }
  140. V32(){
  141.     if(i>=32)
  142.     sleep, sleepV32  
  143. }
  144. moveRed(){
  145.     MouseMove, 1000, 750
  146.     Click, %i%
  147. }
  148. moveSpin(){
  149.     MouseMove, 1200, 965
  150.     click 1
  151. }
  152. moveBlack(){
  153.     MouseMove, 1121, 826
  154.     click, %i%
  155. }
  156. colorWin(){
  157.     i:=1
  158.     rowEntry()
  159. }
  160. colorDidNotWin(){
  161.     i:= i*2
  162. }
  163. findColorRed(){
  164.     PixelSearch, ax, ay, 263, 940, 303, 1006, 0xff0101, 5, RGB fast
  165. }
  166. findColorBlack(){
  167.     PixelSearch, ax, ay, 263, 940, 303, 1006, 0xfefe00, 5, RGB fast
  168. }
  169. findColorGreen(){
  170.     PixelSearch, ax, ay, 263, 940, 303, 1006, 0x199832, 5, RGB fast
  171. }
  172. openChrome(){
  173.     IfWinNotExist, ahk_class Chrome_WidgetWin_1
  174.         Run, chrome.exe
  175.     if WinActive("ahk_class Chrome_WidgetWin_1")
  176.         Send ^{tab} ; Sa stergi aceasta instructiune
  177.     else
  178.         WinActivate ahk_class Chrome_WidgetWin_1
  179. }
  180. fullScreenOut(){
  181.     MouseMove, 1643,28
  182.     Click
  183. }
  184. altF4(){
  185.     Send {alt Down}{F4 Down}{alt Up}{F4 Up}
  186.     MouseMove, 1080,506
  187.     Click
  188. }
  189. S1(s1){
  190.     Sleep, s1
  191. }
  192. S2(s2){
  193.     Sleep, s2
  194. }
  195. S3(s3){
  196.     Sleep, s3
  197. }
  198. S4(s4){
  199.     Sleep, s4
  200. }
  201. clickPlayGame(){
  202.     MouseMove, 706,520
  203.     sleep, 500
  204.     Click
  205. }
  206. fullScreenIn(){
  207.     mousemove, 1483, 226
  208.     click
  209. }
  210. flashAccept(){
  211.     MouseMove, 316, 164
  212.     click
  213. }
  214. betSelect(){
  215.     MouseMove, 507,712
  216.     click
  217. }
  218. moveSpinF(){
  219.     MouseMove, 1095, 973
  220.     click
  221. }
  222. RLR()
  223.         {
  224.             if (b1>125)
  225.             {
  226.                 statistics()
  227.                 Reload
  228.             }
  229.             Loop
  230.             {
  231.                
  232.                 A1()
  233.                 A2()
  234.                 A4()
  235.                 A8()
  236.                 A16()
  237.                 A32()
  238.                 A64()
  239.                 A128()
  240.                 A256()
  241.                 A512()
  242.                 A1024()
  243.                 A2048()
  244.                 A4096()
  245.                 blackV := 0
  246.                 findColorRed()
  247.                 If (ErrorLevel=2)
  248.                     MsgBox, There was some sort of problem at Red color
  249.                 else if (ErrorLevel=1)
  250.                 {
  251.                     findColorBlack()
  252.                     If (ErrorLevel=2)
  253.                     MsgBox, There was some sort of problem at Black color
  254.                     else if (ErrorLevel=1)
  255.                     {
  256.                         findColorGreen()
  257.                         if ErrorLevel=2
  258.                         MsgBox, There was some sort of problem at green color
  259.                         else if ErrorLevel=1
  260.                         {
  261.                             colorWin()
  262.                             moveRed()
  263.                             moveSpin()
  264.                             sleepAfterRotate(Sleeping)
  265.                             break
  266.                         }
  267.                         else
  268.                         {
  269.                             colorDidNotWin()
  270.                             moveRed()
  271.                             V32()
  272.                             moveSpin()
  273.                             sleepAfterRotate(Sleeping)
  274.                             break
  275.                         }
  276.                     }
  277.                     else
  278.                     {
  279.                         colorDidNotWin()
  280.                         moveRed()
  281.                         V32()
  282.                         moveSpin()
  283.                         sleepAfterRotate(Sleeping)
  284.                         break
  285.                     }
  286.                 }
  287.                 else
  288.                 {
  289.                     colorWin()
  290.                     moveRed()
  291.                     moveSpin()
  292.                     sleepAfterRotate(Sleeping)
  293.                     redV++
  294.                     break
  295.                 }
  296.             }
  297.         }
  298.  
  299.  
  300. RLRF(){
  301.     i:=1
  302.     moveRed()
  303.     sleep, 300
  304.     moveSpin()
  305. }
  306. RLBF(){
  307.     i:=1
  308.     moveBlack()
  309.     sleep, 300
  310.     moveSpin()
  311. }
  312.          RLB()
  313. {
  314.     Loop
  315.     {
  316.         A1()
  317.         A2()
  318.         A4()
  319.         A8()
  320.         A16()
  321.         A32()
  322.         A64()
  323.         A128()
  324.         A256()
  325.         A512()
  326.         A1024()
  327.         A2048()
  328.         A4096()
  329.         redV := 0
  330.         findColorBlack()
  331.         If (ErrorLevel=2)
  332.             MsgBox, There was some sort of problem at Red color
  333.         else if (ErrorLevel=1)
  334.         {
  335.             findColorRed()
  336.             If (ErrorLevel=2)
  337.             MsgBox, There was some sort of problem at Black color
  338.             else if (ErrorLevel=1)
  339.             {
  340.                 findColorGreen()
  341.                 if ErrorLevel=2
  342.                 MsgBox, There was some sort of problem at green color
  343.                 else if ErrorLevel=1
  344.                 {
  345.                     colorWin()
  346.                     moveBlack()
  347.                     moveSpin()
  348.                     sleepAfterRotate(Sleeping)
  349.                     break
  350.                 }
  351.                 else
  352.                 {
  353.                     colorDidNotWin()
  354.                     moveBlack()
  355.                     V32()
  356.                     moveSpin()
  357.                     sleepAfterRotate(Sleeping)
  358.                     break
  359.                 }
  360.             }
  361.             else
  362.             {
  363.                 colorDidNotWin()
  364.                 moveBlack()
  365.                 V32()
  366.                 moveSpin()
  367.                 sleepAfterRotate(Sleeping)
  368.                 break
  369.             }
  370.         }
  371.         else
  372.         {
  373.             colorWin()
  374.             moveBlack()
  375.             moveSpin()
  376.             sleepAfterRotate(Sleeping)
  377.             blackV++
  378.             break
  379.         }
  380.     }
  381. }
  382. ;**************************************
  383. ;                 Terminarea Functiilor
  384.  
  385. ;$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
  386. ;$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
  387. ;$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
  388. ;$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
  389.  
  390.  
  391. ;Main Script
  392.  
  393. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  394. ;;                                              $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
  395. ;     $$$$$$$$$$$$$$$$$$$$$$$$$ Schimba Functiile de mai jos cu coordonatele corespunzatoare site-ului netbet :) $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
  396. ;                                               $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
  397. ;
  398. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  399. ;  first_start:
  400. ;  {
  401. ;     fullScreenOut()
  402. ;     S4(s4)
  403. ;     logOut()
  404. ;     S2(s2)
  405. ;     altF4()
  406. ;     S4(s4)
  407. ;     openChrome()
  408. ;     S4(s1)
  409. ;     clickPlayGame()
  410. ;     S4(s3)
  411. ;     logIn()
  412. ;     S4(s3)
  413. ;     clickPlayGame()
  414. ;     S4(s3)
  415. ;     exitDialog()
  416. ;     S4(s4)
  417. ;     flashAccept()
  418. ;     S4(s2)
  419. ;     clickPlayGame()
  420. ;     s4(s2)
  421. ;     fullScreenIn()
  422. ;     S4(s2)
  423. ;     betSelect()
  424. ;     S4(s4)
  425. ;     moveRed()
  426. ;     S4(s4)
  427. ;     moveSpinF()
  428. ;     S4(s4)
  429. ;  }
  430. RLRF()
  431. sleepAfterRotate(Sleeping)
  432. forRed:
  433. for index, element in RedVMax
  434.     {
  435.         if (redV < element)
  436.         {
  437.             RLR()
  438.             goto, forRed
  439.         }
  440.         Else
  441.         {
  442.             RLBF()
  443.             sleepAfterRotate(Sleeping)
  444.             goto, forBlack
  445.         }
  446.     }
  447.    
  448. forBlack:
  449. {
  450.     for index, element in BlackVMax
  451.     {
  452.         if (blackV < element)
  453.         {
  454.             RLB()
  455.             goto, forBlack
  456.         }
  457.         Else
  458.         {
  459.             RLRF()
  460.             sleepAfterRotate(Sleeping)
  461.             goto, forRed
  462.         }
  463.     }
  464. }
  465. ^x::
  466. Pause
  467.  
  468. z::
  469. statistics()
  470. ExitApp
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement