Need Help with Bluestacks

04/13/2017 09:38 podahmad#1
Hi i want to send mouse clicks to bluestacks after searcher for a pixel...Plz help me. Im noob but quick learner so plz give me links of tutorials for this purpose or help me with the code.
everything should work in background or even if not in background it should not intrupt with my normal use of computer.
control send is not working on bluestacks :((

Plz help me
04/13/2017 13:47 EngelEatos#2
did you google it?
[Only registered and activated users can see links. Click Here To Register...]

Can you post your code? That we can help you. What have you already tried?
04/22/2017 13:39 Melli-#3
[Only registered and activated users can see links. Click Here To Register...]

Pixelsearch does not work on a hidden window.

So try this:
- make Control Clicks and Pixelsearch on Bluestacks
- open a new Desktop on Win 10
04/23/2017 22:33 Regwin32#4
Use : [Only registered and activated users can see links. Click Here To Register...] for complex searching.

Code:
#include <ImageSearch.au3>

HotKeySet("p", "checkForImage")

global $y = 0, $x = 0

Func checkForImage()
local $search = _ImageSearchArea('check5.bmp', 1, 800, 40, 900, 80, $x, $y, 0)
If $search = 1 Then
MouseMove($x, $y, 10)
EndIf
EndFunc

while 1
sleep(200)
WEnd
Keep in mind, all Images need to be saved in the 24-BIT BMP Format.
04/28/2017 16:15 Melli-#5
Quote:
Originally Posted by Regwin32 View Post
Use : [Only registered and activated users can see links. Click Here To Register...] for complex searching.

Code:
#include <ImageSearch.au3>

HotKeySet("p", "checkForImage")

global $y = 0, $x = 0

Func checkForImage()
local $search = _ImageSearchArea('check5.bmp', 1, 800, 40, 900, 80, $x, $y, 0)
If $search = 1 Then
MouseMove($x, $y, 10)
EndIf
EndFunc

while 1
sleep(200)
WEnd
Keep in mind, all Images need to be saved in the 24-BIT BMP Format.
It's not Control Click and it doesn't click. Only move the mouse, and that slow..
12/01/2018 11:28 Goliard2k6#6
Quote:
Originally Posted by Melli- View Post
It's not Control Click and it doesn't click. Only move the mouse, and that slow..

Make it so

#RequireAdmin
#include <ImageSearch.au3>

HotKeySet("{F1}", "Start")
HotKeySet("{F2}", "Pause")
HotKeySet("{F3}", "Stop")

ControlClick("BlueStacks", "", "[BlueStacks.exe;Instance: 1])", "left", 1, 1, 1) ;thats for my Bluestacks

$x1 = 0
$y1 = 0

Func Start()
While 1
$result = _ImageSearch("99.bmp", 1, $x1, $y1, 60)
If $result = 1 Then
$result = _ImageSearch("98.bmp", 1, $x1, $y1, 60)
If $result = 1 Then
MouseClick("left", $x1, $y1, 1)
Sleep(1000)
EndIf
EndIf


WEnd
EndFunc ;==>Start

While 1
Sleep(100)
WEnd

Func Pause()
Sleep(36000000)
EndFunc ;==>Pause

Func Stop()
Exit
EndFunc ;==>Stop

Thats Search every time; Exit press F3 , Pause press F2, Start/GO press F1

alle Bilder müssen im selben Ordner wie der script liegen mit 24 Bit gespeichert.



habt spaß damit