Jump to content
Sign in to follow this  
sowied

Mouseclick in Bluestacks

Recommended Posts

sowied

Hi,

im abit new to AutoIt but i tried to automate the start of andriod emulator bluestacks

because it takes alot of time to start it and apps on it

i managed to run the emulator but when it comes to start an app nothing happends

$hwnd = WinActivate("BlueStacks App Player") ;thats the last line that gets executet

MouseMove(980, 640, 0) ;mouse dont Move

ControlClick($hwnd, "", "[CLASS:BlueStacksApp; INSTANCE:1]", 209, 592) ;or click

Sleep(1000) ;sleep works as i can see in the time

MouseDown("left") ;i moved the mouse to another window to see if its a problem on the emulator but nothing happend

Sleep(5000)

any hints would be nice

i really dont know what is going wrong

Share this post


Link to post
Share on other sites
water

Welcome to AutoIt and the forum!

Why do you move the mouse at all?


My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (2018-06-01 - Version 1.4.9.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (NEW 2018-09-01 - Version 1.3.4.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts
PowerPoint (2017-06-06 - Version 0.0.5.0) - Download - General Help & Support
Excel - Example Scripts - Wiki
Word - Wiki
 
Tutorials:

ADO - Wiki

 

Share this post


Link to post
Share on other sites
sowied

to move over the icon of an app

i know the controlclick hast also mousecoordinates in it but none of them work

Share this post


Link to post
Share on other sites
water

What do you get when you use the Window Info Tool that comes with AutoIt? Is every App a control you can click on?


My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (2018-06-01 - Version 1.4.9.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (NEW 2018-09-01 - Version 1.3.4.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts
PowerPoint (2017-06-06 - Version 0.0.5.0) - Download - General Help & Support
Excel - Example Scripts - Wiki
Word - Wiki
 
Tutorials:

ADO - Wiki

 

Share this post


Link to post
Share on other sites
Jos

BlueStack is an environment to run Android apps, so It wouldn't surprise me when it has all kinds of limitations ones it has the focus.

Jos

Edited by Jos

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource        Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites
sowied

no the hole emu has two controls

-the main area

-the bottom area with some buttons

Share this post


Link to post
Share on other sites
water

If the emulator doesn't provide any kind of automation (automatically start Apps etc.) then you are out of luck.


My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (2018-06-01 - Version 1.4.9.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (NEW 2018-09-01 - Version 1.3.4.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts
PowerPoint (2017-06-06 - Version 0.0.5.0) - Download - General Help & Support
Excel - Example Scripts - Wiki
Word - Wiki
 
Tutorials:

ADO - Wiki

 

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
Sign in to follow this  

×