k3iroll   01-14-2015, 08:12 PM
#7
Managed to find the issue:

The below zoom out codes in v5.4.2.2 does not works well for me
Code:
;~ Func ZoomOut() ;Zooms out
;~     Local $i = 0
;~     While 1
;~         If _Sleep(500) Then ExitLoop
;~         _CaptureRegion(0, 0, 860, 2)
;~         If _PixelGetColor_GetPixel(1, 1) = 0x000000 And _PixelGetColor_GetPixel(850, 1) = 0x000000 Then
;~             ExitLoop
;~         Else
;~             ControlSend("BlueStacks App Player", "", "", "{DOWN}", 0)
;~             $i += 1
;~             If $i = 20 Then
;~                 ExitLoop
;~             EndIf
;~         EndIf
;~     WEnd
;~ EndFunc   ;==>ZoomOut


I replaced with the below codes, found in v5.3.5
Code:
Func ZoomOut() ;Zooms out
    Local $i = 0
    While 1
        getBSPos()
        If _Sleep(500) Then ExitLoop
        If PixelGetColor($BSpos[0] + 1, $BSpos[1] + 1) = 0x000000 And PixelGetColor($BSpos[0] + 850, $BSpos[1] + 1) = 0x000000 Then
            ExitLoop
        Else
            ControlSend("BlueStacks App Player", "", "", "{DOWN}", 0)
            $i += 1
            If $i = 30 Then
                ExitLoop
            EndIf
        EndIf
    WEnd
EndFunc   ;==>ZoomOut
  
Users browsing this thread: 1 Guest(s)
Konloch Software - Bytecode Viewer - Reverse Engineering Forum
Copyright © 2014-2025 The Bytecode Club. Powered By MyBB.
CC0 Unless Specified Otherwise.