Beta 1.2.2b8+

862 views
Skip to first unread message

Pent

unread,
Jun 22, 2012, 12:44:31 PM6/22/12
to Tasker
http://tasker.dinglisch.net/beta.html

(made a new thread for clarity, feel free to continue discussions from
other thread here)

Pent

<LI>beta: bugfix: create app: added permissions and features for
TeslaLED action
<LI>beta: bugfix: create app: added flash feature for Torch
and Take Photo where relevant
<LI>beta: bugfix: create app: added front camera feature for
Take Photo where relevant
<LI>beta: bugfix: manifest was requiring a barometer be
available :-)
<LI>beta: bugfix: action Write File: in some situations was
continuing after an error
<LI>beta: bugfix: create app: Show Scene: overlay scenes were
crashing in kid (introduced in b6...)
<LI>beta: bugfix: task export options were mixed up
<LI>beta: bugfix: variable selector was showing referenced
builtins and vars from other projects
<LI>beta: bugfix: %LOC.. vars were not getting the associated
permission
<LI>added: action Image / Filter Image
<LI>added: variables Device ID/Manufacturer/Model/Product
(%DEVID, %DEVMAN, %DEVMOD, %DEVPROD)
<LI>added: variable SDK Version (%SDK)
<LI>beta: change: action Test, mode Have Root removed,
replaced by var %ROOT
<LI>beta: change: Javascriptlet: use proxy activity to run
scripts with dialogs (alert etc)
<LI>beta: change: Javascriptlet: must use getGlobal and
setGlobal to access/set all global variables
<LI>beta: added: Javascriptlet: vibrate builtin function
<LI>beta: added: javascript help doc in userguide
<LI>beta: bugfix: Javascriptlet: wasn't picking up new vars in
scriptlet sometimes

Wietse van Buitenen

unread,
Jun 22, 2012, 1:41:14 PM6/22/12
to tas...@googlegroups.com
I didn't get back to you on the Variable Image with the kid app..

you posted:
I changed it to ignore uris with variables. 
Should work as you intend. 
and it indeed works fine as expected now :)

what would be very nice to have is an option to run a seperate Task on first run...
for my Daily Garfield for example it could be used to check if the dir exists or ask the user for a custom dir
the next time it will run, the actual Task to show the comic is run..

for my ICE Project this would be handy to create the initial dummy files with info that the user can adjust..

Pent

unread,
Jun 22, 2012, 2:33:17 PM6/22/12
to Tasker
> what would be very nice to have is an option to run a seperate Task on
> first run...

If %HaveRunBefore Is Set
NORMALSTUFF
Else
DOSETUPSTUFF
Variable Set, %HaveRunBefore, 1

Pent

Cptnodegard

unread,
Jun 22, 2012, 2:41:53 PM6/22/12
to tas...@googlegroups.com
I see a lot I like in that change log, great work!

Heads up though, TeslaLED is still not supported as is, not on my device anyways. I had to add android.permission.CAMERA as a custom field before the LED would activate. It didn't as for camera permission on the install screen until then either
Message has been deleted

Wietse van Buitenen

unread,
Jun 23, 2012, 5:23:44 AM6/23/12
to tas...@googlegroups.com
I figured this would be an option but didn't want to use yet another global var :)
I will set it up like this though :)

I'm really liking this beta series, there's a lot of nice stuff to play with!
Just need to find more time :) 

Pent

unread,
Jun 23, 2012, 5:30:14 AM6/23/12
to Tasker
> Heads up though, TeslaLED is still not supported as is, not on my device
> anyways. I had to add android.permission.CAMERA as a custom field before
> the LED would activate. It didn't as for camera permission on the install
> screen until then either

If I try it here, the app gets the CAMERA permission plus Camera and
Camera flash features. You sure you have b8 ? (check Menu / Info /
About).

Pent

Kevin Taylor

unread,
Jun 23, 2012, 7:10:21 AM6/23/12
to tas...@googlegroups.com
Scriptlet now works from a shortcut, but I'm afraid I'm still getting out of order execution,
symptoms are different depending on whether it is run from the script edit window or the shortcut.

With the following script:

alert('hello');
var resp = confirm('ok?');
if(resp == true) {
  alert('ok pressed');
}else{
  alert('cancel pressed');
}

Run from the script edit window,
it executes the if clause before running the confirm(),
as if the code were:

alert('hello');
var resp = false;
if(resp == true) {
  alert('ok pressed');
}else{
  alert('cancel pressed');
}
resp = confirm('ok?');

Run from the shortcut it does not appear to execute the confirm() at all.

Kevin

Pent

unread,
Jun 23, 2012, 9:28:50 AM6/23/12
to Tasker
I just can't repeat that. Which Android version do you have ? Is it
stock or custom ?

Could you paste here the script lines from the log to check it's not
being mangled somehow ?

Thanks,

Pent

Kevin Taylor

unread,
Jun 23, 2012, 10:29:12 AM6/23/12
to tas...@googlegroups.com
> I just can't repeat that. Which Android version do you have ? Is it
> stock or custom ?

Stock 2.3.5 on an HTC Desire S.

Actually, it's not out of order, it's just that the 'if' doesn't wait for the 'confirm' to exit before popping up the result 'alert' over it.
Then if it's run from a shortcut or the task edit screen the 'confirm' dialog gets cancelled without waiting for input, sometimes so fast I don't see it.
If it's run from the script edit window I get to press buttons on the 'confirm' dialog, but the 'if' has already done its stuff by then.


> Could you paste here the script lines from the log to check it's not
> being mangled somehow ?

I had trouble deciding which lines of the log were relevant, so I've emailed the whole log separately.

Kevin


Pent

unread,
Jun 23, 2012, 12:10:35 PM6/23/12
to Tasker
Thanks for the log. I still can't reproduce it even with exactly the
same script.

However, it's possible that it's due to a bug in the implementation of
javascript alert, confirm and/or prompt on your device.
Coincidentally, I had to introduce custom versions of those to solve
another problem so I'm hoping that that might solve your problem next
update.

Pent

Cptnodegard

unread,
Jun 23, 2012, 12:33:25 PM6/23/12
to tas...@googlegroups.com

Kevin Taylor

unread,
Jun 23, 2012, 12:43:12 PM6/23/12
to tas...@googlegroups.com
> Coincidentally, I had to introduce custom versions of those to solve
> another problem so I'm hoping that that might solve your problem next
> update.
1
Sounds promising. Thanks:-)

Kevin

Pent

unread,
Jun 23, 2012, 1:13:17 PM6/23/12
to Tasker
We're talking about the TeslaLED action in the 3rd Party action
category here, right ?

Pent

Cptnodegard

unread,
Jun 23, 2012, 1:19:20 PM6/23/12
to tas...@googlegroups.com
Aha, this is my mistake. When glimpsing at the help text for the Alert/Torch action, I somehow picked up the "see also: teslaled" bit as "this uses teslaled". 
That explains a lot....ugh...fuck me >.<
*goes off to drown himself for the sake of humanity*

Cptnodegard

unread,
Jun 23, 2012, 1:24:33 PM6/23/12
to tas...@googlegroups.com
Switched to TeslaLED under third party and got a force close on Tasker: 

19.20
Failure delivering result ResultInfo{who=null, request=236975, result=-1, data=Intent { (has extras) }} to activity {net.dinglisch.android.taskerm/net.dinglisch.android.taskerm.MacroEdit}: java.lang.IndexOutOfBoundsException: Invalid index 3, size is 3
android.app.ActivityThread.deliverResults(ActivityThread.java:2536)
android.app.ActivityThread.handleSendResult(ActivityThread.java:2578)
android.app.ActivityThread.access$2000(ActivityThread.java:117)
android.app.ActivityThread$H.handleMessage(ActivityThread.java:965)
android.os.Handler.dispatchMessage(Handler.java:99)
android.os.Looper.loop(Looper.java:130)
Caused by:
java.util.ArrayList.throwIndexOutOfBoundsException(ArrayList.java:257)
java.util.ArrayList.get(ArrayList.java:311)
net.dinglisch.android.taskerm.sm.a(Unknown Source)
net.dinglisch.android.taskerm.MacroEditView.a(Unknown Source)
net.dinglisch.android.taskerm.MacroEdit.onActivityResult(Unknown Source)
android.app.Activity.dispatchActivityResult(Activity.java:3934)


Tried again and then it worked. Might have been the 500ms delay between on/off LED actions that was too short or something. 

Sorry for wasting your time with this Torch shit btw, I honestly thought it was using TesleLED from the start

Pent

unread,
Jun 23, 2012, 2:53:20 PM6/23/12
to Tasker
<grin>

Well, it has a good side, I now notice that Torch wasn't setup
properly either :-)

So actually TeslaLED doesn't need any permissions or features I guess,
since it's a separate app.

Pent

Unicyclist

unread,
Jun 24, 2012, 2:20:43 AM6/24/12
to tas...@googlegroups.com
When setting a Variable Set profile context, I noticed Text Body listed twice in the list of variables. They are both linked to %SMSRB. I uninstalled & reinstalled, still there. Not a problem per se, just don't want new people getting confused.

Daniel Stříbrný

unread,
Jun 24, 2012, 3:32:35 AM6/24/12
to tas...@googlegroups.com
Good job Pent, Get Location action now works perfectly...

Pent

unread,
Jun 24, 2012, 3:48:35 AM6/24/12
to Tasker
Not sure why but pleased :-)

Pent

Matt

unread,
Jun 24, 2012, 2:45:36 PM6/24/12
to tas...@googlegroups.com
Hi Pent, just tried the beta and the app creation works great. Got a wierd problem with my SMS popup though (the one shown here: https://groups.google.com/d/msg/tasker/39V1e6NePKU/vlcWsdWlV5wJ)

Basically when a text comes in the recipient is picked up as the last person that sent me an SMS before I installed the beta, and the message body is showing the number that the last message came from.. -I've noticed that there is only 1 Text From variable so that probably explains the first one (re-entering that variable sorts the problem, but neither of the Text Body Variables displays the SMS body, they display the number....

Right off to watch the match!

Matt

Wietse van Buitenen

unread,
Jun 24, 2012, 3:03:31 PM6/24/12
to tas...@googlegroups.com
I also noticed weird stuff with the SMS variables.. didn't get a chance to properly test and document it though..

Daniel Stříbrný

unread,
Jun 24, 2012, 3:57:45 PM6/24/12
to tas...@googlegroups.com
Pent, would be possible to set Task launched by pressing MENU button in created App? For example during setting up in App Factory,same way like choosing Task launched when App Icon I'd pressed...

Amer

unread,
Jun 24, 2012, 11:26:06 PM6/24/12
to tas...@googlegroups.com
Hi Pent,

continuing from previous:

you've said: "Not what I would describe as normal, but nothing to do with Tasker I think."

it happened in app export in tasker, so i'm a bit confused if it has nothing to do with Tasker :)

Btw, I always choose 'debug version' when exporting, so how can I retrieve the sd log, system log? Can it be retrieve from the app?

thx and sorry for being so noob :(
--
Be first, be better, or cheat.™

UncleMike

unread,
Jun 25, 2012, 1:03:00 AM6/25/12
to tas...@googlegroups.com
This may have been a long standing bug, but renaming a task that is referenced elsewhere in a Perform Task action correctly changes the task reference in the Perform Task action, but attempting to run the task in which the Perform Task action appears by using the test/arrow button without first exiting and restarting the UI results in:

Error: Task Doesn't Exist:...

After exiting and restarting the Tasker UI, the test/arrow button works as expected.

Pent

unread,
Jun 25, 2012, 3:51:08 AM6/25/12
to Tasker
> Hi Pent, just tried the beta and the app creation works great. Got a wierd
> problem with my SMS popup though (the one shown
> here:https://groups.google.com/d/msg/tasker/39V1e6NePKU/vlcWsdWlV5wJ)
>
> Basically when a text comes in the recipient is picked up as the last
> person that sent me an SMS before I installed the beta, and the message
> body is showing the number that the last message came from.. -I've noticed
> that there is only 1 Text From variable so that probably explains the first
> one (re-entering that variable sorts the problem, but neither of the Text
> Body Variables displays the SMS body, they display the number....

This is just in the kid app a problem ? Did you try it with Tasker
disabled ?

Pent

Pent

unread,
Jun 25, 2012, 3:52:08 AM6/25/12
to Tasker
> Pent, would be possible to set Task launched by pressing MENU button in created App?

Your real request is 'please allow scenes to handle key presses as
events', which is already on the todo list.

Pent

Pent

unread,
Jun 25, 2012, 3:53:21 AM6/25/12
to Tasker
> you've said: "Not what I would describe as normal, but nothing to do with
> Tasker I think."
>
> it happened in app export in tasker, so i'm a bit confused if it has
> nothing to do with Tasker :)

When you press the Android button, Tasker asks Android to install the
APK, at that point Android is in control.

> Btw, I always choose 'debug version' when exporting, so how can I retrieve
> the sd log, system log? Can it be retrieve from the app?

System log is the system log, use a log browser app. SD log in in /
sdcard/NAMEOFAPP/ somewhere.

Pent

Pent

unread,
Jun 25, 2012, 3:55:11 AM6/25/12
to Tasker
It's the same for any changes you make. The test button sends the
latest version of the task to the execute service, but it runs against
the current 'live' version of the rest of the data.

The live version is not updated with your current 'edit' version until
you exit Tasker.

Pent

Amer

unread,
Jun 25, 2012, 6:28:38 AM6/25/12
to tas...@googlegroups.com
Hi Pent, just wondering, in the Tasker icons I can see the "+" icon but can't found the "-" icon, is it never there or do I miss anything?
i would be a good icon for the slider up & down just like in tasker :)

Amer

unread,
Jun 25, 2012, 6:55:13 AM6/25/12
to tas...@googlegroups.com
fyi, on action notify-popup when selecting Layout it still show scene that has been deleted.

Pent

unread,
Jun 25, 2012, 7:12:45 AM6/25/12
to Tasker
> Hi Pent, just wondering, in the Tasker icons I can see the "*+*" icon but
> can't found the "*-*" icon, is it never there or do I miss anything?
> i would be a good icon for the slider up & down just like in tasker :)

Must have missed it, thanks.

Pent

Pent

unread,
Jun 25, 2012, 8:46:03 AM6/25/12
to Tasker
> fyi, on action notify-popup when selecting Layout it still show scene that
> has been deleted.

Do you mean the Popup action ? I couldn't reproduce the problem if so.

Pent

Daniel Stříbrný

unread,
Jun 25, 2012, 9:35:42 AM6/25/12
to tas...@googlegroups.com
Pent, I have just noticed that App Factory has problem with Wait action. When I have Wait action in project, App Factory crashes after choosing "Export"..."As App"

Dne pátek, 22. června 2012 18:44:31 UTC+2 Pent napsal(a):

Amer

unread,
Jun 25, 2012, 9:48:55 AM6/25/12
to tas...@googlegroups.com
luckily, I have wait and wait action all together in a project and no crash for me. :)

Daniel Stříbrný

unread,
Jun 25, 2012, 9:52:41 AM6/25/12
to tas...@googlegroups.com
And how long do you have set the "wait action"? I have tried max 1 second...

Dne pondělí, 25. června 2012 15:48:55 UTC+2 Amer napsal(a):

Amer

unread,
Jun 25, 2012, 10:34:44 AM6/25/12
to tas...@googlegroups.com

My wait is base on a Variable.
Its vary from 1 minute up to 10 minutes.
My wait until usually only 1 MS.

Both exporting and run the app itself found no problem so far.

--
[OS] Android Gingerbread 2.3.4
[Phone] HTC Evo 3D
[ROM] Sense 3.0 Stock ROM

Daniel Stříbrný

unread,
Jun 25, 2012, 10:37:50 AM6/25/12
to tas...@googlegroups.com
May be the problem is, that my wait action is based on time value...

Dne pondělí, 25. června 2012 16:34:44 UTC+2 Amer napsal(a):

Amer

unread,
Jun 25, 2012, 10:51:26 AM6/25/12
to tas...@googlegroups.com

I don't think so, I test it just now and nothing happened during the export process. ;)

I use wait 1 second with the context wifi connected, after 1 second it notify the wifi status. Everything ok.

With that being said, actually I have a problem that I think its due to wifi connected context, but strangely it only happened in my project wich have several variables, several task, and several everything else. If I try to test it with a simple project it didn't happened. Just a thought, maybe you should try a simple project and see if its still there.

--
[OS] Android Gingerbread 2.3.4
[Phone] HTC Evo 3D
[ROM] Sense 3.0 Stock ROM

V Oz

unread,
Jun 25, 2012, 3:19:05 PM6/25/12
to tas...@googlegroups.com
It seems that SMS variables are messed up when SMS Received event occurs. 

Pent

unread,
Jun 27, 2012, 5:12:24 AM6/27/12
to Tasker
> May be the problem is, that my wait action is based on time value...

I also have no problem exporting a wait action.

Is it part of your enormous project ?

If so, it's probably the size of the project rather than the Wait
action.

Pent

Pent

unread,
Jun 27, 2012, 5:14:01 AM6/27/12
to Tasker
Could you let me know if this is fixed after the next beta update ?

Thanks,

Pent

Amer

unread,
Jun 27, 2012, 6:23:53 AM6/27/12
to tas...@googlegroups.com
Hi Pent, while you're here, just wanna ask is there any way or tips that prevent the screen rotation to change into landscape?
I would like to keep my app in portrait as the layout didn't look very good on landscape.
i try to set the auto rotation to off when opening the app but that will mess up my auto rotation setting, I would like to keep it in portrait only when my app is visible. if its hidden or destroy i would like to change it to current auto rotation setting.

Wietse van Buitenen

unread,
Jun 27, 2012, 7:24:24 AM6/27/12
to tas...@googlegroups.com
when starting your app you could store the original setting in a variable, set rotate to off and restore the original value when you close your app

Wietse van Buitenen

unread,
Jun 27, 2012, 7:37:30 AM6/27/12
to tas...@googlegroups.com
Hi Pent,

had some time to play with the JavaScriptlet and noticed a few things:
- if you have a comment as last line (line that starts with //) in the JavaScriptlet you get the message "Error: Unexpected end of input."
  in every other place the comment line is no issue
- I can't seem to get getGlobal to work, if I do:
  var value = getGlobal(TIMES);
  flash(value,false);
  it says "OK" from the edit Scriptlet window but doesn't do anything from the Task edit window..
- when using a local var in a JavaScriptlet, the local has to contain a value, it isn't enough if it's referenced, from a Task:

  Alert - Flash - %tempval
  JavaScriptlet:
       var tempvalscript;
       tempvalscript = 'testing'
       tempval=tempvalscript
  Alert - Flash - %tempval
  this flashes an empty value

  if I do
  Variable Set %tempval to "this isn't empty"
  JavaScriptlet:
       var tempvalscript;
       tempvalscript = 'testing'
       tempval=tempvalscript
  Alert - Flash - %tempval
  it results in "testing" being flashed
  don't know if this is a bug or by design though...

Wietse van Buitenen

unread,
Jun 27, 2012, 7:38:43 AM6/27/12
to tas...@googlegroups.com
oh, if you need some sample Tasks just let me know..

Amer

unread,
Jun 27, 2012, 7:59:08 AM6/27/12
to tas...@googlegroups.com
I thought so too but I'm having difficulty to catch the event when the app is hidden because of pressing the back button.
is there any way to get that?  

Amer

unread,
Jun 27, 2012, 8:00:09 AM6/27/12
to tas...@googlegroups.com
or home button for another case :(

Pent

unread,
Jun 27, 2012, 8:05:18 AM6/27/12
to Tasker
Thanks Wietse.

Pent

Pent

unread,
Jun 27, 2012, 8:07:27 AM6/27/12
to Tasker
b9 up:

<LI>beta: bugfix: Javascriptlets with dialogs wouldn't work in
Tasklets
<LI>beta: bugfix: Javascriptlet: implement custom dialog to
prevent window leaks on timeout
<LI>beta: added: Javascriptlet: transparent local array access
<LI>beta: change: Javascriptlet function selector shows arg
details
<LI>beta: change: tasklet: at end of task execution, turn off
monitor if not needed any longer
<LI>beta: change: tasklet: always enable monitor when launched
from homescreen
<LI>beta: change: Javascriptlet: getGlobal->global
<LI>beta: added: many new javascriptlet functions
<LI>beta: bugfix: Text Body was appearing twice in some var
selection lists
<LI>bugfix: Take Photo: save to DCIM, not dcim
<LI>bugfix: Day Context: validation was slightly bugged
<LI>change: action Disable Tasker -> Disable
<LI>added: 3 or 4 icons to builtin selection from Tasker UI

Pent

Pent

unread,
Jun 27, 2012, 8:16:29 AM6/27/12
to Tasker
Javascriptleters, note the changed function name, getGlobal -> global

Pent

Kevin Taylor

unread,
Jun 27, 2012, 8:43:59 AM6/27/12
to tas...@googlegroups.com
b9 does FC on running my favourite script:

alert('hello');
var resp = confirm('ok?');
if(resp == true) {
  alert('ok pressed');
}else{
  alert('cancel pressed');
}

It runs OK from the script edit window, but FC's if run from task edit or a shortcut.
Execution order, however, is now correct! :-)

Kevin

Wietse van Buitenen

unread,
Jun 27, 2012, 8:47:37 AM6/27/12
to tas...@googlegroups.com
I just tried several test Tasks with simple scriptlets in them and they all FC when executing from Task edit window and don't FC when running from scriptlet edit window..

btw. I like the heap of new functions you added in the scriptlets Pent, thanks for that!

Pent

unread,
Jun 27, 2012, 8:53:48 AM6/27/12
to Tasker
> b9 does FC on running my favourite script:

I hate detest your favourite script :-)

> It runs OK from the script edit window, but FC's if run from task edit or a
> shortcut.
> Execution order, however, is now correct! :-)

Small mercies :-)

Any chance of a log ?

I still can't get the thing to FC.

Thanks,

Pent

Pent

unread,
Jun 27, 2012, 8:56:02 AM6/27/12
to Tasker
> I just tried several test Tasks with simple scriptlets in them and they all
> FC when executing from Task edit window and don't FC when running from
> scriptlet edit window..

Any chance of a log for the simplest one (without alert,confirm or
prompt) ?

Thanks,

Pent

Pent

unread,
Jun 27, 2012, 9:22:35 AM6/27/12
to Tasker
> On Jun 27, 2:43 pm, Kevin Taylor <kevinrtay...@gmail.com> wrote:
> b9 does FC on running my favourite script:

Thanks for the log, it was a function call only introduced in
honeycomb. I took it out for next time since I had only put it in
'just in case' :-)

Pent

Kevin Taylor

unread,
Jun 27, 2012, 9:29:46 AM6/27/12
to tas...@googlegroups.com
> I hate detest your favourite script :-)
So does Tasker, it seems. ;-)
However, as Wietse found, it happens with any script.


> Any chance of a log ?
Sent!

By the way,
selecting flash(str msg, str long) from the Function list inserts flash( , , )
selecting global(str name) inserts global( , )
selecting bluetooth(bool on) inserts bluetooth( , )

i.e. one comma to many in each case.
(I didn't try any others yet.)

Kevin

Pent

unread,
Jun 27, 2012, 9:48:35 AM6/27/12
to Tasker
> selecting flash(str msg, str long) from the Function list inserts flash( ,
> , )
> selecting global(str name) inserts global( , )
> selecting bluetooth(bool on) inserts bluetooth( , )

I noticed that as soon as I posted the beta :-)

Pent

Pent

unread,
Jun 27, 2012, 9:52:56 AM6/27/12
to Tasker
> btw. I like the heap of new functions you added in the scriptlets Pent,
> thanks for that!

The majority of actions will be available as functions eventually. It
only takes a few minutes for each but added together it's a whole load
of boring work :-)

Pent

Amer

unread,
Jun 27, 2012, 10:33:01 AM6/27/12
to tas...@googlegroups.com

Is there any user guide about that? ;)

Btw, for scene menu, is it possible to change the item label directly with the tap action?

I try to set the %tap_label but it doesn't work. I try to set a Variable into the label it work at first show but not interactively.

--
[OS] Android Gingerbread 2.3.4
[Phone] HTC Evo 3D
[ROM] Sense 3.0 Stock ROM

Pent

unread,
Jun 27, 2012, 11:00:39 AM6/27/12
to Tasker
> Is there any user guide about that? ;)

In the action help it says 'see the JavaScript section of the
userguide'. You need to download the SD version of the userguide
during the beta however.

> Btw, for scene menu, is it possible to change the item label directly with
> the tap action?

What's the 'tap' action ? You mean a task launched by a tap event ?

Can't remember :-)

Pent

Amer

unread,
Jun 27, 2012, 11:14:17 AM6/27/12
to tas...@googlegroups.com

When editing a menu element, it has "item tap" tab, in it we can add several action as in a task.

Usually I use it to set a Variable from %tap_label as a value choose by tapping the item, but now I try also to change the item label as itbis tapped but never succeed.

It would be a work around since scene canvas is not scrollable and the number of elements is limited.

--
[OS] Android Gingerbread 2.3.4
[Phone] HTC Evo 3D
[ROM] Sense 3.0 Stock ROM

Wietse van Buitenen

unread,
Jun 27, 2012, 11:41:24 AM6/27/12
to tas...@googlegroups.com
hmm.. that's going to be difficult because it seems to be related to the alert..
I had a scriptlet that returns the date in a certain format, if I use alert Tasker FC's and if I replace alert by flash it works fine..
I can't seem to crash Tasker with alert :)
Would you like a log of the one with alert in it or do you know the cause?

Also, the global still doesn't get me the TIMES, I replaced getGlobal by global..

Pent

unread,
Jun 27, 2012, 12:03:06 PM6/27/12
to Tasker
> hmm.. that's going to be difficult because it seems to be related to the
> alert..

Well if it's only those that FC, one of those is good too :-)

> Would you like a log of the one with alert in it or do you know the cause?

Yes please. I think Kevin's problem was different.

> Also, the global still doesn't get me the TIMES, I replaced getGlobal by
> global..

I had already published the new beta when I read your post.

Pent

Wietse van Buitenen

unread,
Jun 27, 2012, 12:36:38 PM6/27/12
to tas...@googlegroups.com

Well if it's only those that FC, one of those is good too :-)
log and Task are on its way..
 
I had already published the new beta when I read your post.
you're fast like that :)

Pent

unread,
Jun 27, 2012, 12:58:23 PM6/27/12
to Tasker
> log and Task are on its way..

Thanks. It's the space in "alert (", it needs to launch your scriptlet
differently if it need to do alert() prompt() or confirm() and is
failing to notice the alert because of the space.

Will fix, didn't know that was syntactically valid.

Pent

Wietse van Buitenen

unread,
Jun 27, 2012, 2:14:58 PM6/27/12
to tas...@googlegroups.com
I should have known it was a space issue :-)
It's not the first time I bug you because my keyboard adds an auto space :-)
Thanks for taking care of it.

Wietse van Buitenen

unread,
Jun 27, 2012, 2:24:51 PM6/27/12
to tas...@googlegroups.com
Just tested by removing the space and now it works fine :-)
I also read the other thread on b9 scriptlet issues and noticed the global required " and %, didn't know that and don't think I saw that in the documentation..
Just tested with
var value = global("%TIMES");
and this works fine
Yay :-)

Pent

unread,
Jun 27, 2012, 2:55:49 PM6/27/12
to Tasker
> var value = global("%TIMES");

Think

value = global( 'TIMES' );

works too.

Pent

Wes Stacey

unread,
Jun 27, 2012, 5:56:35 PM6/27/12
to tas...@googlegroups.com
Maybe I'm missing something but i searched through the group and didn't find an answer here.

A couple bugs I've run into, i have a project that works perfectly when Tasker is running but not when i export it to an app.

Not going to go into the details but a bug may or may not have been brought up here.

1. I have a scene that lets me respond to text messages, apparently though when i export it to an app it keeps failing because i have the checked box set on the send sms feature to store in messaging App, however it would send the message but wouldn't continue from that point, i exported the app again with debug enabled and it showed me an error that said i was missing the permissions to write_sms i'm not sure if i can add it manually or not (i tried adding just WRITE_SMS to a custom permission but that didn't work so I'm not sure what custom permission i would add to make it work)

Pent

unread,
Jun 28, 2012, 4:10:25 AM6/28/12
to Tasker
> 1. I have a scene that lets me respond to text messages, apparently though
> when i export it to an app it keeps failing because i have the checked box
> set on the send sms feature to store in messaging App, however it would
> send the message but wouldn't continue from that point, i exported the app
> again with debug enabled and it showed me an error that said i was missing
> the permissions to write_sms i'm not sure if i can add it manually or not
> (i tried adding just WRITE_SMS to a custom permission but that didn't work
> so I'm not sure what custom permission i would add to make it work)

That makes sense. Just to check: if you disable the 'insert in
messaging app' before exporting, the error doesn't come up ?

Pent

p.s. yes you can add it yourself in the advanced app config: I think
it's android.permission.WRITE_SMS. But please could you run the test
without it for me first ?
Thanks!

Amer

unread,
Jun 28, 2012, 4:19:43 AM6/28/12
to tas...@googlegroups.com
Hi Pent,

in the menu, i put array variables as the value.

when i pop the array, the scene that contain the menu will need to be destroy first before the menu is update as the pop action.

is it normal?

Pent

unread,
Jun 28, 2012, 7:22:14 AM6/28/12
to Tasker
> when i pop the array, the scene that contain the menu will need to be
> destroy first before the menu is update as the pop action.
>
> is it normal?

No, I'll make a note.

Pent

Pent

unread,
Jun 28, 2012, 7:38:20 AM6/28/12
to Tasker
On Jun 27, 1:37 pm, Wietse van Buitenen <thew...@gmail.com> wrote:
> - when using a local var in a JavaScriptlet, the local has to contain a
> value, it isn't enough if it's referenced, from a Task:
>
>   Alert - Flash - %tempval
>   JavaScriptlet:
>        var tempvalscript;
>        tempvalscript = 'testing'
>        tempval=tempvalscript
>   Alert - Flash - %tempval
>   this flashes an empty value

Just flashing the name of a variable does not create the variable. And
since you also don't create the variable in the script it doesn't
exist anywhere at any time.

Pent

Wietse van Buitenen

unread,
Jun 28, 2012, 7:46:20 AM6/28/12
to tas...@googlegroups.com
I just tried creating the local variable in the scriptlet with var... then set it with a value and the flash that variable from the Task but it is still empty.
I think I just don't get it :-)

Wietse van Buitenen

unread,
Jun 28, 2012, 7:46:22 AM6/28/12
to tas...@googlegroups.com

Wes Stacey

unread,
Jun 28, 2012, 12:27:07 PM6/28/12
to tas...@googlegroups.com
Pent i went ahead and performed your experiment and when I don't store it in the messaging app it works and I don't get the error anymore.

When i tried again and added the permission you mentioned, manually it also worked so i guess the only issue is that Tasker isn't automatically adding that permission to the list.

I'm still having some issues with the profile that reads any new test messages but I'm still working on debugging that one, if i find any bugs while doing so I'll let you know. Thanks for your amazing support.

-Wes

Pent

unread,
Jun 28, 2012, 2:33:56 PM6/28/12
to Tasker
> Pent i went ahead and performed your experiment and when I don't store it
> in the messaging app it works and I don't get the error anymore.
>
> When i tried again and added the permission you mentioned, manually it also
> worked so i guess the only issue is that Tasker isn't automatically adding
> that permission to the list.

Thanks, I fixed that for next time.

Pent

Pent

unread,
Jun 28, 2012, 2:57:09 PM6/28/12
to Tasker
As promised for today, I just uploaded b10.

Didn't have much time this evening, hope it's not too much of a
disaster :-)

Pent

Daniel Stříbrný

unread,
Jun 28, 2012, 3:51:37 PM6/28/12
to tas...@googlegroups.com
Pent, I have just installed beta 10 and so far, so good with App Factory FC...Good job!:-)

Wietse van Buitenen

unread,
Jun 28, 2012, 5:03:26 PM6/28/12
to tas...@googlegroups.com
the SMS variables issue also seem to be fixed  :)

Kevin Taylor

unread,
Jun 29, 2012, 1:30:19 AM6/29/12
to tas...@googlegroups.com
> Didn't have much time this evening, hope it's not too much of a disaster :-)
All hunky-dory so far! :-)

Kevin

Pent

unread,
Jun 29, 2012, 9:47:24 AM6/29/12
to Tasker
> All hunky-dory so far! :-)

Wow, survived the acid test!

Having tremendous fun today making all the actions available via
javascript, not :-)

Pent

BaKaMu

unread,
Jun 30, 2012, 5:56:04 AM6/30/12
to tas...@googlegroups.com
Hi Pent,

i have problems with this small task

TestTask
    A1: Variable Set [ Name:%tpar1 To:Teststring Do Maths:Off Append:Off ]
    A2: JavaScriptlet [ Code:var str = tpar1; flash(str); Timeout (Seconds):45 ]

No flashing output (Tasker new beta 10, Android 2.3.6)
Have I missed something there?
Thanks for any advice!

BaKaMu

Wietse van Buitenen

unread,
Jun 30, 2012, 6:53:38 AM6/30/12
to tas...@googlegroups.com
try replacing flash(str); with flash(str,false);
Message has been deleted
Message has been deleted

BaKaMu

unread,
Jun 30, 2012, 7:30:24 AM6/30/12
to tas...@googlegroups.com
Hi,

Unfortunately, no success, would have me amazed :-)

Perhaps the assignment var str = tpar1 does not work.

BaKaMu

Pent

unread,
Jun 30, 2012, 7:33:17 AM6/30/12
to Tasker
> i have problems with this small task
>
> TestTask
>     A1: Variable Set [ Name:%tpar1 To:Teststring Do Maths:Off Append:Off ]
>     A2: JavaScriptlet [ Code:var str = tpar1; flash(str); Timeout
> (Seconds):45 ]
>
> No flashing output (Tasker new beta 10, Android 2.3.6)
> Have I missed something there?

Aside from TW's correct observation about flash, variables ending in a
number are array parts in Tasker. By setting %tpar1 to a value, you've
created an array with one element,
which you could also reference with %tpar(1).

In JavaScript, array elements must be referenced like this: tpar[1].
And since Tasker arrays start at 1 and javascript arrays start at 0,
you need to use 'tpar[0]'.

Pent

BaKaMu

unread,
Jun 30, 2012, 8:02:57 AM6/30/12
to tas...@googlegroups.com
Hi Pent,

thank you for that clarification, now it works!
(again learned something)

Does this mean that in javascriptlets that occur in subtasks the access to the variables %par1 and %par2 (from subtask) is like par[0] and par[1] (in javascriptlet) ?
Is that correct?

BaKaMu

Amer

unread,
Jun 30, 2012, 12:17:39 PM6/30/12
to tas...@googlegroups.com

Hi Pent, I don't know if it's a bug, but when I clone one scene and delete the clone then all the action n task I have on the original scene is also deleted.

--
[OS] Android Gingerbread 2.3.4
[Phone] HTC Evo 3D
[ROM] Sense 3.0 Stock ROM

Matt

unread,
Jun 30, 2012, 1:59:28 PM6/30/12
to tas...@googlegroups.com
Hi, I created a child app from a project that I have for SMS popup it uses a sl4a script to mark all SMS's a read on certain button presses (i'm on android 2.3).

When I try and run the script I get a Force close (of SL4A not the child app).

Should what I'm trying to do be possible or am I missing something in the app creation?

Thanks

Matt

Matt

unread,
Jun 30, 2012, 2:13:02 PM6/30/12
to tas...@googlegroups.com
Hmm just tried it again and it worked... must have been a problem with SL4a... I have noticed though that on reboot the popup / notifications don't seem to show until you launch the app manually (this happens on first install as well...) - when you do manually launch the app the %SMSRN & %SMSRB variables display the variable names not the content...

Thanks

Matt

Pent

unread,
Jun 30, 2012, 2:22:17 PM6/30/12
to Tasker
> Does this mean that in javascriptlets that occur in subtasks the access to
> the variables %par1 and %par2 (from subtask) is like par[0] and par[1] (in
> javascriptlet) ?

Yep.

Pent

Pent

unread,
Jun 30, 2012, 2:23:31 PM6/30/12
to Tasker
> Hi Pent, I don't know if it's a bug, but when I clone one scene and delete
> the clone then all the action n task I have on the original scene is also
> deleted.

There's a thread about that, I havn't been able to reproduce it. Is it
all anonymous tasks ?
Which scene element(s) ? Could you try and break it down to the
minimal situation where it works (e.g. one element, one event etc).

Pent

Pent

unread,
Jun 30, 2012, 2:25:39 PM6/30/12
to Tasker
> Hmm just tried it again and it worked... must have been a problem with
> SL4a... I have noticed though that on reboot the popup / notifications
> don't seem to show until you launch the app manually

It's the same with any app, Android keeps them frozen until launched
by the user.

> when you do manually launch the app the %SMSRN &
> %SMSRB variables display the variable names not the content...

Because the monitor hasn't been running until then. If you create a
little scene with an enable/disable screen when the app is launched,
and start it with disabled, it will be clear
to the user that they need to enable it before expecting any results.

Pent

UncleMike

unread,
Jun 30, 2012, 6:24:48 PM6/30/12
to tas...@googlegroups.com
This is a change from b8 (should that be b[7]?).  One of my Javascriptlets broke with the b10 update, and as I was catching up on this thread before reporting the problem, I found this.

Amer

unread,
Jun 30, 2012, 11:10:28 PM6/30/12
to tas...@googlegroups.com

That's the problem, I also can't reproduced it. But if I try with my existing scene it happened.

--
[OS] Android Gingerbread 2.3.4
[Phone] HTC Evo 3D
[ROM] Sense 3.0 Stock ROM

Pent

unread,
Jul 1, 2012, 2:51:25 AM7/1/12
to Tasker
> This is a change from b8 (should that be b[7]?).  One of my Javascriptlets
> broke with the b10 update, and as I was catching up on this thread before
> reporting the problem, I found this.

Sorry, this implication of making arrays 'transparent' hadn't occurred
to me.

Pent

Matt

unread,
Jul 1, 2012, 3:04:56 AM7/1/12
to tas...@googlegroups.com
thanks pent, is there a way to activate it at boot? If I put an at boot event in there to enable the profile would this copy over to activate the app?

Regards

Matt
It is loading more messages.
0 new messages