hiện tại sau bao ngày học tập cùng vs sự giúp đỡ của một số bác trên forum cũng như trên fb thì trình độ e ngày càng tiến bộ
nhưng mà e ngu lâu , khó đào tạo mong các bác giúp đỡ e típ a :'(
trả là e muốn làm 1 tool nhỏ review 5 sao app trên Droi nhưng gặp phải 1 số vấn đề như sau :
1 : khi e kéo xuống để bấm 5 sao thì nó thường ko dừng đúng điểm
e đã khác phục bằng cách dùng while vs imagaseach nhưng vây thì nó hơi chậm do phải để thời gian để nó nhân diện ảnh
2 : làm sao để click chọn 5 sao bây giờ a ???
nếu click toa độ thì ko chính xác do nó kéo xuống chữa chắc đã đúng toạ độ
nếu là imagasearch thì bác bác code quá cho e tham khảo vs a
E xin cảm ơn !!
While 1
Local $x1=0 , $y1=0
$search1=_ImageSearch(@ScriptDir&'\install.bmp',1,$x1,$y1,0)
If $search1 = 1 then MouseClick("left",$x1,$y1)
Sleep(2000)
Local $x=0 , $y=0
$search=_ImageSearch(@ScriptDir&'\acc.bmp',1,$x,$y,0)
if $search=1 then MouseClick("left",$x,$y)
Sleep(2000)
MouseClick("left",785,534);bamgiiua droi
Sleep(1000)
MouseMove(1379, 512)
Sleep(1000)
MouseWheel($MOUSE_WHEEL_DOWN,1)
Sleep(500)
MouseWheel($MOUSE_WHEEL_DOWN,1)
Sleep(500)
MouseWheel($MOUSE_WHEEL_DOWN,1)
Sleep(500)
MouseWheel($MOUSE_WHEEL_DOWN,1)
Sleep(500)
MouseWheel($MOUSE_WHEEL_DOWN,1)
Sleep(500)
MouseWheel($MOUSE_WHEEL_DOWN,1)
Sleep(500)
MouseWheel($MOUSE_WHEEL_DOWN,1)
Sleep(500)
MouseWheel($MOUSE_WHEEL_DOWN,1)
Sleep(500)
MouseWheel($MOUSE_WHEEL_DOWN,1)
Sleep(500)
MouseWheel($MOUSE_WHEEL_DOWN,1)
Sleep(500)
MouseWheel($MOUSE_WHEEL_DOWN,1)
Sleep(10000)
Local $x3 = 0 , $y3=0
$search3=_ImageSearch(@ScriptDir&'\1sao.bmp',1,$x3,$y3,0)
If $search3 = 1 then MouseClick("left",$x3,$y3)
Sleep(500)
MouseWheel($MOUSE_WHEEL_DOWN,1)
Sleep(500)
MouseWheel($MOUSE_WHEEL_DOWN,1)
MouseWheel($MOUSE_WHEEL_DOWN,1)
Sleep(500)
MouseWheel($MOUSE_WHEEL_DOWN,1)
Sleep(10000)
Local $x4 = 0 , $y4=0
$search4=_ImageSearch(@ScriptDir&'\1ssao.bmp',1,$x4,$y4,0)
If $search4 = 1 then MouseClick("left",$x4,$y4)
Sleep(1000)
MouseWheel($MOUSE_WHEEL_DOWN,1)
Sleep(500)
MouseWheel($MOUSE_WHEEL_DOWN,1)
Sleep(500)
MouseWheel($MOUSE_WHEEL_DOWN,1)
Sleep(10000)
Local $x5 = 0 , $y5=0
$search5=_ImageSearch(@ScriptDir&'\1sao.bmp',1,$x5,$y5,0)
If $search5 = 1 then MouseClick("left",$x5,$y5)
Sleep(500)
MouseWheel($MOUSE_WHEEL_DOWN,1)
Sleep(500)
MouseWheel($MOUSE_WHEEL_DOWN,1)
Sleep(1000)
MouseWheel($MOUSE_WHEEL_DOWN,1)
Sleep(2000)
MouseWheel($MOUSE_WHEEL_DOWN,1)
Sleep(500)
MouseWheel($MOUSE_WHEEL_DOWN,1)
Sleep(500)
MouseWheel($MOUSE_WHEEL_DOWN,1)
Sleep(500)
MouseWheel($MOUSE_WHEEL_DOWN,1)
MouseWheel($MOUSE_WHEEL_DOWN,1)
Sleep(500)
MouseWheel($MOUSE_WHEEL_DOWN,1)
Sleep(500)
MouseWheel($MOUSE_WHEEL_DOWN,1)
Sleep(500)
MouseWheel($MOUSE_WHEEL_DOWN,1)
Sleep(500)
MouseWheel($MOUSE_WHEEL_UP, 100)
Local $x6 = 0 , $y6=0
$search6=_ImageSearch(@ScriptDir&'\stop.bmp',1,$x6,$y6,0)
If $search6 = 1 then ExitLoop
Sleep(500)
WEnd
nhưng mà e ngu lâu , khó đào tạo mong các bác giúp đỡ e típ a :'(
trả là e muốn làm 1 tool nhỏ review 5 sao app trên Droi nhưng gặp phải 1 số vấn đề như sau :
1 : khi e kéo xuống để bấm 5 sao thì nó thường ko dừng đúng điểm
e đã khác phục bằng cách dùng while vs imagaseach nhưng vây thì nó hơi chậm do phải để thời gian để nó nhân diện ảnh
2 : làm sao để click chọn 5 sao bây giờ a ???
nếu click toa độ thì ko chính xác do nó kéo xuống chữa chắc đã đúng toạ độ
nếu là imagasearch thì bác bác code quá cho e tham khảo vs a
E xin cảm ơn !!
While 1
Local $x1=0 , $y1=0
$search1=_ImageSearch(@ScriptDir&'\install.bmp',1,$x1,$y1,0)
If $search1 = 1 then MouseClick("left",$x1,$y1)
Sleep(2000)
Local $x=0 , $y=0
$search=_ImageSearch(@ScriptDir&'\acc.bmp',1,$x,$y,0)
if $search=1 then MouseClick("left",$x,$y)
Sleep(2000)
MouseClick("left",785,534);bamgiiua droi
Sleep(1000)
MouseMove(1379, 512)
Sleep(1000)
MouseWheel($MOUSE_WHEEL_DOWN,1)
Sleep(500)
MouseWheel($MOUSE_WHEEL_DOWN,1)
Sleep(500)
MouseWheel($MOUSE_WHEEL_DOWN,1)
Sleep(500)
MouseWheel($MOUSE_WHEEL_DOWN,1)
Sleep(500)
MouseWheel($MOUSE_WHEEL_DOWN,1)
Sleep(500)
MouseWheel($MOUSE_WHEEL_DOWN,1)
Sleep(500)
MouseWheel($MOUSE_WHEEL_DOWN,1)
Sleep(500)
MouseWheel($MOUSE_WHEEL_DOWN,1)
Sleep(500)
MouseWheel($MOUSE_WHEEL_DOWN,1)
Sleep(500)
MouseWheel($MOUSE_WHEEL_DOWN,1)
Sleep(500)
MouseWheel($MOUSE_WHEEL_DOWN,1)
Sleep(10000)
Local $x3 = 0 , $y3=0
$search3=_ImageSearch(@ScriptDir&'\1sao.bmp',1,$x3,$y3,0)
If $search3 = 1 then MouseClick("left",$x3,$y3)
Sleep(500)
MouseWheel($MOUSE_WHEEL_DOWN,1)
Sleep(500)
MouseWheel($MOUSE_WHEEL_DOWN,1)
MouseWheel($MOUSE_WHEEL_DOWN,1)
Sleep(500)
MouseWheel($MOUSE_WHEEL_DOWN,1)
Sleep(10000)
Local $x4 = 0 , $y4=0
$search4=_ImageSearch(@ScriptDir&'\1ssao.bmp',1,$x4,$y4,0)
If $search4 = 1 then MouseClick("left",$x4,$y4)
Sleep(1000)
MouseWheel($MOUSE_WHEEL_DOWN,1)
Sleep(500)
MouseWheel($MOUSE_WHEEL_DOWN,1)
Sleep(500)
MouseWheel($MOUSE_WHEEL_DOWN,1)
Sleep(10000)
Local $x5 = 0 , $y5=0
$search5=_ImageSearch(@ScriptDir&'\1sao.bmp',1,$x5,$y5,0)
If $search5 = 1 then MouseClick("left",$x5,$y5)
Sleep(500)
MouseWheel($MOUSE_WHEEL_DOWN,1)
Sleep(500)
MouseWheel($MOUSE_WHEEL_DOWN,1)
Sleep(1000)
MouseWheel($MOUSE_WHEEL_DOWN,1)
Sleep(2000)
MouseWheel($MOUSE_WHEEL_DOWN,1)
Sleep(500)
MouseWheel($MOUSE_WHEEL_DOWN,1)
Sleep(500)
MouseWheel($MOUSE_WHEEL_DOWN,1)
Sleep(500)
MouseWheel($MOUSE_WHEEL_DOWN,1)
MouseWheel($MOUSE_WHEEL_DOWN,1)
Sleep(500)
MouseWheel($MOUSE_WHEEL_DOWN,1)
Sleep(500)
MouseWheel($MOUSE_WHEEL_DOWN,1)
Sleep(500)
MouseWheel($MOUSE_WHEEL_DOWN,1)
Sleep(500)
MouseWheel($MOUSE_WHEEL_UP, 100)
Local $x6 = 0 , $y6=0
$search6=_ImageSearch(@ScriptDir&'\stop.bmp',1,$x6,$y6,0)
If $search6 = 1 then ExitLoop
Sleep(500)
WEnd