mohanjackie Posted August 27, 2018 Posted August 27, 2018 Hi, I am was automating with imacros, I came to know about autoit, I just started it and i have a tough time with android emulator, Autoit info tool doesn't show class or title info about actions inside emulator, I am using android emulator called memu I have automated with only mouse clicks, it sometimes works good when window in correct position. I came with the problem, Please help me if you can I used to use in imacros but i dont know how to in autoit, i got confused with seeing excel udf 1. I need excel to input on login window but i dont want it loop, i need to input the row number and the auto it should place the row in login page In imacros i used to use this codes below: " ' Specify input file (if !COL variables are used, IIM automatically assume a CSV format of the input file 'CSV = Comma Separated Values in each line of the file SET !DATASOURCE Address.csv 'Start at line 2 to skip the header in the file SET !LOOP 2 'Increase the current position in the file with each loop SET !DATASOURCE_LINE {{!LOOP}} ' Fill web form URL GOTO=http://demo.imacros.net/Automate/AutoDataEntry TAG POS=1 TYPE=INPUT:TEXT FORM=ID:demo ATTR=NAME:fname CONTENT={{!COL1}} TAG POS=1 TYPE=INPUT:TEXT FORM=ID:demo ATTR=NAME:lname CONTENT={{!COL2}} TAG POS=1 TYPE=INPUT:TEXT FORM=ID:demo ATTR=NAME:address CONTENT={{!COL3}} TAG POS=1 TYPE=INPUT:TEXT FORM=ID:demo ATTR=NAME:city CONTENT={{!COL4}} TAG POS=1 TYPE=INPUT:TEXT FORM=ID:demo ATTR=NAME:zip CONTENT={{!COL5}} 2. I need auto it to click oncertin point when green color turns to grey, Because the window loads but i dont get any class id's so i can automate it using color I will just automate and just share it here when its fully working, Actully i am automating instagram acc in android emulator
gibbo9000 Posted October 1, 2018 Posted October 1, 2018 (edited) Would be interested to know if you solved this, or moved to a different emulator? Before reading any of this forum in detail I did quite a bit of work across AutoIt and MEmu. The application was to optimise the charging state of our Solar Battery system overnight based on forward forecast of cloud cover - so tying together download of solar forecast, processing in Excel, and then adjusting the system through its Android app (there are API methods but they rely on knowing the installers Password and I wanted to avoid that need). AutoIt did the first two parts easily. Bottom line is I gave up on MEmu for two reasons: First is the lack of discussion (and I sense appetite to discuss) around it given its dominant 'Games' focus being a no go area for this forum; Its presentation layer is complex. In my case I found what looked like a single window that would respond to mouse and keyboard when in focus was made up of at least 2 enabled/active windows called "MEmu" along with ControlID's all of which can best be described 'overlapping layers'. If you open an App in Memu, configure a couple of keyboard shortcuts, and then use a mix of WinList(), WinGetState() and ControlGetHandle() alongside AutoIt Window Info you will see the challenge. After carefully isolating the various Window and Control handles, I simply could not find a combination to use with ControlSend, ControlClick etc. that gave a consistent result when not in focus (and since it is running overnight I would prefer it in Session 0 as a service). Changing the Coord mode between Screen and Client didn't make a difference for me. Currently using BlueStacks where ControlSend() and Keyboard shortcuts seems to be stable. Edited October 1, 2018 by gibbo9000
Moderators JLogan3o13 Posted October 1, 2018 Moderators Posted October 1, 2018 @mohanjackie gibbo9000 does bring up a valid point about games discussion on this forum (I realize you state you're using it for instagram), and the fact that gaming is 90% of what these emulators are used for. However, I would suggest you read over the rules anyway, as there are other items that speak to your post. One of them would be to ensure you are doing nothing that is against the site's Terms of Service with your automation script. "Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball How to get your question answered on this forum!
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