sonic208

controlclick on bluestacks

5 posts in this topic

#1 ·  Posted (edited)

hey guys,

i have a problem concerning controlclick. id like to start an app on bluestacks , but it works only when the windows was activated earlier. so in fact its not a real controlclick, but i would like it to be clicked when the bluestacks window is hidden.. does anybody has a trick on how to use the controlclick function right ? propably im doing it wrong, and i hope so. im afraid its the problem of bluestacks itself ? but what would be the purpose of controlclick if it doesnt work on programs ?

 

WinActivate("BlueStacks App Player")

ControlClick("BlueStacks App Player","_ctl.Window","","left",1,590, 306)
Sleep(2000)

this is what the info tool gives me :

>>>> Window <<<<
Title:  BlueStacks App Player
Class:  HwndWrapper[BlueStacks.exe;;781a330a-aa20-4165-b783-a247fe2c5807]
Position:   6, 2
Size:   1024, 576
Style:  0x16080000
ExStyle:    0x00040000
Handle: 0x00010576

>>>> Control <<<<
Class:  BlueStacksApp
Instance:   1
ClassnameNN:    BlueStacksApp1
Name:   
Advanced (Class):   [CLASS:BlueStacksApp; INSTANCE:1]
ID: 
Text:   _ctl.Window
Position:   60, 32
Size:   962, 541
ControlClick Coords:    401, 123
Style:  0x58000000
ExStyle:    0x00000000
Handle: 0x00010558

>>>> Mouse <<<<
Position:   467, 158
Cursor ID:  0
Color:  0x5C9A82

>>>> StatusBar <<<<

>>>> ToolsBar <<<<

>>>> Visible Text <<<<
_ctl.Window


>>>> Hidden Text <<<<

 

Edited by sonic208

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

#

Edited by sonic208
accidentaly posted an answer

Share this post


Link to post
Share on other sites

ControlClick works fine on Bluestacks controls, the window can be hidden and inactive and it should still work.

Try this: (assuming your coordinates are correct)

ControlClick("BlueStacks App Player","","[CLASS:BlueStacksApp; INSTANCE:1]","left",1,590, 306)

 

1 person likes this

Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

unfortunately this doesnt work,  even after winactivate

does it work for you  ? hmm this is very strange, i even put once the mouse click coords and then the controlclick coords, nothing works

i just got it working , thank you rog :) you gave me the right idea

i didnt focus it right with the finder tool, now this is what ive got as class name :D and it works finee yeeeeah

ControlClick("BlueStacks App Player","_ctl.Window","[CLASS:WindowsForms10.Window.8.app.0.3c4abcc_r9_ad1; INSTANCE:3]","left",1, 409, 114)

 

Edited by sonic208

Share this post


Link to post
Share on other sites

Does Autoit Window Info tool see the control your trying to click?

1 person likes this

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now