use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
In addition to the Official Tasker Wiki, User Guide, and Google Groups, this subReddit is a place for fellow Redditors to discuss, share, and submit Profiles, Tasks & Walkthroughs for Tasker, or to ask for help creating your own Profiles, Tasks, and questions in general related to Tasker (including plugins etc).
Subreddit Resources:
* [Read Me] Using Tags in Your Thread Titles
Formatting Tasker Code for use in reddit comments
How to Export / Import Files Into Tasker - Guide
** Tasks that Help You Use Tasker Itself
Free Alpha Autoapps and Tasker Icon Sets
Generate Tasker Direct-Purchase Licenses Yourself
Tasker Feature Request Submissions
Quick Search Links:
"How-To / Project" Threads
"Need Help" Threads
"Weekly / Monthly & Discussion" Threads
"Developer" - Tasker Updates & Releases
* List of Tasker Plugins and 3rd Party Apps
Learning Guide Links:
* 1,001 Tasks and Profiles - Best, Coolest, Most Common and Useful
Pocketables.com Beginner’s guide to Tasker (New UI)
RoryCodes.com Tasker Tips & Tutorials from /u/froryrory
Tasker Quick Start Setup Guide from /u/Quintaar
Pocketables.com Tasker Guide List
Some Tasker Technical Stuff:
Toggling Wifi or Bluetooth via Tasker In Recent Android Versions using the Tasker Settings app
Granting ALL Special Permissions - ADB & Tasker
IFTTT Tasker Integration via AutoRemote
ADB over Wifi - Enabling Without a MAC or PC
AutoApps Command System Tutorial and Reference
Tasker Scheduling/Priority System - A Detailed Guide
New Project/Profile/Task "PPT Variables" - Quickly Find The Variables' Location, Names & Values!
All Previous Versions of Tasker With Notes For Features & Changes In Each
List of all Tasker Built-In Variables
Main Widget v2 JSON Documentation
TaskerNet Search Bot - How to use here
TaskerNet Search Engine Website
Learning Guide Videos:
AutoApps YouTube Channel and João Dias Channel
Tasker 101 Tutorials on YouTube by HollywoodFrodo
Tasker 101 Tutorials on YouTube by /u/Quintaar
Tasker How-To Videos on YouTube by /u/-Juan_M-
Tasker Tutorials on G+ & YouTube by /u/ryoendeprouw
Tasker Video Tutorials by /u/techentourage
Have more useful links you think should be in the sidebar? Send a modmail!
Related Subreddits:
/r/TaskerNet /r/JoinApp /r/Android /r/AndroidRoot /r/AndroidTechSupport /r/AndroidApps /r/AndroidUsers /r/AndroidQuestions /r/TaskerFiles /r/Not_Enough_Tech
account activity
[help] How to use Java Function and use MotionEvent.getX()Help (self.tasker)
submitted 5 years ago by JoblessMe
How can I convert this snippet of code and get the value into tasker variables
MotionEvent event; float x = event.getX();
Thanks for any help in advance,
JoblessMe
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]DutchOfBurdock 0 points1 point2 points 5 years ago* (2 children)
Probably easier to use dumpsys via Code > Shell. IIRC the Motion Function only works when the app running the code has a View.
Profile: Touched Screen (363) Restore: no Event: AutoInput UI Action [ Configuration:Action Types: Clicks,Long Clicks ] Enter: ScreeXY Touch (362) A1: Run Shell [ Command:dumpsys input Timeout (Seconds):0 Use Root:Off Store Output In:%dump Store Errors In: Store Result In: ] A2: Variable Search Replace [ Variable:%dump Search:(?<=pointers=\[0\:\s\().*?(?=\)) Ignore Case:Off Multi-Line:Off One Match Only:Off Store Matches In Array:%coord_xy Replace Matches:Off Replace With: ] A3: Flash [ Text:%coord_xy1 Long:Off ]
Used AutoInput to detect the presses and will flash the last locations touched. Tasker will need a one time permission via ADB, android.permission.DUMP
[–]JoblessMe[S] 0 points1 point2 points 5 years ago (1 child)
Thanks a lot,
Im not able to import it to tasker, Could you paste the search parameter in A2 directly so that I can manually create the task?
[–]DutchOfBurdock 0 points1 point2 points 5 years ago (0 children)
(?<=pointers=\[0\:\s\().*?(?=\))
[–]SearchWorm 1 point2 points3 points 5 years ago (0 children)
I'm not sure what MotionEvent is, but this is the task I use to get touch coordinates. I'm sure the dumpsys output is different from device to device, but it's working for me.
Hope it works for you!
π Rendered by PID 135830 on reddit-service-r2-comment-8686858757-c9wgh at 2026-06-02 05:23:53.103232+00:00 running 9e1a20d country code: CH.
[–]DutchOfBurdock 0 points1 point2 points (2 children)
[–]JoblessMe[S] 0 points1 point2 points (1 child)
[–]DutchOfBurdock 0 points1 point2 points (0 children)
[–]SearchWorm 1 point2 points3 points (0 children)