The Bytecode Club
Log inJoin the club
Video Game Reverse Engineering

Zooming Out

Started by Just09 · Feb 11, 2015

12 replies227,450 views
Feb 13, 2015#11

yes that's the problem your bluestacks zoom out is CTRL + Scroll down. The Zoom out is based on down keys. Which in your case your BS doesn't have... sooo yeah

You can try this but, no guarantees.

Open \COC-Bot-5.5.1\COCBot\functions\Main Screen\ZoomOut.au3

Right click anywhere in the window, select 'Select All'. Copy the code below and paste over the old code:

;Tries to zoom out of the screen until the borders, located at the top of the game (usually black), is located.
;Only does it for 20 zoom outs, no more than that.

Func ZoomOut() ;Zooms out
 Local $i = 0
 While 1
 _CaptureRegion(0, 0, 860, 2)
 If _GetPixelColor(1, 1) <> Hex(0x000000, 6) And _GetPixelColor(850, 1) <> Hex(0x000000, 6) Then SetLog("Zooming Out", $COLOR_BLUE)
 While _GetPixelColor(1, 1) <> Hex(0x000000, 6) And _GetPixelColor(850, 1) <> Hex(0x000000, 6)
 If _Sleep(600) Then Return
 ;If ControlSend($Title, "", "", "{DOWN}") Then $i += 1
 If ControlSend($Title, "", "", "^{-}") Then $i += 1
 If $i = 20 Then
 ExitLoop
 EndIf
 _CaptureRegion(0, 0, 860, 2)
 WEnd
 ExitLoop
 WEnd
EndFunc   ;==>ZoomOut

Close and save the file then try and run the bot. Let me know if it works.

Thanks for ur effort but not worked. Any soliton for zooming bindkeys?

Feb 15, 2015#12

This is the solution, navigate to C:\ProgramData\BlueStacks\UserData\InputMapper and open the cfg file com.supercell.clashofclans with notepad. Add the following lines ad save. Restart BS. For me worked perfectly.

ALWAYS_SEND_UNMAPPED_KEY

Clash Of Clans

[Origin]
Author = Harsh
Rating = 4.0
[Keys]
Down = Swipe Up (20,50); Swipe Down (60,20)
Up = Swipe Down (20,50); Swipe Up (60,20)
[Guidance]
Down = SDown
Up = SUp
[Gamepad]
A = Down
B = Up
[OpenSensor]
Mode = Tap
A = Up SUp
B = Down SDown
[Strings]
SDown = Zoom Out
SUp = Zoom In

Feb 15, 2015#13

This is the solution, navigate to C:\ProgramData\BlueStacks\UserData\InputMapper and open the cfg file com.supercell.clashofclans with notepad. Add the following lines ad save. Restart BS. For me worked perfectly.

ALWAYS_SEND_UNMAPPED_KEY

Clash Of Clans

[Origin]
Author = Harsh
Rating = 4.0
[Keys]
Down = Swipe Up (20,50); Swipe Down (60,20)
Up = Swipe Down (20,50); Swipe Up (60,20)
[Guidance]
Down = SDown
Up = SUp
[Gamepad]
A = Down
B = Up
[OpenSensor]
Mode = Tap
A = Up SUp
B = Down SDown
[Strings]
SDown = Zoom Out
SUp = Zoom In

Yea I find this early, but thanks.

Got something to add?

Log in to post a reply.

Join the conversation