Jump to content

controlclick on bluestacks


Recommended Posts

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
Link to post
Share on other sites

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
Link to post
Share on other sites
  • 1 year later...
On 11/02/2017 at 4:22 PM, sonic208 said:

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)

 

Are you stil able to do this? I have hard time to do the same actually.

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
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...