sonic208 Posted February 11, 2017 Share Posted February 11, 2017 (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 : expandcollapse popup>>>> 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 February 11, 2017 by sonic208 Link to comment Share on other sites More sharing options...
sonic208 Posted February 11, 2017 Author Share Posted February 11, 2017 (edited) # Edited February 11, 2017 by sonic208 accidentaly posted an answer Link to comment Share on other sites More sharing options...
R0G Posted February 11, 2017 Share Posted February 11, 2017 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) sonic208 1 Link to comment Share on other sites More sharing options...
sonic208 Posted February 11, 2017 Author Share Posted February 11, 2017 (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 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 February 11, 2017 by sonic208 Link to comment Share on other sites More sharing options...
R0G Posted February 11, 2017 Share Posted February 11, 2017 Does Autoit Window Info tool see the control your trying to click? sonic208 1 Link to comment Share on other sites More sharing options...
kornboy82 Posted May 9, 2018 Share Posted May 9, 2018 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 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 comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now