Input Tap Swipe / Help - Tasker Tips & Tricks

I have a profile setup when BT connection is made to my vehicle's headunit it opens Pandora, sets media volume and opens Allstate app. I am having an issue with exit tasks.
My device is a rooted Motorola Moto G5 Plus. My exit tasks are setup to drop volume level and kill pandora and allstate(as root). This works effectively but the apps still show in recent apps list. I want to completely have these wiped.
I tried to add a task to run shell command as:
Code:
input keyevent APP_SWITCH
input tap swipe 200 1000 500 1000
wait 0.5
input tap swipe 200 1000 500 1000
wait 0.5
input tap swipe 200 1000 500 1000
However, all this does is bring up switch app screen and does not complete the swipe. I am fairly certain my x y cooridanted are correct. As I pulled them using the pointer location in developer options.
Can anyone provide any insight or an alternate solution to clearing the recent apps inside tasker. Thank you!

Anyways, newbie mistake I suppose.
This is what worked for me:
Code:
input keyevent APP_SWITCH
input swipe 200 1000 500 100
input swipe 200 1000 500 100
input swipe 200 1000 500 100

cas0586 said:
Anyways, newbie mistake I suppose.
This is what worked for me:
Code:
input keyevent APP_SWITCH
input swipe 200 1000 500 100
input swipe 200 1000 500 100
input swipe 200 1000 500 100
Click to expand...
Click to collapse
This is how you suppose to use input swipe command
Code:
input swipe start_x start_y stop_x stop_y duration
For example;
Code:
input swipe 100 100 500 100 150
This means swiping will start from X 100 and Y 100 points and will stop at X 100 and Y 500 points in 150 milliseconds.

Hello
I am trying to automatically start split screen mode with the tap and swipe command. However, I am in trouble because I can not find a way to continuously do long taps and swipe.
Anyone give me a hint?
Code:
input tap 900 20
timeout /t 1
input touchscreen swipe 600 220 600 220 1000
input touchscreen swipe 600 220 200 220 1000

Related

[REF][UPDATED 09/08]List of Diamond Tweaks

This is a summary of Diamond tweaks collected from various threads on XDA and from people's contributions. Thanks to all who discovered the Tweaks (not mentioning by name because there's too many to mention and all I did is aggregate). This is a collective effort so let's keep the list growing!
thread. Let's keep the comments in the Warning: Be sure you know what you're doing and read around the Diamond forums to see where others have run into trouble and with which tweaks on which ROMs. Many people have had to Hard Reset their devices while others have had no problems so read up!
1. Boost TFL3D Performance --> Using Advanced Config, change File system cache to 8mb and file system filter cache to 131072
2. Boost TFL3D Performance --> HKLM\System\Storagemanager\Fatfs and change key Cachesize from 16384 to 32768
3. Wake Up on New SMS --> HKLM\Drivers\BuiltIn\RIL : DisableSMSWakeUpEvent <-- set to "1" by default. Change value to "0"
4. Switch Mute Call on phone flipped face down: HKLM\Software\HTC\PHONE : FaceDownMuteRing: change value to "1" (FIXED: thanks KuKuRiKu and everyone)
5. Change CallWaiting Tone --> HKLM\Software\HTC\PHONE : by default set to \windows\waitingtone.wav by default. change to anything else
6. Boost TFL3D Scrolling Speed --> - HKLM\SYSTEM\GDI\GLYPHCACHE\limit = 16384 or 32768 (DWORD decimal)
- To change it back to the default: - HKLM\SYSTEM\GDI\GLYPHCACHE\limit = 8192 (DWORD decimal)
7. To do a Hard Reset, with the phone ON, hold down the Volume Down and Enter (round navigation) keys and press soft reset while they are pressed
8. Prevent screen switching off during phone call --> HKEY_Local_Machine\Drivers\BuiltIn\RIL\EnableFastDormantDisplayDuringCall to 0 (Note: does not work on all ROMs)
AND (tested and works on EU ROMs thanks to Rod65)
HKCU\ControlPanel\Phone\Sleep switch value from 1 to 0
9. Downlod original CONTENT folder (Wallpaper, VIDEO, MUSIC) here http://rapidshare.com/files/121271047/CONTENT_Internal_storage.rar.html
10. Set HTC Album X button to close not minimize:ok_minimize change value to 0
11. Disable Enlarged Title bar (when you click on a notification) to the default WM behavior: HKLM->Software->HTC->EnlargeTitleBar - and change "Enable" from 1 to 0.
12. Turn off startup aninmation and sound: HKEY_Local_Machine\Software\HTC\HTCAnimation\ -> rename both "StartupGif" and "StartupWav" to other names
13. Enable GPS photo: HKEY_LOCAL_MACHINE\SOFTWARE\HTC\Camera\P10 -> change the value "enabled" from 0 to 1
15. Another supposed TFL3D tweak for better performance: HKLM\Software\OEM\TFLOSettings:
SpeedHigh: default value (25) <-- Change to (5) / SpeedLow : default value (70) <-- Chnge to (14) save and soft reset
16. Adjust screen sensitivity: HKEY_LOCAL_MACHINE\Drivers\TouchPanel
Value = PressureThreshold
Change from the default dword:00000027 or 34 to dword:000000f0 or 240 in decimal
17. Lightsensor Switching the Screen off- realised by yelitterulez, confirmed by pietrucci and tested by myself. When making a call the screen stays on if you leave the phone lying flat on a table. If you wait 10 seconds into the call, you can pick it up to your ear and the screen stays on.
BUT if you make a call with the phone slightly tilted/ slanted (you get the idea), the screen turns off as soon as the call gets connected!
The moment you hold the phone to your head the blacklight turns off. In fact: the moment you hide the screen with anything it turns off! (try your hand...).
This might be the reason why everybody's complaining about the screen turning off during a call: you hold the phone to your head! When you turn the screen back on manually, it stays on no matter if you hold your hand or head...
18. Automatically lock your Diamond --> HKEY_CURRENT_USER\ControlPanel\BackLight\AutoDevic eLockEnable from 0 to 1 and everytime your backlight goes off the device is locked
19. More Camera Modes:
To Enable 'Burst': HKEY_LOCAL_MACHINE\SOFTWARE\HTC\Camera\P6 -> change the value "enabled" from 0 to 1
To Enable 'Sport': HKEY_LOCAL_MACHINE\SOFTWARE\HTC\Camera\P8 -> change the value "enabled" from 0 to 1
To Enable 'Video Share': HKEY_LOCAL_MACHINE\SOFTWARE\HTC\Camera\P9 -> change the value "enabled" from 0 to 1
20. Delay device autolock: HKEY_CURRENT_USER\ControlPanel\BackLight\AutoDeviceLockTimeout -> Change the Dword value (30 = 30 seconds, etc)
21. Enable Manual Screen Rotation (Portrait/Landscape): HKLM - System - GDI - Rotation - HideOrientationUI (change from 1 to 0)
22. Hide SIM Contacts: HKCU\ControlPanel\Phone - create a new DWORD value named "ShowSim" and set it to 0
23. Show Weekday in TFL3D (thanks to pulp) - download and install http://rapidshare.com/files/127174792/weekday.cab
24. Enable HSUPA:
HKLM\Software\HTC\AdvancedNetwork\SupportHSUPA =change it to 1
25. Enable Audio Booster without headset-->HKLM/System/State/Hardware/Headset set the value to 1 (soft reset will bring it back to 0)
26. Add a Call History tab to TF3D (discovered by sushilange, spread by Fabliv) --> http://forum.xda-developers.com/showthread.php?t=410180
27. Add new Cities to TF3D http://forum.xda-developers.com/showthread.php?t=408918 - thanks to R. DevilR
28. Remove orphan icons and shortcuts - http://forum.xda-developers.com/showpost.php?p=2461697&postcount=3
29. Four icons in a row in WM Programs/Settings screens - http://forum.xda-developers.com/showpost.php?p=2462244&postcount=16
30. Remove Vertical and Horizontal Scrollbars
For the horizontal (bottom) scrollbar:
HKLM\System\GWE\cyHScr = 0 (DWORD decimal)
For the vertical (right) scrollbar:
HKLM\System\GWE\cxVScr = 0 (DWORD decimal)
31. Remap Manila softkeys:
HKLM/Software/HTC/manila/
HomeLSKPath, which is the left softkey (Standard = Phonepad)
And
HomeRSKPath, which is the right softkey.
If you change these with the location of the programs you want to link to, and simultaneous change the names:
HomeLSKText = Left softkey text
And
HomeRSKText = Right softkey text.
HKEY_LOCAL_MACHINE\Software\HTC\HTCAlbum :
32. Change system and context menu font size:
HKEY_LOCAL_MACHINE\system\gwe\menu\popfnt
and change the value for the "Ht" entry to "1000" decimal (from 1200)
33. Increase maximum picture size when shooting in Burst and Sports mode:When activating "burst" and "sport" the max size of the pictures is "L" but if you change:
HKLM\SOFTWARE\HTC\Camera\P8\MainCamCaptSize value to 1024
and
HKLM\SOFTWARE\HTC\Camera\P8\MainCamSupportCaptSize to 1744Do the same for P6 and you can now shoot in these modes up to 3M and not just L - thanks to nnevynn for
34. Get Blackberry Connect working on your Diamond!! (thanks to cybertech99)
http://rapidshare.com/files/114522380/BBConnect_WM6_Profession.cab
35. Disable Diamond Phonepad Skin
HKLM -> Security -> Phone -> Skin -> Enable (set 1 to 0), then reset.
36. Enable Better Power Management
HKLM\Drivers\SDCARD\ClientDrivers\Class\SIM_Class
Set DisablePowerManagement = 0 (default=1)
HKLM\Drivers\SDCARD\ClientDrivers\Class\MMC_Class
Set DisablePowerManagement = 0 (default=1)
HKLM\Drivers\SDCARD\ClientDrivers\Class\NAND_Class
Set DisablePowerManagement = 0 (default=1)
nice one on the sms wake. We should expand the list! THanks!
Update:
Thanks for updating the list!
Since I don't see a tweak for Disabling SMS Conversation (The costly SMS Chat) I will post it here!
Disable SMS Conversation in WM 6.X
In Registry Editor: Create a folder named "OEM" in "HKEY_CURRENT_USER\Software\Microsoft\Inbox\Settings"
In the new "OEM" folder, make a new DWORD key called "SMSInboxThreadingDisabled" and give it a value of "1"
That will disable the SMS conversation. When you click on the messages on the SMS tab on TF3D, it will take you to the normal SMS inbox instead.
Hope it helps
thanks a lot, keep going please
Great!
This is very useful and it helps solve a lot of problem. Will the cache size change make the D unstable?
For some they say it has...but for me, my device is running great!
mkhattab said:
This is a summary of the proven tweaks taken from the Diamond Tweaks thread. Let's keep the comments in the Diamond Tweaks thread and keep this one as a list of the actual tweaks only to be an easily accessible summary. Thanks to all who discovered the Tweaks
1. Boost TFL3D Performance --> Using Advanced Config, change File system cache to 8mb and file system filter cache to 131072
2. Boost TFL3D Performance --> HKLM\System\Storagemanager\Fatfs and change key Cachesize from 16384 to 32768
3. Wake Up on New SMS --> HKLM\Drivers\BuiltIn\RIL : DisableSMSWakeUpEvent <-- set to "1" by default. Change value to "0"
4. Switch Mute Call on phone flipped face down: HKLM\Software\HTC\PHONE : FaceDownMuteRing: change value to "0"
5. Change CallWaiting Tone --> HKLM\Software\HTC\PHONE : by default set to \windows\waitingtone.wav by default. change to anything else
Click to expand...
Click to collapse
I have had a real issue with number 2, I had to do a hard reset after changing the Cachesize to 32768. During startup the device hanged and wouldn't load up the touch flow, nothing worked.
saveferris said:
I have had a real issue with number 2, I had to do a hard reset after changing the Cachesize to 32768. During startup the device hanged and wouldn't load up the touch flow, nothing worked.
Click to expand...
Click to collapse
I had the exact same problem, wouldn't recommend this one.
saveferris said:
I have had a real issue with number 2, I had to do a hard reset after changing the Cachesize to 32768. During startup the device hanged and wouldn't load up the touch flow, nothing worked.
Click to expand...
Click to collapse
Yes, I had same problem.
Hmm afaik 'File system cache' in 1) is the same as the key HKLM\System\Storagemanager\Fatfs\cachsize in 2).
So tip 1 sets it to 8mb, and tip 2 changes it from 16mb to 32mb. So that suggests its 16m to start with?
Sounds like the file system filter cache is whats making the main difference. Thats this key:
HKLM\System\StorageManager\Filters\fsreplxfilt\Rep lStoreCacheSize
Can someone maybe post the original values of these two keys?
someone1234 said:
Hmm afaik 'File system cache' in 1) is the same as the key HKLM\System\Storagemanager\Fatfs\cachsize in 2).
So tip 1 sets it to 8mb, and tip 2 changes it from 16mb to 32mb. So that suggests its 16m to start with?
Sounds like the file system filter cache is whats making the main difference. Thats this key:
HKLM\System\StorageManager\Filters\fsreplxfilt\Rep lStoreCacheSize
Can someone maybe post the original values of these two keys?
Click to expand...
Click to collapse
There are 3 values to be changed.
1. The Icon Cache which is suggested to be changed to 131072. The registry setting is:
[HKEY_LOCAL_MACHINE\System\GDI\GLYPHCACHE]
"limit"=dword:00020000
The value is shown as hexadecimal, which is equivalent to 131072 in decimal.
2. The second value is to be changed in FAT File System cache.
3. The third value is to be changed is Filters File System cache.
The cache sizes in #2 and #3 are usually kept same, for example 32768 decimal (32MB). Though, this eats up a lot of memory, but makes the system very fast. Lately, I have seen in KaiSer and Universal that these values are set as dynamic values.
Hope this is helpful.
KOR!
anyone know which registry key can make the phone not blank the screen when answering call?
lwclam said:
anyone know which registry key can make the phone not blank the screen when answering call?
Click to expand...
Click to collapse
Yeah, people do know. Search for it.
Just read about a 'tweak' in another thread. It seems disabling "GPRS auto attach" in Advanced Configuration Tool helps in preserving battery live.
Read about it here: http://forum.xda-developers.com/showthread.php?t=395301
For me turning that option to off would be best solution as well. Even more so if it really helps save the battery.
Since I don't have a Diamond yet I havent gotten a chance to actually test this tweak.
Another thing I've found eats up a lot of battery life is the schedule to check email. I have my Direct Push set to an Exchange account and a second Internet Email account. Changing the frequency of checking the second account really makes a difference.
mkhattab said:
Another thing I've found eats up a lot of battery life is the schedule to check email. I have my Direct Push set to an Exchange account and a second Internet Email account. Changing the frequency of checking the second account really makes a difference.
Click to expand...
Click to collapse
agree. my setup is similar to you. i was using 10 mins to check my second IMAP account, i have only around 9-10 hrs standby time. Now, i changed that IMAP account to check in every 60 mins, now, standby time is extended to more than 12 hrs.
what was the previous default File system cache and file system filter cache setting, cause my phone has slowed down since i have changed it. please reply back to me as soon as possible. thank you
http://forum.xda-developers.com/showthread.php?t=397935&page=8
posts 75 and 76
Thanks alot for the fast reply, and just one other question did any one arabize the diamond cause i have tried but it says installation not done. Thanks again man
sorry guys...noob question
to get the SMS to wake up the phone,
where is the HKLM folder in registry?
wishmaker738 said:
sorry guys...noob question
to get the SMS to wake up the phone,
where is the HKLM folder in registry?
Click to expand...
Click to collapse
Read the first post in this thread!

Atrix 4g Screen Shot With Adjustable Self-Timer! [11 May 2013]

JB/ICS ROMs allow you to take a screenshot by long-pressing the Power and Volume Down simultaneously. But you may get unwanted screen artifacts or other strange behavior if you don’t press them exactly at the same time.
But my new Atrix4g Screen Shot (A4G SS) tool overcomes by invoking virtual key presses for Power and Volume Down using the “sendevent” command. Basically it’s remote control.
And it has a self-timer with adjustable delay. So among other things, you can run it with your built-in camera to take family/group portraits --- though the camera buttons will show .
Flashable zip (0.2 MB): http://www.mediafire.com/?18h1bzqcca3g15u
A4GG SS is tested working on CM10 SuperLite. I was going to try it on other JB/ICS ROMs but I ran out of time.
There are many ways to launch A4G SS. Examples:
Root Explorer (very simple once you set home directory to /system/bin)
Script Manager (not as simple at first, but easily configurable and settings are retained)
Terminal Emulator (not as simple but geeky)
ADB (remote operation)
Instructions on how to configure A4GG with Script Manager are given further below.
Key legends reside in the /system/usr/keylayout directory. Those of interest here are documented in my A4GG SS launch code:
Code:
#!/system/bin/sh
echo
echo "Atrix4g Screen Shot With Self-Timer!"
echo "Usage: sh a4g-screencap.sh [timer delay (sec)]"
echo "Default delay: 10 sec"
echo
echo "Initial Release: 11 May 2013"
echo "sendust7 @ xda developers"
#Atrix4g key map legends (decimal):
#/dev/input/event0
#key 107 POWER WAKE
#key 26 POWER WAKE
#key 226 HEADSETHOOK WAKE
#/dev/input/event1
#key 102 HOME WAKE
#key 139 MENU WAKE_DROPPED
#key 158 BACK WAKE_DROPPED
#key 211 FOCUS
#key 212 CAMERA
#key 115 VOLUME_UP WAKE
#key 114 VOLUME_DOWN WAKE
#key 217 SEARCH WAKE_DROPPED
echo
if grep -qs $EXTERNAL_STORAGE /proc/mounts; then
echo "$EXTERNAL_STORAGE mounted"
elif grep -qs $SECONDARY_STORAGE /proc/mounts; then
echo "$SECONDARY_STORAGE mounted"
else
echo "Phone storage not mounted. Exiting..."
exit 1
fi
echo
if [ $# -eq 0 ]; then
echo "Taking screen shot in 10 seconds..."
sleep 10
else
echo "Taking screen shot in $1 seconds..."
sleep $1
fi
#Long press POWER and VOL Down simultaneously
/system/bin/sendevent /dev/input/event0 1 107 1
/system/bin/sendevent /dev/input/event1 1 114 1
sleep 2
#Release POWER and VOL Down simultaneously
/system/bin/sendevent /dev/input/event0 1 107 0
/system/bin/sendevent /dev/input/event1 1 114 0
echo
echo "Done! Can exit now..."
exit 0
Instructions
Simply flash zip, reboot and optionally install/configure Script Manager (SManager): Go to Settings > Advanced > Configuration > Home directory. Navigate to /system/bin and “Select this directory” at bottom.
SManager: https://play.google.com/store/apps/details?id=os.tools.scriptmanager&hl=en
Make sure USB storage is turned off to save your screenshot. A4G SS includes logic to exit unless internal storage, external storage or both are mounted.
Then re-launch SManager, navigate to “/system/bin/atrix4g-ss-v1.0.sh” and tap:
Code:
“Su” (run as root --- setting is retained for later)
“Run”
“Home” (navigate to screen of interest)
Wait for the timeout. A message: “Saving screenshot” will appear at top. To view your screenshot, simply drag the pull down menu, tap the “Screenshot captured” bar and complete the action.
After screenshot, A4G SS exits gracefully. To re-launch from SManager, tap HOME > “Run Again”. To exit, tap the Back button on your Atrix.
If you want to change the default 10-second timeout, simply enter a different (positive) number in SManager’s argument box and re-launch. This setting is also retained.
Things go pretty fast after initial setup.
I understand many screenshot apps are available, and Screenshot UX is my favorite. But the trial version expires after 14 rounds  --- not because I don’t like to pay for a good app. I just don’t like Google having my credit card number.
My A4G SS tool is free, and the maximum allowable number of screenshots is limited only by available storage
You can also run A4G SS from ADB-enabled remote device:
adb shell /system/bin/atrix4g-ss-v1.0.sh [N]
where N = delay time (sec).
This is how I took demo shots of A4G SS in action I just set N=0 for an instant shot.
And you can spin your Atrix beauty into an efficient "still-moving" security cam using a delayed while loop and camera ON/shoot/OFF commands at fixed intervals. Something like this…
Code:
#Wait two hours
sleep 7200
#Start monitoring
while :
do
/system/bin/sendevent /dev/input/event1 1 212 1
sleep 2
#Long press POWER and VOL Down simultaneously
/system/bin/sendevent /dev/input/event0 1 107 1
/system/bin/sendevent /dev/input/event1 1 114 1
sleep 2
#Release POWER and VOL Down simultaneously
/system/bin/sendevent /dev/input/event0 1 107 0
/system/bin/sendevent /dev/input/event1 1 114 0
sleep 2
/system/bin/sendevent /dev/input/event1 1 158 0
#Wait 5 minutes until next picture
sleep 300
done
The companion “getevent” command is also very useful. For example it helps you learn the various key legends or to capture a time stamped history of sendevent commands.
Code:
Usage: getevent [-t] [-n] [-s switchmask] [-S] [-v [mask]] [-d] [-p] [-i] [-l] [-q] [-c count] [-r] [device]
-t: show time stamps
-n: don't print newlines
-s: print switch states for given bits
-S: print all switch states
-v: verbosity mask (errs=1, dev=2, name=4, info=8, vers=16, pos. events=32, props=64)
-d: show HID descriptor, if available
-p: show possible events (errs, dev, name, pos. events)
-i: show all device info and possible events
-l: label event types and names in plain text
-q: quiet (clear verbosity mask)
-c: print given number of events then exit
-r: print rate events are received
1|[email protected]:/ #
Screenshots
Blessings... Enjoy!
Disclaimer: Standard disclaimers apply.
References:
http://android.stackexchange.com/questions/26261/documentation-for-adb-shell-getevent-sendevent
http://source.android.com/tech/input/getevent.html
http://fangmobile.com/2012/11/06/an...lick-on-screen-for-ics-and-may-be-jelly-bean/
https://groups.google.com/forum/?fromgroups=#!topic/android-beginners/il2PqSKRFNI
1st
Thanks for this useful app
I will try it soon

[tasker] clear recent apps command

Hi all,
I would like to add a button on my home screen in order to clear all recent apps without having to long press on the home button and so on.
Is there any command or variable on tasker to make this possible?
Thx for helping
Envoyé avec ma brique Galaxy Note.
Advanced Task Killer (in playstore).
And then place the widget on home screen.
One-click-kill.
I just want to clear recent apps not kill all tasks! I already have greenify.
Envoyé avec ma brique Galaxy Note.
bump. i need that too...
A little help from someone?
Envoyé avec ma brique Galaxy Note.
pakman023 said:
I would like to add a button on my home screen in order to clear all recent apps without having to long press on the home button and so on.
Is there any command or variable on tasker to make this possible?
Click to expand...
Click to collapse
I would like to have something like that as well to call it from Llama, so it should be either a simple application that clears all recent apps on start without asking or an intent that can be called by LLama.
Thx!
Envoyé avec ma brique Galaxy Note.
newest lbe ha a toggle for that, 360 launcher as well. when using both ram is quickly cleared.
Given androids ram optimalization its also quickly filled again lol.
Sent from my GT-N7000 using Tapatalk 2
Looking for a similar solution I ended up just using sendevent commands to simulate long pressing the home button & input tap
sendevent /dev/input/event16 1 172 1
sendevent /dev/input/event16 0 0 0
sleep 1
sendevent /dev/input/event16 1 172 0
sendevent /dev/input/event16 0 0 0
input tap 900 1850
Works great on my S4 but you may need to enable pointer in developer options & modify the tap x y. Similarly I also wanted to clear my ram & app cache & ended up putting it all together in 2 tasks that perform either with shake events(etcha sketch?)
okninja said:
(etcha sketch?)
Click to expand...
Click to collapse
oooh yeah!!!! nice touch
Install xposed framework and then Gravity Box will give you the option on a nexus 5. Couldn't find the option on Tasker either.
Is this configured under "Shell Script"?
okninja said:
Looking for a similar solution I ended up just using sendevent commands to simulate long pressing the home button & input tap
sendevent /dev/input/event16 1 172 1
sendevent /dev/input/event16 0 0 0
sleep 1
sendevent /dev/input/event16 1 172 0
sendevent /dev/input/event16 0 0 0
input tap 900 1850
Works great on my S4 but you may need to enable pointer in developer options & modify the tap x y. Similarly I also wanted to clear my ram & app cache & ended up putting it all together in 2 tasks that perform either with shake events(etcha sketch?)
Click to expand...
Click to collapse
okninja said:
Looking for a similar solution I ended up just using sendevent commands to simulate long pressing the home button & input tap
sendevent /dev/input/event16 1 172 1
sendevent /dev/input/event16 0 0 0
sleep 1
sendevent /dev/input/event16 1 172 0
sendevent /dev/input/event16 0 0 0
input tap 900 1850
Works great on my S4 but you may need to enable pointer in developer options & modify the tap x y. Similarly I also wanted to clear my ram & app cache & ended up putting it all together in 2 tasks that perform either with shake events(etcha sketch?)
Click to expand...
Click to collapse
Could you explain how you did this?
I've spent the last hour trying to get it done on my AT&T Galaxy S4 running GPE 4.4 ROM and can't get it to work.
Thanks!
Extra help
Hi, I'm new to forums and Tasker. Could you please explain step-by-step how you created this please? Your method seems to be the only one on the internet.... and its beyond my knowledge of Tasker.
Thanks
okninja said:
Looking for a similar solution I ended up just using sendevent commands to simulate long pressing the home button & input tap
sendevent /dev/input/event16 1 172 1
sendevent /dev/input/event16 0 0 0
sleep 1
sendevent /dev/input/event16 1 172 0
sendevent /dev/input/event16 0 0 0
input tap 900 1850
Works great on my S4 but you may need to enable pointer in developer options & modify the tap x y. Similarly I also wanted to clear my ram & app cache & ended up putting it all together in 2 tasks that perform either with shake events(etcha sketch?)
Click to expand...
Click to collapse
Storm85 said:
Hi, I'm new to forums and Tasker. Could you please explain step-by-step how you created this please? Your method seems to be the only one on the internet.... and its beyond my knowledge of Tasker.
Thanks
Click to expand...
Click to collapse
Hi guys landed here because I searched for this problem ....
I came up with a solution myself since the method described here is different for every device I think this should work for most
Open tasker -->new task--> script ---> run shell --> and paste this in the command line :
input keyevent APP_SWITCH
input tap 2150 1540
these numbers "2150 1540 " are for my note 10.1 2014 edition ... these are coordinates which set the location for the simulated touch tap ...
you can get your x y coordinates by enabling show cursor position in develepor options
this command does open the recent apps menu
and presses the close all all apps button
greetings
Medy89
Medy89 said:
Hi guys landed here because I searched for this problem ....
I came up with a solution myself since the method described here is different for every device I think this should work for most
Open tasker -->new task--> script ---> run shell --> and paste this in the command line :
input keyevent APP_SWITCH
input tap 2150 1540
these numbers "2150 1540 " are for my note 10.1 2014 edition ... these are coordinates which set the location for the simulated touch tap ...
you can get your x y coordinates by enabling show cursor position in develepor options
this command does open the recent apps menu
and presses the close all all apps button
greetings
Medy89
Click to expand...
Click to collapse
Thanks for this. However it isn’t working. I have a Galaxy Note 3 and assuming it’s the Xv: and Yv co ordinates I have 0.073 and 0.263.
But when I enter
input keyevent APP_SWITCH
input tap 0.073 0.263
It doesn’t work and the task seems to take a while to stop running.
What am I doing wrong?
If I do
new task--> script ---> run shell --> input keyevent APP_SWITCH
and click run should it open up the recent apps list? Because it doesn’t.
Thanks,
Storm85 said:
Thanks for this. However it isn’t working. I have a Galaxy Note 3 and assuming it’s the Xv: and Yv co ordinates I have 0.073 and 0.263.
But when I enter
input keyevent APP_SWITCH
input tap 0.073 0.263
It doesn’t work and the task seems to take a while to stop running.
What am I doing wrong?
If I do
new task--> script ---> run shell --> input keyevent APP_SWITCH
and click run should it open up the recent apps list? Because it doesn’t.
Thanks,
Click to expand...
Click to collapse
From what I understand, note 10.1 2014 still running on Android 4.3 but Note 3 already in 4.4.2, I guess Kitkat might have change this.
Storm85 said:
Thanks for this. However it isn’t working. I have a Galaxy Note 3 and assuming it’s the Xv: and Yv co ordinates I have 0.073 and 0.263.
But when I enter
input keyevent APP_SWITCH
input tap 0.073 0.263
It doesn’t work and the task seems to take a while to stop running.
What am I doing wrong?
If I do
new task--> script ---> run shell --> input keyevent APP_SWITCH
and click run should it open up the recent apps list? Because it doesn’t.
Thanks,
Click to expand...
Click to collapse
just take the X and Y not Xv Yv
there schouldnt be points and commas
ill check if input keyevent APP_SWITCH works on kitkat
meanwhile try
input keyevent KEYCODE_APP_SWITCH
look again
btw im doing a tasker series on youtube ill probably do a vid about this some time
check out my channel^^
First vid :
https://www.youtube.com/watch?v=KYADIOL_LPE&feature=youtu.be
Medy89 said:
just take the X and Y not Xv Yv
there schouldnt be points and commas
ill check if input keyevent APP_SWITCH works on kitkat
meanwhile try
input keyevent KEYCODE_APP_SWITCH
look again
btw im doing a tasker series on youtube ill probably do a vid about this some time
check out my channel^^
First vid :
https://www.youtube.com/watch?v=KYADIOL_LPE&feature=youtu.be
Click to expand...
Click to collapse
i have android kitkat..
i couldnt call input keyevent KEYCODE_APP_SWITCH
nothing happen..somebody help
bdkbaik said:
i have android kitkat..
i couldnt call input keyevent KEYCODE_APP_SWITCH
nothing happen..somebody help
Click to expand...
Click to collapse
it works on kitkat ... just tried it ... u need ROOT

Can I make tasker tap rapidly?

OK so this is set up very simple
And it works
1. Wait
6 seconds
2. Run Shell
COMMAND input tap 356 590
(no time out and use root is checked)
3. Goto
TYPE Action Number NUMBER 2
That's it I just push play and open an app and it taps continuously and that's what I want
The problem is there is an approx. 5 second pause between each tap
Can I make it tap nonstop? Or as close to nonstop as possible?
Decrease the wait action from 6 seconds to 100ms.
The wait action tells is how long it takes between two taps.
Why did you put the wait action there if you don't want it?
I believe the wait is for switching to the needed app, he used goto action 2 only, skipping the wait.
Have you check in the log how Tasker proceed the task, why it still includes the wait....
I would suggest using for loop
something like:
for how many times
count that time
tap
wait 100ms
end for
dogma421 said:
OK so this is set up very simple
And it works
1. Wait
6 seconds
2. Run Shell
COMMAND input tap 356 590
(no time out and use root is checked)
3. Goto
TYPE Action Number NUMBER 2
That's it I just push play and open an app and it taps continuously and that's what I want
The problem is there is an approx. 5 second pause between each tap
Can I make it tap nonstop? Or as close to nonstop as possible?
Click to expand...
Click to collapse
Have You played with 'Gesture initial samplerate' under Tasker settings? By default those mentioned 5 seconds between taps.
I believe that is for checking gesture, not producing tap

How to force input taps faster than once per second?

I've recently figured out how to use the run shell in Tasker, as well as the input tap command, add variable, and goto a specific line if variable condition is met. I've noticed that doing this simple script results in a once-per-second "tap" input that I'm looking to repeat. I was wondering if there was a way to speed up the inputs (5-10 times per second or something like that).
Thanks!
LifeAsADroid said:
I've recently figured out how to use the run shell in Tasker, as well as the input tap command, add variable, and goto a specific line if variable condition is met. I've noticed that doing this simple script results in a once-per-second "tap" input that I'm looking to repeat. I was wondering if there was a way to speed up the inputs (5-10 times per second or something like that).
Thanks!
Click to expand...
Click to collapse
If the taps fully occur before or after the script, you can just use wait 1000/5 or 1000/6 and then input the tap
If they as during the script, I'm not sure how to achieve it.
alienyd said:
If the taps fully occur before or after the script, you can just use wait 1000/5 or 1000/6 and then input the tap
If they as during the script, I'm not sure how to achieve it.
Click to expand...
Click to collapse
The taps are during the script. A general idea of the script:
- open app
- wait
- tap
- add to variable counter
- go to step 3 if counter below a certain value
Running this generates one tap per second. I'd like to speed it up if possible.

Categories

Resources