Requisitos:
Bluestack ------> http://www.bluestacks.com/
Bitcoin Basketball ------> http://bitplay.today/
AutoHotkey ------> https://www.autohotkey.com/
Windows 7 o Superior.
Script .ahk version 1
Código:
WinWait, BlueStacks App Player,
IfWinNotActive, BlueStacks App Player
WinActivate, BlueStacks App Player
WinWaitActive, BlueStacks App Player
;Presionar F12 para comenzar
F12::
Loop 10
{
CoordMode Pixel
ImageSearch, X, Y, 700, 400, 830, 490,*100 Start.bmp
If Errorlevel = 0
Click %X%, %Y%
Random, L , 19, 21
Loop %L%
{
Random, X1 , 605, 615
Random, Y1 , 240, 250
Random, X2 , 690, 700
Random, Y2 , 305, 315
Random, T , 10, 20 ; [Speed 0 (Fastest) to 100 (Slowest)]
Random, T1 , 600, 800
MouseClickDrag, Left, X1, Y1, X2, Y2 , %T%
Sleep, %T1%
}
Random, T2 , 5000, 7000
Sleep, %T2%
}
Esc:: ExitApp
Script .ahk version 2
Código:
WinWait, BlueStacks App Player,
IfWinNotActive, BlueStacks App Player
WinActivate, BlueStacks App Player
WinWaitActive, BlueStacks App Player
debug := 0
;Presionar F12 para comenzar
F11::
Pause
Suspend
return
F12::
Loop
{
Send {Click 660, 245, Down}
Sleep, 1000
CoordMode Pixel
ImageSearch, X, Y, 500, 170, 700, 330,*150 Ball.bmp
Sleep, 500
If ( Errorlevel = 0 )
{
Send {Click 665, 250, Up}
}
ImageSearch, X, Y, 500, 170, 700, 330,*170 Coin.bmp
If ( Errorlevel = 0 )
{
Send {Click 740, 325, Up}
Sleep, 500
}
Send {Click 740, 325, Up}
}
Esc:: ExitApp
Código:
WinWait, BlueStacks App Player,
IfWinNotActive, BlueStacks App Player
WinActivate, BlueStacks App Player
WinWaitActive, BlueStacks App Player
debug := 0
;Presionar F12 para comenzar
F11::
Pause
Suspend
return
F12::
Loop
{
CoordMode Pixel
ImageSearch, X, Y, 700, 400, 830, 490,*100 Start.bmp
If ( Errorlevel = 0 )
{
X := X + 15
Y := Y + 15
Click %X%, %Y%
}
ImageSearch, X, Y, 495, 105, 675, 140,*100 P10.bmp ; 10
If ( Errorlevel = 0 )
{
Random, X1P10 , 660, 661
Random, Y1P10 , 245, 246
Random, X2P10 , 740, 741
Random, Y2P10 , 325, 335
Random, TP10 , 10, 12 ; [Speed 0 (Fastest) to 100 (Slowest)]
Random, T1P10 , 140, 150
MouseClickDrag, Left, X1P10, Y1P10, X2P10, Y2P10 , %TP10%
Sleep, %T1P10%
}
ImageSearch, X, Y, 495, 105, 675, 140,*100 P9.bmp ; 9
If ( Errorlevel = 0 )
{
Random, X1P9 , 665, 666
Random, Y1P9 , 245, 246
Random, X2P9 , 745, 746
Random, Y2P9 , 325, 335
Random, TP9 , 10, 12 ; [Speed 0 (Fastest) to 100 (Slowest)]
Random, T1P9 , 140, 150
MouseClickDrag, Left, X1P9, Y1P9, X2P9, Y2P9 , %TP9%
Sleep, %T1P9%
}
ImageSearch, X, Y, 495, 105, 675, 140,*100 P8.bmp ; 8
If ( Errorlevel = 0 )
{
Random, X1P8 , 670, 671
Random, Y1P8 , 245, 246
Random, X2P8 , 750, 751
Random, Y2P8 , 325, 335
Random, TP8 , 10, 12 ; [Speed 0 (Fastest) to 100 (Slowest)]
Random, T1P8 , 140, 150
MouseClickDrag, Left, X1P8, Y1P8, X2P8, Y2P8 , %TP8%
Sleep, %T1P8%
}
ImageSearch, X, Y, 495, 105, 675, 140,*100 P7.bmp ; 7
If ( Errorlevel = 0 )
{
Random, X1P7 , 675, 676
Random, Y1P7 , 245, 246
Random, X2P7, 755, 756
Random, Y2P7 , 325, 335
Random, TP7 , 10, 12 ; [Speed 0 (Fastest) to 100 (Slowest)]
Random, T1P7 , 140, 150
MouseClickDrag, Left, X1P7, Y1P7, X2P7, Y2P7 , %TP7%
Sleep, %T1P7%
}
ImageSearch, X, Y, 495, 105, 675, 140,*100 P6.bmp ; 6
If ( Errorlevel = 0 )
{
Random, X1P6 , 680, 681
Random, Y1P6 , 245, 246
Random, X2P6 , 760, 761
Random, Y2P6 , 325, 335
Random, TP6, 10, 12 ; [Speed 0 (Fastest) to 100 (Slowest)]
Random, T1P6 , 140, 150
MouseClickDrag, Left, X1P6, Y1P6, X2P6, Y2P6 , %TP6%
Sleep, %T1P6%
}
ImageSearch, X, Y, 495, 105, 675, 140,*100 P5.bmp ; 5
If ( Errorlevel = 0 )
{
Random, X1P5 , 685, 686
Random, Y1P5 , 245, 246
Random, X2P5, 765, 766
Random, Y2P5, 325, 335
Random, TP5 , 10, 12 ; [Speed 0 (Fastest) to 100 (Slowest)]
Random, T1P5 , 140, 150
MouseClickDrag, Left, X1P5, Y1P5, X2P5, Y2P5 , %TP5%
Sleep, %T1P5%
}
ImageSearch, X, Y, 495, 105, 675, 140,*100 P4.bmp ; 4
If ( Errorlevel = 0 )
{
Random, X1P4 , 690, 691
Random, Y1P4 , 245, 246
Random, X2P4 , 770, 771
Random, Y2P4 , 325, 335
Random, TP4 , 10, 12 ; [Speed 0 (Fastest) to 100 (Slowest)]
Random, T1P4 , 140, 150
MouseClickDrag, Left, X1P4, Y1P4, X2P4, Y2P4 , %TP4%
Sleep, %T1P4%
}
ImageSearch, X, Y, 495, 105, 675, 140,*100 P3.bmp ; 3
If ( Errorlevel = 0 )
{
Random, X1P3 , 695, 696
Random, Y1P3 , 245, 246
Random, X2P3 , 775, 776
Random, Y2P3 , 325, 335
Random, TP3 , 10, 12 ; [Speed 0 (Fastest) to 100 (Slowest)]
Random, T1P3 , 140, 150
MouseClickDrag, Left, X1P3, Y1P3, X2P3, Y2P3 , %TP3%
Sleep, %T1P3%
}
ImageSearch, X, Y, 495, 105, 675, 140,*100 P2.bmp ; 2
If ( Errorlevel = 0 )
{
Random, X1P2 , 700, 701
Random, Y1P2 , 245, 246
Random, X2P2 , 780, 781
Random, Y2P2 , 325, 335
Random, TP2 , 10, 12 ; [Speed 0 (Fastest) to 100 (Slowest)]
Random, T1P2 , 140, 150
MouseClickDrag, Left, X1P2, Y1P2, X2P2, Y2P2 , %TP2%
Sleep, %T1P2%
}
ImageSearch, X, Y, 495, 105, 675, 140,*100 P1.bmp ; 1
If ( Errorlevel = 0 )
{
Random, X1P1 , 705, 706
Random, Y1P1 , 245, 246
Random, X2P1 , 785, 786
Random, Y2P1 , 325, 335
Random, TP1 , 10, 12 ; [Speed 0 (Fastest) to 100 (Slowest)]
Random, T1P1 , 140, 150
MouseClickDrag, Left, X1P1, Y1P1, X2P1, Y2P1 , %TP1%
Sleep, %T1P1%
}
ImageSearch, X, Y, 495, 105, 675, 140,*100 Cero.bmp ; Wind 0
If ( Errorlevel = 0 )
{
Random, X10 , 710, 711
Random, Y10 , 245, 246
Random, X20 , 790, 791
Random, Y20 , 325, 335
Random, T0 , 10, 12 ; [Speed 0 (Fastest) to 100 (Slowest)]
Random, T10 , 140, 150
MouseClickDrag, Left, X10, Y10, X20, Y20 , %T0%
Sleep, %T10%
}
ImageSearch, X, Y, 495, 105, 675, 140,*100 N1.bmp ; -1
If ( Errorlevel = 0 )
{
Random, X1N1 , 715, 716
Random, Y1N1 , 245, 246
Random, X2N1 , 795, 796
Random, Y2N1 , 325, 335
Random, TN1 , 10, 12 ; [Speed 0 (Fastest) to 100 (Slowest)]
Random, T1N1 , 140, 150
MouseClickDrag, Left, X1N1, Y1N1, X2N1, Y2N1 , %TN1%
Sleep, %T1N1%
}
ImageSearch, X, Y, 495, 105, 675, 140,*100 N2.bmp ; -2
If ( Errorlevel = 0 )
{
Random, X1N2 , 720, 721
Random, Y1N2 , 245, 246
Random, X2N2 , 800, 801
Random, Y2N2 , 325, 335
Random, TN2 , 10, 12 ; [Speed 0 (Fastest) to 100 (Slowest)]
Random, T1N2 , 140, 150
MouseClickDrag, Left, X1N2, Y1N2, X2N2, Y2N2 , %TN2%
Sleep, %T1N2%
}
ImageSearch, X, Y, 495, 105, 675, 140,*100 N3.bmp ; -3
If ( Errorlevel = 0 )
{
Random, X1N3 , 725, 726
Random, Y1N3 , 245, 246
Random, X2N3 , 805, 806
Random, Y2N3 , 325, 335
Random, TN3 , 10, 12 ; [Speed 0 (Fastest) to 100 (Slowest)]
Random, T1N3 , 140, 150
MouseClickDrag, Left, X1N3, Y1N3, X2N3, Y2N3 , %TN3%
Sleep, %T1N3%
}
ImageSearch, X, Y, 495, 105, 675, 140,*100 N4.bmp ; -4
If ( Errorlevel = 0 )
{
Random, X1N4 , 730, 731
Random, Y1N4 , 245, 246
Random, X2N4 , 810, 811
Random, Y2N4 , 325, 335
Random, TN4 , 10, 12 ; [Speed 0 (Fastest) to 100 (Slowest)]
Random, T1N4 , 140, 150
MouseClickDrag, Left, X1N4, Y1N4, X2N4, Y2N4 , %TN4%
Sleep, %T1N4%
}
ImageSearch, X, Y, 495, 105, 675, 140,*100 N5.bmp ; -5
If ( Errorlevel = 0 )
{
Random, X1N5 , 735, 736
Random, Y1N5 , 245, 246
Random, X2N5 , 815, 816
Random, Y2N5 , 325, 335
Random, TN5 , 10, 12 ; [Speed 0 (Fastest) to 100 (Slowest)]
Random, T1N5 , 140, 150
MouseClickDrag, Left, X1N5, Y1N5, X2N5, Y2N5 , %TN5%
Sleep, %T1N5%
}
ImageSearch, X, Y, 495, 105, 675, 140,*100 N6.bmp ; -6
If ( Errorlevel = 0 )
{
Random, X1N6 , 740, 741
Random, Y1N6 , 245, 246
Random, X2N6 , 820, 821
Random, Y2N6 , 325, 335
Random, TN6 , 10, 12 ; [Speed 0 (Fastest) to 100 (Slowest)]
Random, T1N6 , 140, 150
MouseClickDrag, Left, X1N6, Y1N6, X2N6, Y2N6 , %TN6%
Sleep, %T1N6%
}
ImageSearch, X, Y, 495, 105, 675, 140,*100 N7.bmp ; -7
If ( Errorlevel = 0 ){
Random, X1N7 , 745, 746
Random, Y1N7 , 245, 246
Random, X2N7 , 825, 826
Random, Y2N7 , 325, 335
Random, TN7 , 10, 12 ; [Speed 0 (Fastest) to 100 (Slowest)]
Random, T1N7 , 140, 150
MouseClickDrag, Left, X1N7, Y1N7, X2N7, Y2N7 , %TN7%
Sleep, %T1N7%
}
ImageSearch, X, Y, 495, 105, 675, 140,*100 N8.bmp ; -8
If ( Errorlevel = 0 )
{
Random, X1N8 , 750, 751
Random, Y1N8 , 245, 246
Random, X2N8 , 830, 831
Random, Y2N8 , 325, 335
Random, TN8 , 10, 12 ; [Speed 0 (Fastest) to 100 (Slowest)]
Random, T1N8 , 140, 150
MouseClickDrag, Left, X1N8, Y1N8, X2N8, Y2N8 , %TN8%
Sleep, %T1N8%
}
ImageSearch, X, Y, 495, 105, 675, 140,*100 N9.bmp ; -9
If ( Errorlevel = 0 )
{
Random, X1N9 , 755, 756
Random, Y1N9 , 245, 246
Random, X2N9 , 835, 836
Random, Y2N9 , 325, 335
Random, TN9 , 10, 12 ; [Speed 0 (Fastest) to 100 (Slowest)]
Random, T1N9 , 140, 150
MouseClickDrag, Left, X1N9, Y1N9, X2N9, Y2N9 , %TN9%
Sleep, %T1N9%
}
ImageSearch, X, Y, 495, 105, 675, 140,*100 N10.bmp ; -10
If ( Errorlevel = 0 )
{
Random, X1N10 , 760, 761
Random, Y1N10 , 245, 246
Random, X2N10 , 840, 841
Random, Y2N10 , 325, 335
Random, TN10 , 10, 12 ; [Speed 0 (Fastest) to 100 (Slowest)]
Random, T1N10 , 140, 150
MouseClickDrag, Left, X1N10, Y1N10, X2N10, Y2N10 , %TN10%
Sleep, %T1N10%
}
ImageSearch, X, Y, 485, 60, 680, 100,*90 Finish.bmp
If ( Errorlevel = 0 )
{
Random, T4F , 7000, 8000
Sleep, %T4F%
}
}
Esc:: ExitApp
Nota el ultimo script cada imagen bmp se hace con print screen (captura de pantalla) pegando en mspaint y salvandola en bmp 24 bit. Todo muy basico realizado por un novato como yo en solicitud de alguien mas ducho en desarrocho de Autohotkey.
Otra combinación puede ser mobizen + autohotkey pero no funcionara la busqueda de imagenes de ni de pixeles por culpa de Mobizen.
Igual si alguien tiene algo mas potente en python es bienvenido. Solo con fines educativos y no me hago responsable del mal uso de lo publicado.