Post Reply Subscribe to Thread Email Thread

Tasker/TasGear samples

19th February 2015, 07:44 AM   |  #121  
Member
Thanks Meter: 14
 
32 posts
Join Date:Joined: Sep 2011
Here is another method for sending multiple variables to the gear without root or the use of run shell commands. In my previous example I've showed you how to send variables individually one at a time without erasing other variables in your gear set up. But what if you want to send a lot of variables at once? Run shell command still seems like the best way in this situation vs. sending many different sent intents in a row (even though you could with the previous example). Here is a second method I use, which I also use in conjunction with my first method...
Let's say you have 8 variables that you want to update on the gear at the same time:
%CURRENTTEMP
%TEMPHIGH
%TEMPLOW
%WEATHERCONDITION
%SUNRISETIME
%SUNSETTIME
%WINDSPEED
%WINDDIRECTION

On the PHONE:
Set them all to one variable seperated by @'s, then sent intent that variable to the gear like so:

VARIABLE SET
%WEATHER
to %CURRENTTEMP@%TEMPHIGH@%TEMPLOW@%WEATHERCONDITION@ %SUNRISETIME@%SUNSETTIME@%WINDSPEED@%WINDDIRECTION

SEND INTENT
com.orbonis.gear.tasker.MESSAGE_GEAR
EXTRA:
PHONE_WEATHER: %WEATHER

On the GEAR:
Receive the intent and set local variable to a global variable. Then variable split it with splitter "@". You now have an array with 8 values that can be accessed individually.

VARIABLE SET
%P_WEATHER
To
%phone_weather
IF
%phone_weather SET

VARIABLE SPLIT
%P_WEATHER
Splitter: @
Delete Base
IF
%phone_weather SET

You now have:
%P_WEATHER1 = %CURRENTTEMP
%P_WEATHER2 = %TEMPHIGH
%P_WEATHER3 = %TEMPLOW
%P_WEATHER4 = %WEATHERCONDITION
%P_WEATHER5 = %SUNRISETIME
%P_WEATHER6 = %SUNSETTIME
%P_WEATHER7 = %WINDSPEED
%P_WEATHER8 = %WINDDIRECTION

Any of these array values can be used normally as a regular variable in a zooper configuration or whatever you wish to do with them.
The Following 2 Users Say Thank You to edwardsc005 For This Useful Post: [ View ]
2nd March 2015, 09:14 AM   |  #122  
Member
Thanks Meter: 14
 
32 posts
Join Date:Joined: Sep 2011
Full weather replacement for Gear
Here is my current weather replacement set up for the gear.
On the PHONE:

PROFILE 1 (pull weather data every hour)
Add Event>Date/Time>Repeat:every 1 Hour(s)
--->Task "Get Weather"
+
PROFILE 2 (pull weather data on sunrise/sunset times)
Add Event>State>Variables>Variable Value (Conditions: %DAY = %TIME (OR) %DARK = %TIME)
--->Task "Get Weather"

TASK "Get Weather" (Prompt for the Zip Code if one isn't set. Turn on internet if it's not on already and wait a few seconds to establish connection to avoid HTTP Get error...If internet is not working (poor signal) then skip to end of task. Otherwise get data, break it down, store it to a variable and send it to the gear, then turn off internet if it was off to begin with)

1. Show Scene>Name 'Get ZIP'>Display As 'Dialog, Dim Behind Heavy'>Show Exit Button>Continue Task Immediately 'unchecked'>IF %ZIPCODE Isn't Set
2. Test Net>Connection Type>Store Result In '%TEST'
3. Mobile Data>Set On IF %TEST eq none
4. Wait>5 seconds IF %TEST eq none
5. HTTP Get>Server:Port 'xml.weather.yahoo.com/forecastrss?p=%ZIPCODE>Continue Task after error checked
6. Goto>Action Number 23 IF %err = 1
7. Variable Split>Name '%HTTPD'>Splitter 'chill='>Delete Base
8. Variable Split>Name '%HTTPD2'>Spliter '"'>Delete Base
9. Perform Task>Name '12HourTime'>Priority '%priority+1'
10. Variable Set>Name '%UPDATED' to 'Updated %12HRTIME'
11. Variable Section>Name '%HTTPD215' From 1 Length 5>Store Result In '%DAY'
12. Variable Section>Name '%HTTPD217' From 1 Length 5>Store Result In '%DARK'
13. Variable Split>Name '%DARK'>Splitter ':'>Delete Base
14. Variable Add>Name '%DARK1'>Value 12
15. Variable Join>Name '%DARK'>Joiner '.'>Delete Parts
16. Variable Split>Name '%DAY'>Splitter ':'>Delete Base
17. Variable Join>Name '%DAY'>Joiner '.'>Delete Parts
18. Variable Set>Name '%SUN' to 'Sunrise: %HTTPD215' IF %TIME < %DAY (OR) %TIME > %DARK (OR) %TIME = %DARK
19. Variable Set>Name '%SUN' to 'Sunset: %HTTPD217' IF %TIME = %DAY (OR) %TIME > %DAY (AND+) %TIME < %DARK
20. Variable Set>Name '%WEATHER' to '%HTTPD21@HTTPD23@HTTPD25@%SUN@%UPDATED@HTTPD219@H TTPD223@HTTPD237@HTTPD239@HTTPD241@HTTPD249@HTTPD2 51@HTTPD253@HTTPD261@HTTPD263@HTTPD265@HTTPD273@HT TPD275@HTTPD277@HTTPD285@HTTPD287@HTTPD289@HTTPD22 1@HTTPD243@HTTPD255@HTTPD267@HTTPD279@HTTPD291
21. Array Clear>Name '%HTTPD2'
22. Send Intent>Action 'com.orbonis.gear.tasker.MESSAGE_GEAR'>Extra 'PHONE_WEATHER:%WEATHER'
23. Mobile Data>Set Off IF %TEST eq none

TASK "12HourTime" (Converts the default Tasker time into something a little more readable since nobody uses military time...I was in the military and I don't even use it lol. Also tacks on the current date)
1. Variable Split>Name '%TIME'>Splitter '.'
2. Variable Set>Name '%TIME2' to 'PM'>Append Checked>IF %TIME1 > 11
3. Variable Set>Name '%TIME2' to 'AM'>Append Checked>IF %TIME1 < 12
4. Variable Section>Name '%TIME1' From 2 Length 1>IF %TIME1 < 10
5. Variable Subtract>Name '%TIME1' Value 12>IF %TIME1 >12
6. Variable Set>Name '%12HRTIME' to '%DATE, %TIME1:%TIME2'

SCENE "Get ZIP:378x364" (Prompt for Zip Code...if you want to bring up this prompt at any time just create a new task that calls for it and link that task to a zooper module shortcut or homescreen tasker shortcut)
Element Add>Text>Geometry (77,9)(226x99)>Text 'Zipcode'>Text Size 16
Element Add>Text Edit>MAIN TAB:Geometry (77,132)(226x99), Text Size 18>BACKGROUND TAB: Border Width 5>TEXT CHANGED TAB: 1. Variable Set>Name '%ZIPCODE' to '%new_val'
Element Add>Button>MAIN TAB:Geometry (101,256)(176x107), Label 'SET', Label Size '16'>TAP TAB: 1. Destroy Scene 'Get ZIP', 2. Flash Text 'Zipcode set to: %new_val'


On the GEAR
Include this as part of your Intent Recieved Profile Task (whatever you have called it). I'm assuming you already have a profile set up for receive intent (aka "Battery Example")
TASK 'Whatever'(Mine is 'Phone Updates')
1. IF %phone_weather SET
2. Variable Set>Name '%P_WEATHER' to '%phone_weather'
3. Perform Task>Name 'Weather Update'
4. END IF

TASK 'Weather Update'
1: Variable Split>Name '%P_WEATHER'>Splitter '@'>Delete Base
2: Zooper Widget Pro Variable [ Configuration:realfeal = %P_WEATHER1
3: Zooper Widget Pro Variable [ Configuration:winddir = %P_WEATHER2
4: Zooper Widget Pro Variable [ Configuration:windspeed = %P_WEATHER3
5: Zooper Widget Pro Variable [ Configuration:sun = %P_WEATHER4
6: Zooper Widget Pro Variable [ Configuration:updated = %P_WEATHER5
7: Zooper Widget Pro Variable [ Configuration:ccondition = %P_WEATHER6
8: Zooper Widget Pro Variable [ Configuration:ctemp = %P_WEATHER7
9: Zooper Widget Pro Variable [ Configuration:cdaylow = %P_WEATHER8
10: Zooper Widget Pro Variable [ Configuration:cdayhigh = %P_WEATHER9
11: Zooper Widget Pro Variable [ Configuration:cdcondition = %P_WEATHER10
12: Zooper Widget Pro Variable [ Configuration:tomlow = %P_WEATHER11
13: Zooper Widget Pro Variable [ Configuration:tomhigh = %P_WEATHER12
14: Zooper Widget Pro Variable [ Configuration:tomcondition = %P_WEATHER13
15: Zooper Widget Pro Variable [ Configuration:twodlow = %P_WEATHER14
16: Zooper Widget Pro Variable [ Configuration:twodhigh = %P_WEATHER15
17: Zooper Widget Pro Variable [ Configuration:twodcond = %P_WEATHER16
18: Zooper Widget Pro Variable [ Configuration:threedlow = %P_WEATHER17
19: Zooper Widget Pro Variable [ Configuration:threedhigh = %P_WEATHER18
20: Zooper Widget Pro Variable [ Configuration:threedcond = %P_WEATHER19
21: Zooper Widget Pro Variable [ Configuration:fourdlow = %P_WEATHER20
22: Zooper Widget Pro Variable [ Configuration:fourdhigh = %P_WEATHER21
23: Zooper Widget Pro Variable [ Configuration:fourdcond = %P_WEATHER22
24: Zooper Widget Pro Variable [ Configuration:ctoday = %P_WEATHER23
25: Zooper Widget Pro Variable [ Configuration:today = %P_WEATHER24
26: Zooper Widget Pro Variable [ Configuration:tomorrow = %P_WEATHER25
27: Zooper Widget Pro Variable [ Configuration:twoday = %P_WEATHER26
28: Zooper Widget Pro Variable [ Configuration:threeday = %P_WEATHER27
29: Zooper Widget Pro Variable [ Configuration:fourday = %P_WEATHER28

These values should be pretty easy to decipher. Actions 25 through 29 are the yahoo weather codes. In order to get them to match up with zooper widget I had to make a new Bitmap Icon Set which I've attatched to this post. You can unzip it and replace the Icons in the folder with your own if you wish. Also change the name of them in the config file, then zip the folder and config file back together and place it in the ZooperWidget/IconSets folder on the SD Card. When setting up your zooper widget you add a new module>select Bitmap Icon Set>change the Iconset to 'ZW Tasker Weather Icons', and change the Iconset Mode to either: Current Weather, Today's Weather, Tomorrow's Weather, 2 Days Weather, 3 Days Weather, or 4 Days Weather. I've already edited the default config file to select the correct Icon based on the Yahoo weather codes from Tasker Zooper Configs 24 through 29 so all the hard work is done for you :) I suggest setting the Module On Tap for the 'Current Weather' Icon to a Popup Widgets shortcut (you need the app for that on your gear), and in the Popup Widget setup link that to another zooper widget showing the 5 day forecast like you see in my example pics attatched to the post. I had trouble getting popup widgets to work at first on the gear...you have to select in the options to use the Legacy widget picker or it won't work. I'll leave setting up the zooper widget layout up to you...
Attached Thumbnails
Click image for larger version

Name:	Screenshot_2015-03-01-00-23-35.png
Views:	86
Size:	79.1 KB
ID:	3190336   Click image for larger version

Name:	Screenshot_2015-03-01-13-30-32.png
Views:	86
Size:	55.0 KB
ID:	3190337  
Attached Files
File Type: zip ZW Tasker Icons(simple).zip - [Click for QR Code] (106.5 KB, 0 views)
Last edited by edwardsc005; 19th March 2015 at 06:27 PM.
The Following 2 Users Say Thank You to edwardsc005 For This Useful Post: [ View ]
12th March 2015, 02:19 AM   |  #123  
zzEvilGeniuszz's Avatar
Senior Member
Thanks Meter: 19
 
111 posts
Join Date:Joined: Jun 2014
Sorry for the noob question here but does TasGear run on Gear 2?
16th March 2015, 12:17 AM   |  #124  
Member
Thanks Meter: 14
 
32 posts
Join Date:Joined: Sep 2011
Quote:
Originally Posted by zzEvilGeniuszz

Sorry for the noob question here but does TasGear run on Gear 2?

Not at the moment. You're basically waiting on a method to replace the tizen operating system with an android based one.
16th March 2015, 10:48 AM   |  #125  
Member
Thanks Meter: 14
 
32 posts
Join Date:Joined: Sep 2011
SMS
I rarely use the Gear S Voice to send texts either because of loud environments or fear of looking stupid or because it just sometimes can't understand me. So for people who like to type stuff out on the watch I made this set up...and I'm sure you can incorporate auto-voice into it if you want. But regardless it is still good for better sms notifications. It will popup the entire message instead of a fraction of it. Plus it looks better. I've added all the bells and whistles you would expect and then some. To get the full functionality you will need root and sqlite3 installed on your phone. If you don't have root on the phone then you will not be able to retrieve contact book info or sms logs, but you will still be able to receive popup notifications and either reply directly to them or type in phone numbers from memory...just be sure to not include any of the shell commands that need root and the actions that rely on them. But seriously... Root your phone. It takes 5min. If you are worried about tripping a silly knox warranty then I'm shaking my head at you. :/
PHONE----------------------->
Profile: Received text any *,*-----> Task: SMS Send

TASK: SMS Send
*A1: Perform Task [ Name:12HourTime ]
A2: Variable Set [ Name:%SMS To:%12HRTIME|%SMSRN|%SMSRF|%SMSRB ]
A3: Send Intent [ Action:com.orbonis.gear.tasker.MESSAGE_GEAR Extra:PHONE_SMS: %SMS ]
*NOTES*-12hourTime is the same task from my weather set up a few posts back.

TASK: Gear Updates (Intent Received Task).
A1: If [ %gear_number Set ]
A2: Variable Split [ Name:%gear_number Splitter:| ]
A3: If [ %gear_number3 Set ]
A4: For [ Variable:%spam Items:1:%gear_number4 ]
A5: Send SMS [ Number:%gear_number2 Message:%gear_number3 ]
A6: End For
A7: Wait [ Seconds:3 ]
A8: End If
*A9: Variable Set [ Name:%newline To: ]
A10: Run Shell [ Command:sqlite3 /data/data/com.android.providers.contacts/databases/contacts2.db "SELECT display_name FROM raw_contacts, phone_lookup WHERE raw_contacts._id = phone_lookup.raw_contact_id AND normalized_number LIKE '%%gear_number2' LIMIT 1;" Use Root:on Store Output In:%name Continue Task After Error:on ]
A11: Variable Set [ Name:%name To:%gear_number2 ] If [ %name !Set ]
A12: Run Shell [ Command:sqlite3 /data/data/com.android.providers.telephony/databases/mmssms.db "SELECT CASE WHEN type= '2' THEN 'YOUR NAME ' ELSE '%name ' END, strftime('%Y-%m-%d %w (%H:%M)', date/1000, 'unixepoch', 'localtime') AS date, '%newline', body, '%newline' FROM sms WHERE address LIKE '%%gear_number2' ORDER BY date DESC;" Use Root:on Store Output In:%logs Continue Task After Error:on ]
A13: Variable Search Replace [ Variable:%logs Search:1 Replace Matches:Mon ]
A14: Variable Search Replace [ Variable:%logs Search:2 Replace Matches:Tue ]
A15: Variable Search Replace [ Variable:%logs Search:3 Replace Matches:Wen ]
A16: Variable Search Replace [ Variable:%logs Search:4 Replace Matches:Thur ]
A17: Variable Search Replace [ Variable:%logs Search:5 Replace Matches:Fri ]
A18: Variable Search Replace [ Variable:%logs Search:6 Replace Matches:Sat ]
A19: Variable Search Replace [ Variable:%logs Search:0 Replace Matches: Sun ]
A20: Send Intent [ Action:com.orbonis.gear.tasker.MESSAGE_GEAR Extra:PHONE_LOGS: %logs ]
A21: End If
A22: If [ %gear_contacts Set ]
A23: Variable Set [Name:%newline To: ]
A24: Run Shell [ Command:sqlite3 /data/data/com.android.providers.contacts/databases/contacts2.db "SELECT display_name, normalized_number FROM raw_contacts, phone_lookup WHERE raw_contacts._id = phone_lookup.raw_contact_id AND normalized_number NOT LIKE '+%' ORDER BY display_name;" Use Root:on Store Output In:%contacts Continue Task After Error:on ]
A25: Variable Split [Name: %contacts Splitter: %newline]
A26: Variable Join [Name: %contacts Joiner:,]
A27: Send Intent [ Action:com.orbonis.gear.tasker.MESSAGE_GEAR Extra:PHONE_CONTACTS: %contacts ]
A28: End If
*NOTES: the variable set for "%newline" is simply hitting return once.
Attached Thumbnails
Click image for larger version

Name:	Screenshot_2015-03-15-21-49-55.png
Views:	64
Size:	40.5 KB
ID:	3213245   Click image for larger version

Name:	Screenshot_2015-03-15-22-04-16.png
Views:	64
Size:	30.3 KB
ID:	3213246   Click image for larger version

Name:	Screenshot_2015-03-15-21-52-06.png
Views:	64
Size:	38.0 KB
ID:	3213247  
Attached Files
File Type: zip SMSTasks_Scenes.zip - [Click for QR Code] (10.1 KB, 0 views)
Last edited by edwardsc005; 20th March 2015 at 04:03 PM.
The Following User Says Thank You to edwardsc005 For This Useful Post: [ View ]
16th March 2015, 11:04 AM   |  #126  
Member
Thanks Meter: 14
 
32 posts
Join Date:Joined: Sep 2011
GEAR------------------------>

TASK: Phone Updates (Intent Received Task)
A1: If [ %phone_sms Set ]
A2: Variable Set [ Name:%P_SMS To:%phone_sms ]
A3: Destroy Scene [ Name:SMS Popup ]
A4: Perform Task [ Name:SMS]
A5: End If
A6: Variable Set [ Name:%P_CONTACTS To:%phone_contacts ] If [%phone_contacts Set]
A7: Element Text [ Scene Name:Compose SMS Element:Logs Position:Replace Existing Text:%phone_logs ] If [ %phone_logs Set ]

TASK: SMS
A1: Variable Set [ Name:%INDEX To:1 ]
A2: Vibrate Pattern [ Pattern:0,500,80,200,80,200,80,200 ]
A3: Array Push [ Name:%P_SMS Position:1 Value:%P_SMS ]
*A4: Zooper Widget Pro Variable [ Configuration:#Tcounter# = %P_SMS(#) ]
A5: Variable Set [ Name:%SCENE To:%P_SMS1 ]
A6: Variable Split [ Name:%SCENE Splitter:| Delete Base:on ]
A7: Test Scene [ Name:Compose SMS Test:Status Store Result In:%temp ]
A8: If [ %temp neq visible ]
*A9: Variable Set [ Name:%CONTACTPHOTO To:file:///sdcard/Tasker/Pics/%SCENE3.jpg]
A10: Test File [ Type:Size Data:Tasker/Pics/%SCENE3.jpg Store Result In:%test Continue Task After Error:on ]
*A11: Variable Set [ Name:%CONTACTPHOTO To:file:///sdcard/Tasker/Pics/default.png] If [ %err = 1 ]
A12: Show Scene [ Name:SMS Popup Display As:Dialog, Dim Behind Heavy Horizontal Position:100 Vertical Position:100 Animation:System Show Exit Button:off Continue Task Immediately:on ] If [ %POPUP eq Popup On ]
A13: End If
A14: If [ %temp eq visible & %SCENE3 ~ %NUMBER ]
*A15: Variable Set [ Name:%number To:|%NUMBER| ]
A16: Send Intent [ Action:com.orbonis.gear.tasker.consumer.MESSAGE_HO ST Extra:GEAR_NUMBER: %number ]
A17: End If
A18: If [ %TEXT eq Speech On ]
A19: Shut Up
A20: Media Volume [ Level:25 Display:off Sound:off ]
*A21: Music Play [ File:Tasker/Pics/beep.mp3]
A22: Say [ Text:%SCENE2 says.. %SCENE4 Engine:Voice:default Continue Task Immediately:on ]
A23: End If
*NOTES*
A4 sets your new message count to a zooper variable
A9 sets your contacts pic (create a folder in tasker named pics and fill it with contact pics..rename each of them with the contacts phone number. Example= 2223334444.jpg, also choose a default pic for any received numbers not in your phone book (default.png in my set up)
A15 it is necessary to send phone numbers inside brackets as a send intent or else they will get converted to scientific notation and might come out wrong on the phone side.
A21 you can use a tasker beep action or do like I did and find a more pleasant sounding ding.mp3 to use through a play file command. (starts off a text to speech when turned on)

TASK: SMS Scene
A1: Variable Set [ Name:%CONTACTPHOTO To:file:///sdcard/Tasker/Pics/%SCENE3.jpg ]
A2: Test File [ Type:Size Data:Tasker/Pics/%SCENE3.jpg Store Result In:%test Continue Task After Error:on ]
A3: Variable Set [ Name:%CONTACTPHOTO To:file:///sdcard/Tasker/Pics/default.png ] If [ %err = 1 ]
A4: Show Scene [ Name:SMS Popup Display As:Dialog, Dim Behind Heavy Horizontal Position:100 Vertical Position:100 Animation:System Show Exit Button:off Continue Task Immediately:on ]
A5: Variable Set [ Name:%contacts To:1]
A6: Send Intent [ Action:com.orbonis.gear.tasker.consumer.MESSAGE_HO ST Extra:GEAR_CONTACTS: %contacts]
*NOTES* - Link this task to a widget in order to access sms to view or create new texts. In my set up this task is linked to a module on tap action for a zooper widget bitmap and the new text count (#Tcounter#) is aligned over top of that in SRC mode.

That's it for tasks...now on to the SCENES...

---------- Post added at 11:04 AM ---------- Previous post was at 10:53 AM ----------

SCENE: SMS Popup 320x320

Element: SMS Body/Text 85,110 235x140, Text: %SCENE4 Vertical Fit Mode: Allow Scrolling

Element: Contact Image 5,110 75x100 %CONTACTPHOTO

Element: NEXT/Button 200,0 120x50
A1: If [ %P_SMS(#) != 0 ]
A2: Variable Add [ Name:%INDEX Value:1]
A3: Variable Set [ Name:%INDEX To:1] If [ %INDEX > %P_SMS(#) ]
A4: Variable Set [ Name:%SCENE To:%P_SMS(%INDEX)]
A5: Variable Split [ Name:%SCENE Splitter:| Delete Base:on ]
A6: Variable Set [ Name:%CONTACTPHOTO To:file:///sdcard/Tasker/Pics/%SCENE3.jpg]
A7: Test File [ Type:Size Data:Tasker/Pics/%SCENE3.jpg Store Result In:%test Continue Task After Error:on ]
A8: Variable Set [ Name:%CONTACTPHOTO To:file:///sdcard/Tasker/Pics/default.png] If [ %err = 1 ]
A9: Shut Up
A10: Say [ Text:%SCENE2 says.. %SCENE4 Engine:Voice:default Continue Task Immediately:on ] If [ %TEXT eq Speech On ]
A11: End If

Element: PREVIOUS/Button 0,0 120x50
A1: If [ %P_SMS(#) != 0 ]
A2: Variable Subtract [ Name:%INDEX Value:1]
A3: Variable Set [ Name:%INDEX To:%P_SMS(#)] If [ %INDEX = 0 ]
A4: Variable Set [ Name:%SCENE To:%P_SMS(%INDEX)]
A5: Variable Split [ Name:%SCENE Splitter:| Delete Base:on ]
A6: Variable Set [ Name:%CONTACTPHOTO To:file:///sdcard/Tasker/Pics/%SCENE3.jpg]
A7: Test File [ Type:Size Data:Tasker/Pics/%SCENE3.jpg Store Result In:%test Continue Task After Error:on ]
A8: Variable Set [ Name:%CONTACTPHOTO To:file:///sdcard/Tasker/Pics/default.png] If [ %err = 1 ]
A9: Shut Up
A10: Say [ Text:%SCENE2 says.. %SCENE4 Engine:Voice:default Continue Task Immediately:on ] If [ %TEXT eq Speech On ]
A11: End If

Element: From/Text 0,42 210x70 Text: %SCENE1(newline)From: %SCENE2(newline)%SCENE3:

Element: Text Count/Text 120,0 80x45 Text: %INDEX/%P_SMS(#)

Element: Clear/Button 93,250 110x50 Label: Clear
A1: If [ %P_SMS(#) eq 1 ]
A2: Array Clear [ Name:%P_SMS ]
A3: Zooper Widget Pro Variable [ Configuration:#Tcounter# = ' '(empty space here) ]
A4: Variable Set [ Name:%SCENE To:' |N/A|N/A| '] (empty space on both sides)
A5: Variable Split [ Name:%SCENE Splitter:| Delete Base:on ]
A6: Variable Set [ Name:%CONTACTPHOTO To:file:///sdcard/Tasker/Pics/default.png]
A7: Variable Set [ Name:%SMS To:0 ]
A8: Send Intent [ Action:com.orbonis.gear.tasker.consumer.MESSAGE_HO ST Extra:GEAR_SMS: %SMS]
A9: Else If [ %SCENE2 neq N/A ]
A10: Array Pop [ Variable:%P_SMS Position:%INDEX To Var: ]
A11: Variable Subtract [ Name:%INDEX Value:1 ] If [ %INDEX > %P_SMS(#) ]
A12: Array Process [ Variable:%P_SMS Type:Squash ]
A13: Zooper Widget Pro Variable [ Configuration:#Tcounter# = %P_SMS(#)]
A14: Variable Set [ Name:%SCENE To:%P_SMS(%INDEX)]
A15: Variable Split [ Name:%SCENE Splitter:| Delete Base:on ]
A16: Variable Set [ Name:%CONTACTPHOTO To:file:///sdcard/Tasker/Pics/%SCENE3.jpg]
A17: Test File [ Type:Size Data:Tasker/Pics/%SCENE3.jpg Store Result In:%test Continue Task After Error:on ]
A18: Variable Set [ Name:%CONTACTPHOTO To:file:///sdcard/Tasker/Pics/default.png] If [ %err = 1 ]
A19: End If

Element: Clear All/Button 210,250 110x50 Label: Clear All
A1: Array Clear [ Name:%P_SMS ]
A2: Zooper Widget Pro Variable [ Configuration:#Tcounter# =' '] (empty space)
A3: Variable Set [ Name:%SCENE To:' |N/A|N/A| '] (empty space both sides)
A4: Variable Split [ Name:%SCENE Splitter:| Delete Base:on ]
A5: Variable Set [ Name:%CONTACTPHOTO To:file:///sdcard/Tasker/Pics/default.png]
A6: Variable Set [ %INDEX To: 1]

Element: Notify/Button 0,250 85x50 Label: %POPUP
A1: If [ %POPUP eq Popup On ]
A2: Variable Set [ Name:%POPUP To:Popup Off]
A3: Else
A4: Variable Set [ Name:%POPUP To:Popup On]
A5: End If

Element: Compose/Button 210,50 105x60 Label: Compose
A1: Hide Scene [ Name:SMS Popup]
A2: Destroy Scene [ Name:Compose SMS]
A3: Variable Set [ Name:%SPAM To:1] If [ %SPAM !Set ]
A4: Variable Clear [ Name:%BODY]
A5: Variable Clear [ Name:%NUMBER]
A6: Variable Set [ Name:%NUMBER To:%SCENE3] If [ %SCENE3 neq N/A ]
A7: Variable Set [ Name:%number To:|%NUMBER|]
A8: Send Intent [ Action:com.orbonis.gear.tasker.consumer.MESSAGE_HO ST Extra:GEAR_NUMBER: %number]
A9: Show Scene [ Name:Compose SMS Display As:Dialog, Dim Behind Heavy Horizontal Position:100 Vertical Position:100 Animation:System Show Exit Button:off Continue Task Immediately:on ]
A10: Element Visibility [ Scene Name:Compose SMS Element Match:Contacts Set:False]
A11: Element Visibility [ Scene Name:Compose SMS Element Match:Contact Set:True]
A12: Element Text [ Scene Name:Compose SMS Element:Contact Position:Replace Existing Text:%NUMBER ] If [ %NUMBER Set ]
A13: Element Value [ Scene Name:Compose SMS Element:Contacts Value:1 ]

Element: Text to Speech/Button 0,205 85x50 Label: %TEXT
A1: Shut Up
A2: If [ %TEXT eq Speech Off ]
A3: Media Volume [ Level:25 Display:off Sound:off ]
A4: Variable Set [ Name:%TEXT To:Speech On]
A5: Say [ Text:%SCENE2 says.. %SCENE4 Engine:Voice:default:default Stream:3 Pitch:5 Speed:5 Continue Task Immediately:on ] If [ %P_SMS(#) != 0 ]
A6: Else
A7: Variable Set [ Name:%TEXT To:Speech Off]
A8: End If

SCENE: Compose SMS*P:320x320

Element: ContactImage/Image 4,1 60x80 Image: %CONTACTPHOTO

Element: Contacts/Spinner 66,1 176x76 Variable %P_CONTACTS
A1: Element Text [ Scene Name:Compose SMS2 Element:Logs Position:Replace Existing Text: ]
A2: Variable Split [ Name:%tap_label Splitter:| Delete Base:off ]
A3: Variable Set [ Name:%NUMBER To:%tap_label2]
A4: Variable Set [ Name:%CONTACTPHOTO To:file:///sdcard/Tasker/Pics/%NUMBER.jpg]
A5: Test File [ Type:Size Data:Tasker/Pics/%NUMBER.jpg Store Result In:%test Continue Task After Error:on ]
A6: Variable Set [ Name:%CONTACTPHOTO To:file:///sdcard/Tasker/Pics/default.png] If [ %err = 1 ]
A7: Variable Set [ Name:%number To:|%NUMBER|]
A8: Send Intent [ Action:com.orbonis.gear.tasker.consumer.MESSAGE_HO ST Extra:GEAR_NUMBER: %number]

Element: Show/Button 240,0 80x80 Icon: book
A1: Element Text [ Scene Name:Compose SMS2 Element:Logs Position:Replace Existing Text: ]
A2: Test Element [ Scene Name:Compose SMS2 Element:Contacts Test:Element Visibility Store Result In:%element Continue Task After Error:on ]
A3: If [ %element eq false ]
A4: Element Visibility [ Scene Name:Compose SMS2 Element Match:Contacts Set:True]
A5: Element Visibility [ Scene Name:Compose SMS2 Element Match:Contact Set:False]
A6: Test Element [ Scene Name:Compose SMS2 Element:Contacts Test:Value Store Result In:%temp Continue Task After Error:on ]
A7: Variable Split [ Name:%temp Splitter:| Delete Base:off ]
A8: Variable Set [ Name:%NUMBER To:%temp2]
A9: Else
A10: Element Visibility [ Scene Name:Compose SMS2 Element Match:Contact Set:True]
A11: Element Visibility [ Scene Name:Compose SMS2 Element Match:Contacts Set:False]
A12: Test Element [ Scene Name:Compose SMS2 Element:Contact Test:Value Store Result In:%NUMBER Continue Task After Error:on ]
A13: End If
A14: Variable Set [ Name:%CONTACTPHOTO To:file:///sdcard/Tasker/Pics/%NUMBER.jpg]
A15: Test File [ Type:Size Data:Tasker/Pics/%NUMBER.jpg Store Result In:%test Continue Task After Error:on ]
A16: Variable Set [ Name:%CONTACTPHOTO To:file:///sdcard/Tasker/Pics/default.png] If [ %err = 1 ]
A17: Variable Set [ Name:%number To:|%NUMBER|]
A18: Send Intent [ Action:com.orbonis.gear.tasker.consumer.MESSAGE_HO ST Extra:GEAR_NUMBER: %number]

Element: Contact/TextEdit 66,1 176x76 Phone Number Max Characters: 10
A1: Variable Set [ Name:%NUMBER To:%new_val ]
A2: If [ %NUMBER > 999999999 ]
A3: Element Text [ Scene Name:Compose SMS2 Element:Logs Position:Replace Existing Text: ]
A4: Variable Set [ Name:%CONTACTPHOTO To:file:///sdcard/Tasker/Pics/%NUMBER.jpg]
A5: Test File [ Type:Size Data:Tasker/Pics/%NUMBER.jpg Store Result In:%test Continue Task After Error:on ]
A6: Variable Set [ Name:%CONTACTPHOTO To:file:///sdcard/Tasker/Pics/default.png] If [ %err = 1 ]
A7: Variable Set [ Name:%number To:|%NUMBER|]
A8: Send Intent [ Action:com.orbonis.gear.tasker.consumer.MESSAGE_HO ST Extra:GEAR_NUMBER: %number]
A9: End If

Element: Reply Text/TextEdit 5,212 310x40
A1: Variable Set [ Name:%BODY To:%new_val ]

Element: Send/Button 120,250 195x50 L:0,0 0x0 Label: Send
A1: Stop If [ %BODY !Set ]
A2: Variable Set [ Name:%number To:|%NUMBER|%BODY|%SPAM|]
A3: Send Intent [ Action:com.orbonis.gear.tasker.consumer.MESSAGE_HO ST Extra:GEAR_NUMBER: %number]
A4: Element Text [ Scene Name:Compose SMS2 Element:Reply Text Position:Replace Existing Text: ]
A5: Variable Clear [ Name:%BODY]

Element: Logs/Text 5,83 310x130

Element: Spam/Button 5,250 110x50 Label: Text Bomber
CLICK
A1: Variable Query [ Title:Spam # of times Variable:%SPAM Default:%SPAM]
LONGCLICK
A2: Flash [ Text:Spam reset ]
A3: Vibrate Pattern [ Pattern:0,100,50,100 ]
A4: Variable Set [ Name:%SPAM To:1]
Last edited by edwardsc005; 20th March 2015 at 04:09 PM.
The Following User Says Thank You to edwardsc005 For This Useful Post: [ View ]
18th March 2015, 12:02 AM   |  #127  
Member
Thanks Meter: 14
 
32 posts
Join Date:Joined: Sep 2011
Delete
Last edited by edwardsc005; 19th March 2015 at 03:44 PM.

Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes