
ControlClick, x451 y860, BlueStacks this is what I omitted (to fix it "clicking at the wrong area" ImageSearch, Loc_X, Loc_Y, 0, 0,*80 A_ScreenWidth, A_ScreenHeight,xplease.bmp

WinMove, BlueStacks,0,0,500,900 omitted as is not needed it no longer works UNTIL I change -Ĭan anyone explain why this is happening? if my explanation sucks I can try to make a quick video (however my upload speed is horrrrible so it might take awhile to upload) (which are the same exact image just with different names) it will work! (however it will ONLY click on the "x" if BlueStacks is at 0,0 for some reason.)īUT if I close the game and re-open it. ImageSearch, Loc_X, Loc_Y, 0, 0, A_ScreenWidth, A_ScreenHeight,xhere.PNG
BLUESTACKS X Y COORDINATES HOW TO
no clue how to fix it however I can try to explain it perhaps one of you can help. ImageSearch, Loc_X, Loc_Y, 0, 0, A_ScreenWidth, A_ScreenHeight,xtest.PNGĪlright I am absolutely lost now - after MUCH bug testing I have discovered something horribly wrong. This FINDS and controlclicks on it!! BUT it's clicking the image that gets opened by the ahk script rather than bluestacks (not sure how to explain it) - it cannot find it in "BlueStacks" Gui,1:Add,Picture,x0 y0 vClip_Picture gMove_Window,xhere.bmp MsgBox,ErrorLevel = 2'nSomething went very wrongĬontrolClick, x%Loc_X% y%Loc_Y%, BlueStacks ImageSearch, Loc_X, Loc_Y, 0, 0, A_ScreenWidth, A_ScreenHeight, xhere.bmp When I used autoit for this I (had to? i think) force the program I was attempting to click on to a specific area of the screen (IE: I set bluestacks to 0,0) then ControlClick inside of "BlueStacks" at control click coords if image was found. I tried "ControlClick,BlueStacks,Loc_X, Loc_Y" and "ControlClick,Loc_X Loc_Y, BlueStacks" but I had a very strong feeling that it was not going to work. Instead of mousemove and mouseclick I would just like ControlClick to click on the center of where the pictures X/Y were found (Loc_X, Loc_Y) (and do //2 on both to get the center) WITHOUT having to specify the coords myself - i'd like it to use the values it was given from the ImageSearch (if possible) to allow for BlueStacks to be moved around while the script is playing. Gui,1:Add,Picture,x0 y0 vClip_Picture gMove_Window,example.PNG

MsgBox,ErrorLevel = 2'nSomething is wrong ImageSearch, Loc_X, Loc_Y, 0, 0, A_ScreenWidth, A_ScreenHeight,example.PNG

Gui,2:Add,Button,x10 w200 h20 gGui_1,Load / Reload image Gui,2:Add,Button,x10 y10 w200 h20 gFind_Image,Find image
