Jump to content
Sign in to follow this  
riceking

Flick mouse

Recommended Posts

riceking

I'm trying to automate some Android tasks, I'm trying to think of a way to simulate a flick, it's unique in the aspect that it doesn't slow down towards the end like mouseclickdrag() does. Rather the mouse should mousedown() mousemove(speed rises) mouseup(). I've played around with the settings, two is the fastest android will detect, any lower and it won't register as a flick. At speed 2, it works sometimes, not consistently, so I throw it in a loop and add some checks to ensure the desired result has been achieved. Any tips?

 


\

Share this post


Link to post
Share on other sites
AutoBert

AutoIt isn't runable on a Android OS.

Share this post


Link to post
Share on other sites
JLogan3o13

@riceking to forestall additional comments, can you confirm you are using an Android emulator? If so, which one? And what app are you working on within the emulator?


√-1 2^3 ∑ π, and it was delicious!

Share this post


Link to post
Share on other sites
riceking

Using Vysor to mirror the screen of my phone onto my PC, no particular apps in general, things like clearing an app from my recents menu.


\

Share this post


Link to post
Share on other sites
Damein

Sounds like some Pokemon GO automation attempt to me ^^;


MCR.jpg?t=1286371579

Most recent sig. I made

Quick Launcher W/ Profiles Topic Movie Database Topic & Website | LiveStreamer Pro Website | YouTube Stand-Alone Playlist Manager: Topic | Weather Desktop Widget: Topic | Flash Memory Game: Topic | Volume Control With Mouse / iTunes Hotkeys: Topic | Weather program: Topic | Paws & Tales radio drama podcast mini-player: Topic | Quick Math Calculations: Topic

Share this post


Link to post
Share on other sites
JLogan3o13

@Damein if you have concerns about the legitimacy of a thread (which you shouldn't as a Moderator is already engaged), and feel you absolutely must take action, please just follow the forum rules and report the thread. Putting your arbitrary guess as to what the OP is doing into the thread doesn't really serve any purpose.


√-1 2^3 ∑ π, and it was delicious!

Share this post


Link to post
Share on other sites
iamtheky

Have you toyed with the length of the flick? If you can't flick harder, then flick longer.  Thank you, thank you very much :)

Edited by iamtheky

,-. .--. ________ .-. .-. ,---. ,-. .-. .-. .-.
|(| / /\ \ |\ /| |__ __||| | | || .-' | |/ / \ \_/ )/
(_) / /__\ \ |(\ / | )| | | `-' | | `-. | | / __ \ (_)
| | | __ | (_)\/ | (_) | | .-. | | .-' | | \ |__| ) (
| | | | |)| | \ / | | | | | |)| | `--. | |) \ | |
`-' |_| (_) | |\/| | `-' /( (_)/( __.' |((_)-' /(_|
'-' '-' (__) (__) (_) (__)

Share this post


Link to post
Share on other sites
Wil
On 7/15/2016 at 11:33 PM, riceking said:

I'm trying to automate some Android tasks, I'm trying to think of a way to simulate a flick, it's unique in the aspect that it doesn't slow down towards the end like mouseclickdrag() does....

You can change/remove the delay at the end of the mouseclickdrag command by using AutoItSetOption() to lower the delay.

I've had some success emulating a flick in bluestacks with this, however it still is sometimes unreliable and will need other checks (as you seem to already have)

Opt("MouseClickDragDelay", 0) ;0 millisecond delay

 

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  

×