what is difference of tasker

Post your questions and help other users.

Moderator: Martin

Post Reply
ahmadmll
Posts: 69
Joined: 06 Jul 2013 15:02

what is difference of tasker

Post by ahmadmll » 06 Sep 2013 12:06

Hi Friends
What is difference of tasker software and automagic commands? That i can use it for automatic touch and click,but can't use automagic root command (keyevent) ?
I installed busybox but it doesn't work.
Please help me.
I need aut click by automagic.
Tasker does it but it use from ram about 40meg.
My Android 4.0.4
Sony Xperia P

User avatar
Martin
Posts: 4468
Joined: 09 Nov 2012 14:23

Re: what is difference of tasker

Post by Martin » 06 Sep 2013 13:18

Hi,

Can you describe in more detail what you tried that is not working?
On a rooted device you can usually use action Execute Root Command: input keyevent DPAD_CENTER or the numeric variant on older ROMs Execute Root Command: input keyevent 23 as outlined in this post: DIY-Actions.

Regards,
Martin

ahmadmll
Posts: 69
Joined: 06 Jul 2013 15:02

Re: what is difference of tasker

Post by ahmadmll » 06 Sep 2013 19:08

I use android 4.0.4 and can not use auto gps enable softwares ( I want to turn on GPS remotely).
therefore i should use automatic click like tasker software actions that can come down,up,right,left and press.
I could enable gps by this way (was opened setting > come down [repeat 13 times] > press > right > press ).
but tasker busy ram about 40M and I do not want tasker.
I am willing that enable gps by auto click by automagic
but keyevent codes does not work on my android.
I do not know what to do!!!!!!!
:( :( :( :( :( :( :(

User avatar
MURTUMA
Posts: 697
Joined: 05 Mar 2013 22:43

Re: what is difference of tasker

Post by MURTUMA » 06 Sep 2013 20:11

A quote from the topic martin linked. this might help you further.
pilusona wrote:Hi,
For older versions of Android (I have checked with 2.3.6), keyevent with event name as text is not working, like

input keyevent DPAD_DOWN

instead you should pass numeric values, like

input keyevent 20

You can find the list of numeric values associted with the corresponding texts here:

http://thecodeartist.blogspot.in/2011/0 ... evice.html

ahmadmll
Posts: 69
Joined: 06 Jul 2013 15:02

Re: what is difference of tasker

Post by ahmadmll » 07 Sep 2013 03:17

This text is Contents of qwerty.kl:
# Copyright (C) 2010 The Android Open Source Project
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
t
#
# Emulator keyboard layout #1.
#
# This file is no longer used as the platform's default keyboard layout.
# Refer to Generic.kl instead.
#

key 399 GRAVE
key 2 1
key 3 2
key 4 3
key 5 4
key 6 5
key 7 6
key 8 7
key 9 8
key 10 9
key 11 0
key 158 BACK WAKE_DROPPED
key 230 SOFT_RIGHT WAKE
key 60 SOFT_RIGHT WAKE
key 107 ENDCALL WAKE_DROPPED
key 62 ENDCALL WAKE_DROPPED
key 229 MENU WAKE_DROPPED
key 139 MENU WAKE_DROPPED
key 59 MENU WAKE_DROPPED
key 127 SEARCH WAKE_DROPPED
key 217 SEARCH WAKE_DROPPED
key 228 POUND
key 227 STAR
key 231 CALL WAKE_DROPPED
key 61 CALL WAKE_DROPPED
key 232 DPAD_CENTER WAKE_DROPPED
key 108 DPAD_DOWN WAKE_DROPPED
key 103 DPAD_UP WAKE_DROPPED
key 102 HOME WAKE
key 105 DPAD_LEFT WAKE_DROPPED
key 106 DPAD_RIGHT WAKE_DROPPED
key 115 VOLUME_UP WAKE
key 114 VOLUME_DOWN WAKE
key 116 POWER WAKE
key 212 CAMERA

key 16 Q
key 17 W
key 18 E
key 19 R
key 20 T
key 21 Y
key 22 U
key 23 I
key 24 O
key 25 P
key 26 LEFT_BRACKET
key 27 RIGHT_BRACKET
key 43 BACKSLASH

key 30 A
key 31 S
key 32 D
key 33 F
key 34 G
key 35 H
key 36 J
key 37 K
key 38 L
key 39 SEMICOLON
key 40 APOSTROPHE
key 14 DEL

key 44 Z
key 45 X
key 46 C
key 47 V
key 48 B
key 49 N
key 50 M
key 51 COMMA
key 52 PERIOD
key 53 SLASH
key 28 ENTER

key 56 ALT_LEFT
key 100 ALT_RIGHT
key 42 SHIFT_LEFT
key 54 SHIFT_RIGHT
key 15 TAB
key 57 SPACE
key 150 EXPLORER
key 155 ENVELOPE

key 12 MINUS
key 13 EQUALS
key 215 AT

# On an AT keyboard: ESC, F10
key 1 BACK WAKE_DROPPED
key 68 MENU WAKE_DROPPED

____________________________
But when i yse these keys,give error.
Attachments
Screenshot_2013-09-07-08-03-55.png
Screenshot_2013-09-07-08-03-55.png (98.28 KiB) Viewed 23472 times
IMG_20130907_080323.jpg
IMG_20130907_080323.jpg (30.09 KiB) Viewed 23472 times

User avatar
Martin
Posts: 4468
Joined: 09 Nov 2012 14:23

Re: what is difference of tasker

Post by Martin » 07 Sep 2013 09:00

qwerty.kl is not a directory, please completely remove the text in the field WORKING DIRECTORY and try to execute the action again.

Try following commands on your device:

for DPAD_UP:
input keyevent 19

for DPAD_DOWN:
input keyevent 20

for DPAD_LEFT:
input keyevent 21

for DPAD_RIGHT:
input keyevent 22

for DPAD_CENTER:
input keyevent 23

ahmadmll
Posts: 69
Joined: 06 Jul 2013 15:02

Re: what is difference of tasker

Post by ahmadmll » 07 Sep 2013 11:06

Codes did not work.
Why?why?

I want friends, if you have a flow about automatic move and auto click that you have tested it,please send it me for test.

User avatar
Martin
Posts: 4468
Joined: 09 Nov 2012 14:23

Re: what is difference of tasker

Post by Martin » 07 Sep 2013 12:31

Please import following flow:
Change GPS

The flow should do the following:
  • open the Android location settings
  • wait 2 seconds to ensure that the settings page has enough time to load
  • DPAD_DOWN (moves focus to Google's location service)
  • DPAD_DOWN (moves focus to GPS satellites)
  • DPAD_CENTER (checks or unchecks the GPS checkbox)
This flow works on a rooted Sony Xperia S (Android 4.0.4).

ahmadmll
Posts: 69
Joined: 06 Jul 2013 15:02

Re: what is difference of tasker

Post by ahmadmll » 07 Sep 2013 16:18

Excuse me Martin
Doesn't work
:(

Post Reply