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.
Related
I dunno if I'm only one who has this problem but when I'm occasionally on sun I can't see nothing on my Kaiser and it's really difficult to setup backlight brightness on touchscreen which u can't see.... So I've been looking alot if there is some utility which I can link with button or gesture and I haven't found anything... So I've wrote my own utility. Feel free to use it as well if u find it useful -> http://lobster.ic.cz/?page=bl
is this useful or is there easier way to do that??
Been searching for an app like this for a week.
Works great!
Thanks.
Here's another program that gives you a today plug in for it:
http://forum.xda-developers.com/showthread.php?t=412896
I'll b trying yours tho as I like the idea of UL with icons for up and down
Cheers,
Matthew
I made a cab with this program mapped to the PTT button. I have a AT&T Tilt, Im not sure if your phone has a PTT button or if its called something else or whatever.
With this, just run the cab then I tap the button and it changed the brightness really quickly, no menu or anything, I love it! If I walk out into the sun I just tap the button 3 times and my screen is bright.
Lobsterii, I love this program thanks a ton!
I'm glad that I could helped u out guys... actually there might be more funny stuff possible only if HTC release some documentation on theirs DLL files cos it's pain to guess arguments...
you did it all by guessing? I figured you would have decompiled the dll.
Truly excellent! I have also been looking for something like this for a long time.
I figured I might as well kick off the feature requests that always follow a new release: How about the option set both battery and power brightness with one command? Perhaps by a special switch, or by only specifying the brightness level (i.e. no 'b' or 'p' switch)? Or is there a way to do it already?
Thanks again for a useful app!
you did it all by guessing? I figured you would have decompiled the dll.
Click to expand...
Click to collapse
I've read some forum where someone pointed out that backlight function should be in some dll by HTC dunno where it was... Then I was googling "dll find export function" and I've found prog "DLL Export Viewer" which can show function names in dll. Unfortunatelly there is generally impossible to find out how many/what arguments the function has. So I've found function name like HTCUtilSetOnBatteryBrightnessLevel and I've simply try prototype int HTCUtilSetOnBatteryBrightnessLevel(int); but it crashed... so I keep going like int HTCUtilSetOnBatteryBrightnessLevel(int*); and it worked... voila...
pudifoot said:
Truly excellent! I have also been looking for something like this for a long time.
Click to expand...
Click to collapse
thx alot...
I figured I might as well kick off the feature requests that always follow a new release: How about the option set both battery and power brightness with one command? Perhaps by a special switch, or by only specifying the brightness level (i.e. no 'b' or 'p' switch)? Or is there a way to do it already?
Click to expand...
Click to collapse
done. + it's now compiled as an release version so it actually has 50KB less than old version... enjoy it's at the same place instead original files http://www.lobster.3web.cz/bordel/bl/index.htm...
Nice improvements! how about another a switch so that it will toggle between brightest to dimmest? So if this was used it would just go between 1 or 10 and none in between.
Thanks for implementing the feature I was looking for. A perfect application - it's small and fast, and it gets the job done with excellence.
Thank you. Works perfectly.
silentanvil said:
Nice improvements! how about another a switch so that it will toggle between brightest to dimmest? So if this was used it would just go between 1 or 10 and none in between.
Click to expand...
Click to collapse
hmhm... what I wouldn't do for y... There is new version 02 (on my web at the same place) where u can setup your own sequence. Length of sequence might be from 1 to 10... values are as usual from 0 to 9... But numbers must not repeat (known feature I don't see point to solve it) so u can set something like "bl02.exe 0 5 1 9 3" or whatever else... enjoy
Report any found bugs... I mean it's super simple but it's 4 am so I'm half sleeping...
lobsterii said:
hmhm... what I wouldn't do for y... There is new version 02 (on my web at the same place) where u can setup your own sequence. Length of sequence might be from 1 to 10... values are as usual from 0 to 9... But numbers must not repeat (known feature I don't see point to solve it) so u can set something like "bl02.exe 0 5 1 9 3" or whatever else... enjoy
Report any found bugs... I mean it's super simple but it's 4 am so I'm half sleeping...
Click to expand...
Click to collapse
Awesome! Thanks so much! I've also been looking everywhere for something like this!
Awesome!
Well done! I've been looking for ages for something to do this.
How to use bl02...
Something from lobsterii that helped me:
create link in Total commander (file manager) I think its in options "File -> >>>>> -> Create shortcut" then I have another file bl02.lnk then I open properties of the lnk file, I click tab shortcut and put the text of path into "" and after it I wrote parameters so it looks like
"\Program files\bl\bl02.exe" 1 3 9
OK dumb question and first time posting so don't slaughter me. If I understand the thread correctly this will put large buttons to adjust from the Backlight screen....correct? Is there a program (other than the PTT button which I'm using) that will allow a button or swipe to adjust the brightness without having to open the brightness display? If you get far enough to open the utility then its not that hard to move the brightness up. Sorry for the dumbness of the question.
volleykinginnc said:
If I understand the thread correctly this will put large buttons to adjust from the Backlight screen....correct?
Click to expand...
Click to collapse
my bl02.exe doesn't put any button anywhere... it's just app which actually toggle brightness. U can try to run it via file explorer it should change brightness...
volleykinginnc said:
Is there a program (other than the PTT button which I'm using) that will allow a button or swipe to adjust the brightness without having to open the brightness display?
Click to expand...
Click to collapse
There is plenty of programs to map this app to buttons, finger swipes and some other crazy stuff like voice commands etc.. For example I'm using FTouchFlo (u can use FTouchSl which is easier to configure) and map backlight change for finger swipes... Most easy way is just copy blXX.exe to /Windows/Start Menu/Programs/blxx.exe and then go to Start->Settings->(tab)Personal->Buttons and link it with some buton...
I'm just now at work so have no time for more explanation... but Once I get home I'll create some FAQ at download page cos... cos it'll be easier for all of us
dont sweat it that was a perfect explanation and I now have it helped me to get it running to a button.
One other quick question though....I have S2U2. So the button doesn't work until I have unlocked it (which sometimes is hard to see going out to daylight) is there any way (easy way, Im no programmer)to allow the button to work (that is brighten the display via the button I have it mapped to) while it is still locked?
volleykinginnc said:
dont sweat it that was a perfect explanation and I now have it helped me to get it running to a button.
One other quick question though....I have S2U2. So the button doesn't work until I have unlocked it (which sometimes is hard to see going out to daylight) is there any way (easy way, Im no programmer)to allow the button to work (that is brighten the display via the button I have it mapped to) while it is still locked?
Click to expand...
Click to collapse
I'm sure he won't be able to bypass A_C's S2U2, but (assuming you have a Kaiser, you didn't say) if you enable dpad in S2U2 you can always hold your right dpad button to make sure S2U2 is unlocked, even if you can't see the screen, and then hit the button for the "bl02.exe 9" link.
Ha ha...you guys are awesome! Right Dpad enabled and now it works like a charm even in the brightest sun!! Thanks for the great application...makes a big difference in usability.
Some of you experts ought to make a list of these application gems (this program/kaeser tweaks etc) to make it easy for the noobs like me. This is good stuff!!
To disable the capacitive button lights on the Bionic, edit this file to be 0. It's originally at 255.
/sys/devices/platform/leds-cpcap-kpb/leds/button-backlight/brightness
Keep in mind if you use ES Text Editor it messes up the permissions. You'll have to set it back to rw-r--r--. (Evidently this is optional. It works fine without resetting the permissions)
Can anyone make a script that enables and disables this? Or a widget? I'm not a programmer, just an enthusiast. Also, there is a "maxbrightness" file in there that is r--r--r-- so I'd rather be modifying that one, but I am just happy this brightness file works for now, so I'm not going to mess with it.
Looks like it resets to 255 on boot. I guess I will figure out how to make scripts if nobody responds. It's way past my bed time now that I stumbled onto this.
Edit: To get it to stick (except for boot), after changing brightness to 0, I just changed the permissions on the brightness file to r--r--r-- so nothing can write to it. I wonder if I can get used to never having any backlights. It's not like the buttons move around. They're in the same position they've been in the last 3 months.
Edit: Tasker can run Terminal command lines, so I have made some homescreen shortcuts for shutting off and turning on the lights. For terminal commands, you type:
echo "0" > /sys/devices/platform/leds-cpcap-kpb/leds/button-backlight/brightness
and that writes a 0 to the file, shutting off the lights.
I'm finding it gets turned on by more than just rebooting. There are several events that turn the lights back on, so unless you want Tasker to run the script every 30 minutes or something, you can just make a shortcut to the task on your homescreen and just shut them off when they're annoying you.
I have a scene that have the word "activate" that toggle a HA device.
I want to substitute the world "activate" to response to open,close,shut, secure,unlock
so in the "replacement" line I have "activate=open,close,shut,secure,unlock" without the quotation but it doesn't work.
am I missing something here?
also second question is, is it possible to to use replacements for multiple words,
example: I have a command to lock the entry door that reads "Lock Entry Door"
I want to be able to substitute both words LOCK and ENTRY with lock=secure,close and ENTRY=front, main
i
I'm guessing Activate is text/button within the scene.
Create a text file (HAoptionslist) with each option on a new line. Remember where you saved it
In the scene, set the button Label to %Entrybutton
In the Tap tab,
If %Entrybutton ~ front
do what you need it to
End If
If %Entrybutton ~ main
do what you need that to
End If
Set variable %HAoptions to %HAoptions +1
File/Read Line: Filelocation/HAoptionslist), Line: %HAoptions To variable: %Entrybutton
Scene/Show Scene: HAscene
If your HA device resets the functions (for example, if it always starts with secure), when you destroy the scene, set %HAoptions variable to whichever line you need the scene to start with.
I know there are better ways to do this but I think this will be easiest to fix if you want to add or change functions later.
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
I created a task which show the "Popup task buttons", but unfortunately the default window which popups is really too small. I tried to manually resize the layout but the result was a true mess: the buttons size and position behave erratically between the Scene editor and the real window which popup. Any idea?
Hard to tell what is happening without seeing how you are trying to resize. I have attached a modified pop-up task button scene. You could import this into your tasker and see if it is closer to what you want.
To import the modified scene, put it in a scenes subdirectory within the Tasker folder on your device, which is usually:
Code:
/sdcard/tasker/scenes/
The scene name can be changed I've imported. These days, I tend to add my user name to prevent import issues due to name space collisions.
I've made only small a change so I can try to get an idea as to what you want. Showing a picture of what the stock scene is doing that you want to fix might help.
Thanks for your reply. What I'd like to get is something like this:
https://ibb.co/WkSSs3K
but if I create this in Scene Editor, what I get in the real task is this
https://ibb.co/ncgNZbP
Obviously I am missing something here but what?
When you tried to resize the buttons, did you use the resize touch mode (hand icon -> resize) or did you try to drag in either the default normal touch mode (hand icon -> normal) or edit touch mode (hand icon -> edit)? It's easier to control using the resize and move touch modes. But, in order to enter the element editor, it helps to be in normal touch mode.
There is a magnifying glass at the lower right. Tapping that will toggle between the editor (default - magnifying glass will display a minus sign) and display (default - magnifying glass will display a plus sign). When in the editor, the scene is often zoomed in which can change how the scene appears.
If it helps, I've attached a scene modified similar to your first picture.
I really don't know what is going on here, but something odd is happening.
I create a simple task using your layout (which is exactly what I'd like to get), but when I actually run the preview of the task i see this instead.
https://ibb.co/n00VqhH
This behaviour is the same with almost every layout I create: I see an image in the scene editor and a totally different one when I run the task.
Any ideas?
daniele62 said:
I really don't know what is going on here, but something odd is happening.
I create a simple task using your layout (which is exactly what I'd like to get), but when I actually run the preview of the task i see this instead.
https://ibb.co/n00VqhH
This behaviour is the same with almost every layout I create: I see an image in the scene editor and a totally different one when I run the task.
Any ideas?
Click to expand...
Click to collapse
I have no idea. Could you post your task that displays this scene. For help find that, please see this post.
Also, what device and OS is this?
Conferma (25)
A1: Popup Task Buttons [ Text:Sure? Mode:Text Task:Ripristina Task:No Task: Background Image: Layoutopup Task Buttons - Ktmom Larger Timeout (Seconds):10 Show Over Keyguardn ]
Sorry. This is a little different task because I deleted the previous one, but the behavior is exactly the same.
Ahhh, I see. Try using this scene, but use a display scene action. Make sure to have an action in the task or the tasks associated with pop-up buttons, which destroys the scene when you're done.
Thanks. I used "Display scene" instead of "Popup task button" and now it works as expected.
The pop-up button action "should" work. Unfortunately, Tasker's current developer has made it clear he will not support the built in scenes. I'm guessing there will be a day where the scenes become even more problematic and we'll be forced to AutoTools web scenes.
«rant»I have spent days trying to convert one of my many custom scenes to a web scene. You need html, css, and JavaScript plus an understanding of how to set and receive variables back and forth. It's second to impossible to develop on the device. Which at least in my case means I can't tweak when in at the doctors office or hospital with my son. And I rarely have time to sit on the computer at home «/rant»