Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Image search help?
#4
Because of the border around the window (title at the top, and the thin borders on the sides and bottom) there is a certain amount of X/Y offset you need, otherwise your coordinates will be incorrect. getBSPos() is supposed to get the correct values for the play screen.

I don't know how you are using the function you posted. Are you using it stand-alone, or within a script?

If you use just _CaptureRegion() it won't get the offset. It will call getBSPos(), but getBSPos() will be missing the $Title variable. The script I posted above ensures all the values needed are filled out.

Edit: What size is your BlueStacks window? Have you changed it with the .reg file? If not, then the first line in _CaptureRegion() is screwing you up:

Code:
Func _CaptureRegion($iLeft = 0, $iTop = 0, $iRight = 860, $iBottom = 720, $ReturnBMP = False)

See the hard-coded coords? If your window is not that size, it won't work.
Reply
 


Messages In This Thread
Image search help? - by knowjack - 02-24-2015, 07:50 AM
RE: Image search help? - by Snarg - 02-24-2015, 09:18 AM
RE: Image search help? - by knowjack - 02-24-2015, 10:40 AM
RE: Image search help? - by Snarg - 02-24-2015, 02:04 PM
RE: Image search help? - by knowjack - 02-24-2015, 07:17 PM
RE: Image search help? - by Henk500 - 02-25-2015, 12:19 AM
RE: Image search help? - by knowjack - 02-25-2015, 06:14 AM
RE: Image search help? - by Snarg - 02-25-2015, 09:17 AM
RE: Image search help? - by terminus - 02-25-2015, 09:11 PM

Forum Jump:


Users browsing this thread: 2 Guest(s)

About The Bytecode Club

We're a community focused on Reverse Engineering, we try to target Java/Android but we also include other langauges/platforms. We pride ourselves in supporting and free and open sourced applications.

Website