[Q] Conditional Bitmaps - Zooper Widget General

Hello, Its possible to use bitmaps with conditioins, for example, if there's a missing call the bitmap change?

rogerhnn said:
Hello, Its possible to use bitmaps with conditioins, for example, if there's a missing call the bitmap change?
Click to expand...
Click to collapse
Define the premises of "bitmap change".
For example, as a part of my setup, whenever I receive a missed call, I have set a condition for my bitmap to "light up" like this:
- Add a Zooper widget to your homescreen > Add the Bitmap module you want for the missed call icon
- Set its normal opacity at 100
- Add this code to its Advanced Parameters:
Code:
$#SMCALLS#=0?[bo]#30ffffff[/bo]$
.
This will lead to the bitmap staying "dim" when there are no missed calls and "light up" when there are.
If you want to completely change the bitmap image, you can do that too within the Advanced Parameters. Here, for simplicity's sake, we will assume that you have a bitmap called "Image.png" in a folder called "Folder" on your Internal SD Card.
- Add a Zooper widget to your homescreen > Add the Bitmap module you want for the missed call icon
- In order to re-direct to a different bitmap when there are no missed calls, add this code to its Advanced Parameters: (without the space after /b)
Code:
$#SMCALLS#=0?[b]/storage/emulated/0/Folder/Image.png[/b ]$
- (Your path to your image on your device will be different so keep that in mind).
This will result in the no missed call icon and won't trigger any changes until you receive a missed call.
Let me know if I helped.

Rickav said:
Define the premises of "bitmap change".
For example, as a part of my setup, whenever I receive a missed call, I have set a condition for my bitmap to "light up" like this:
- Add a Zooper widget to your homescreen > Add the Bitmap module you want for the missed call icon
- Set its normal opacity at 100
- Add this code to its Advanced Parameters:
Code:
$#SMCALLS#=0?[bo]#30ffffff[/bo]$
.
This will lead to the bitmap staying "dim" when there are no missed calls and "light up" when there are.
If you want to completely change the bitmap image, you can do that too within the Advanced Parameters. Here, for simplicity's sake, we will assume that you have a bitmap called "Image.png" in a folder called "Folder" on your Internal SD Card.
- Add a Zooper widget to your homescreen > Add the Bitmap module you want for the missed call icon
- In order to re-direct to a different bitmap when there are no missed calls, add this code to its Advanced Parameters: (without the space after /b)
Code:
$#SMCALLS#=0?[b]/storage/emulated/0/Folder/Image.png[/b ]$
- (Your path to your image on your device will be different so keep that in mind).
This will result in the no missed call icon and won't trigger any changes until you receive a missed call.
Let me know if I helped.
Click to expand...
Click to collapse
Thanks for your help!
What I managed to do was to hide the icon if there's no calls using this:
[ox]$#SMCALLS#=0?500$[/ox]
So, if there's no calls it moves the icon 500 in the X axis, otherwise it will display it.
We need a thread only about advanced parameters! :laugh:

rogerhnn said:
Thanks for your help!
What I managed to do was to hide the icon if there's no calls using this:
[ox]$#SMCALLS#=0?500$[/ox]
So, if there's no calls it moves the icon 500 in the X axis, otherwise it will display it.
We need a thread only about advanced parameters! :laugh:
Click to expand...
Click to collapse
Sure, if it works for you, that's all you need. An alternative could be $#SMCALLS#=0?[bo]#00000000[/bo]$ which would achieve the same result except this one makes the bitmap transparent instead of moving it. Same difference, I guess you could say.
As far as the advanced parameters only thread goes, there is just so much potential and possibilities in the ways of using them that I don't think any thread could contain them all.
Having said that, this Q&A thread makes an attempt to fill a void in helping members at any level on their way to achieve their aim in Zooper.
Furthermore, this reference-only thread by the pretty awesome @kwerdenker lists a number of invaluable ready-made advanced parameters to be used as required.
Cheers.

Related

[Q] on tap internal action

Hi,
Is there a way to make some actions (like change the color of a shape or move a shape, hide a bitmap etc.) by taping on an object (bitmap, shape, etc.)
Thanks a lot
karlichon said:
Hi,
Is there a way to make some actions (like change the color of a shape or move a shape, hide a bitmap etc.) by taping on an object (bitmap, shape, etc.)
Thanks a lot
Click to expand...
Click to collapse
By internal means no, with the additional help of Tasker yes. If that is an option for you and you want some more details on the how just ask
kwerdenker said:
By internal means no, with the additional help of Tasker yes. If that is an option for you and you want some more details on the how just ask
Click to expand...
Click to collapse
Yes thanks a lot I Found a very powerfull way with Tasker !
1) Create a Task in Tasker :
- In Tasker, tab Task click "+"
- Gives a name
- Select lugin -> Zooper widget
- Click on the pen in Config bar
- In text field Variable ZW : Give a name to the Variable (ex: MyZooperVar)
- In text field Text ZW : Enter a value (ex: 2)
- Click the save icon
- Your variable must appears under Config section (ex: #TMyZooperVar# = 2
- Go back and select an icon (internal, blank icon for exemple)
- Go back, your task must appears in the list
2) Add an on tap action in zooper widget :
- Create a shape or a bitmap
- Click on "module on tap"
- select Shortcuts -> tasker -> "select your tak"
3) When you click on your bitmap, the tasker task runs and the variable #TMyZooperVar# should be equal to the value "2"
4) For exemple, in order to slide a cursor :
- Create a shape as a cursor
In this exemple, init_pos is the initial position of the shape and offset is the number of pixels to slide for each tab
- In Advanced section of the shape, enter : "[ox]$init_pos+(offset * #TMyZooperVar#)$[/ox]

[Q] Hide/Show Zooper notification widget

How do I make it so my Zooper Widget hides when I have zero missed calls and shows only when it has one or more missed calls?
Did a bit of browsing and found I would need Tasker for this, and that's where I stopped since its a lot to take in.
--------
Edit - After more browsing it seems I didn't actually need tasker. So instead Ill ask for help on how to hide an entire widget only when I have 1+ missed calls and hide when I have none. Didn't know about the advanced parameter section.
----------
Edit - At the moment I'm using a " $#SUSMS#<1?[oy]999[/oy]$ " to "hide" at the moment. Is there a better way to hide widgets than this? I need to still.be able to widget click them when hidden.
Shintroy said:
How do I make it so my Zooper Widget hides when I have zero missed calls and shows only when it has one or more missed calls?
Did a bit of browsing and found I would need Tasker for this, and that's where I stopped since its a lot to take in.
--------
Edit - After more browsing it seems I didn't actually need tasker. So instead Ill ask for help on how to hide an entire widget only when I have 1+ missed calls and hide when I have none. Didn't know about the advanced parameter section.
----------
Edit - At the moment I'm using a " $#SUSMS#<1?[oy]999[/oy]$ " to "hide" at the moment. Is there a better way to hide widgets than this? I need to still.be able to widget click them when hidden.
Click to expand...
Click to collapse
Is the module you are using to display the notification a Text/Rich text module or a bitmap module?
kwerdenker said:
Is the module you are using to display the notification a Text/Rich text module or a bitmap module?
Click to expand...
Click to collapse
Text. I have one for calls.and sms notifications. Here's an attachment to show what I have so far. The call widget is adjacent to the sms one and hidden correctly. I'm asking if there's a better way to hide the widgets. Maybe change the opacity instead of the x, y positions?
Shintroy said:
Text. I have one for calls.and sms notifications. Here's an attachment to show what I have so far. The call widget is adjacent to the sms one and hidden correctly. I'm asking if there's a better way to hide the widgets. Maybe change the opacity instead of the x, y positions?
Click to expand...
Click to collapse
Yes, use Advanced Parameters for color with Text, and write 00ffffff for example ( 00 is alpha level ).
Inviato dal mio GT-N7000 con Tapatalk 2
Shintroy said:
Text. I have one for calls.and sms notifications. Here's an attachment to show what I have so far. The call widget is adjacent to the sms one and hidden correctly. I'm asking if there's a better way to hide the widgets. Maybe change the opacity instead of the x, y positions?
Click to expand...
Click to collapse
Yes, controlling the opacity is the other possibility. For (Rich) Text and Rect modules you can control the color via the [c][/c] tags in advanced parameters. The color is defined via a 8 character string where the first two control the opacity of the color. So the modified version of the conditional you posted could look like this:
$#SUSMS#<1?[c]00ffffff[/c]$
Hmmm, It didn't work. Is there a issue with this? I have put it in advanced parameters and in the text area.
$#SUSMS#<1?[c]00ffffff[/c]$ <-- This shows this ---> [c]00ffffff[/c] in the preview window below. And the with nothing in the widget.
mistere372002 said:
Hmmm, It didn't work. Is there a issue with this? I have put it in advanced parameters and in the text area.
$#SUSMS#<1?[c]00ffffff[/c]$ <-- This shows this ---> [c]00ffffff[/c] in the preview window below. And the with nothing in the widget.
Click to expand...
Click to collapse
This conditional only controls the color of the module and should be put in the Advanced Parameter option. You then have to put the actual content of the module (i.e. #SUSMS#) into the Text option so there is anything on which the opacity can be controlled.

[Q] tasker bbcode color/size variables not updating

hello, i am relatively new to zooper, but I'm pretty good with tasker.
I'm creating a basic notification widget, and i have it sending and updating the notification numbers just fine, but I am lazy and i don't wan't to have to copypasta the color codes/font sizes 12 times whenever i change my mind (frequently).
I have a tasker widget called" Zooper Widget Vars" pushing these commands (via the Zooper Widget Pro Variable plugin) (brackets are obviously not in the code)
configuration #TZFLG# = 50 (large size for icons)
configuration #TZFSM# = 10 (small size for numbers)
configuration #TZFLGC# = #ffffffff (color for icons)
configuration #TZFSMC# = #ff66d5da (color for numbers)
And i just press play whenever i want to send the variables to Zooper.
in zooper, in a rich text module, I have:
[s=#TZFSM#][c=#TZFSMC#]#TWHATSAPPCT#[/c][/s]
and in another Rich text module I have:
[s=#TZFLG#][c=#TZFLGC#]f[/c][/s]
#TZFSM#,#TZFLG#,#TZLGC# and #TZFSMC#
#TWHATSAPPCT# updates just fine. Problem is, #TZFSM# and #TZFSMC# do not update the widget until #TWHATSAPPCT# changes. #TZFLG# and #TZLGC# do not change at all unless I manually change the letter icon and change it back, which is, quite frankly, a pain in the ass.
I have tried just sticking #TZFSM#,#TZFLG#,#TZLGC# and #TZFSMC# in an RT module without the BBcode around them, and their values do print out, so I know that Zooper is actually receiving them, but its just ignoring them when they are enclosed in BBtags.
In layman's terms, the widget will not redraw with the new color and size parameters unless the content that the bbcode is modifying changes. Ive spent about 2 hours youtubing and googleing and wiki-ing, and I've decided I'm a noob and should just ask for help.
thank you so much in advance for any assistance.
(Nexus 5 with the lollipop dev preview installed)
P.S. though I think that ZW Utilities is a lovely little tool, it does not solve the lack of size updates, so please do not direct me there.
digitalgraffiti said:
hello, i am relatively new to zooper, but I'm pretty good with tasker.
I'm creating a basic notification widget, and i have it sending and updating the notification numbers just fine, but I am lazy and i don't wan't to have to copypasta the color codes/font sizes 12 times whenever i change my mind (frequently).
I have a tasker widget called" Zooper Widget Vars" pushing these commands (via the Zooper Widget Pro Variable plugin) (brackets are obviously not in the code)
configuration #TZFLG# = 50 (large size for icons)
configuration #TZFSM# = 10 (small size for numbers)
configuration #TZFLGC# = #ffffffff (color for icons)
configuration #TZFSMC# = #ff66d5da (color for numbers)
And i just press play whenever i want to send the variables to Zooper.
in zooper, in a rich text module, I have:
[s=#TZFSM#][c=#TZFSMC#]#TWHATSAPPCT#[/c][/s]
and in another Rich text module I have:
[s=#TZFLG#][c=#TZFLGC#]f[/c][/s]
#TZFSM#,#TZFLG#,#TZLGC# and #TZFSMC#
#TWHATSAPPCT# updates just fine. Problem is, #TZFSM# and #TZFSMC# do not update the widget until #TWHATSAPPCT# changes. #TZFLG# and #TZLGC# do not change at all unless I manually change the letter icon and change it back, which is, quite frankly, a pain in the ass.
I have tried just sticking #TZFSM#,#TZFLG#,#TZLGC# and #TZFSMC# in an RT module without the BBcode around them, and their values do print out, so I know that Zooper is actually receiving them, but its just ignoring them when they are enclosed in BBtags.
In layman's terms, the widget will not redraw with the new color and size parameters unless the content that the bbcode is modifying changes. Ive spent about 2 hours youtubing and googleing and wiki-ing, and I've decided I'm a noob and should just ask for help.
thank you so much in advance for any assistance.
(Nexus 5 with the lollipop dev preview installed)
P.S. though I think that ZW Utilities is a lovely little tool, it does not solve the lack of size updates, so please do not direct me there.
Click to expand...
Click to collapse
Instead of entering the bbcode in the text field with the text did you try separating it out and entering it in the advanced parameters field.
jr67 said:
Instead of entering the bbcode in the text field with the text did you try separating it out and entering it in the advanced parameters field.
Click to expand...
Click to collapse
in the end i figured it out with putting all of the styling in the advanced params space and the content in the text area
thanks for your help!

[Q] the use of buttons?

Is it possoble to get me to press a bitmap and male ot shrink while making a different one grow?
Yes this can be achieved. With any type of toggle input you will need to create a Tasker task which will toggle a variable on or off. You can then output this variable to Zooper and use a conditional to act upon the variable state (in this case you would want to use the bitmap scaling function on each of the bitmaps) then set the module on tap element of both bitmaps to the task shortcut in order to activate it.
The speed at which this works would be dependant on your phone/tablet so it might not work particularly fast.
Is there a video for this? Im kinda confused but im understanding it a little more.
Sorry for not getting back to you sooner.
This isn't a video but should help you to create the toggle in Tasker: http://www.pocketables.com/2013/03/how-to-create-a-toggleable-task-in-tasker.html
After you have got that working you just need to add another action so press + in your task then select plugin, and then Zooper Widget Pro.
In configuration enter the Tasker variable in ZW Text (remember the %) and enter a name in ZW Variable which you want to use in zooper, this can be anything you want. The convention is to use all capitals for Zooper variables buy it is not necessary.
Once you have saved this you will see that Tasker has added #T to the start of your variable and another # at the end, this is what you will be using in zooper.
Exit from the task with the < icon in the top left corner until you are back at the task page. This is important as it saves your task and also you will not be able to access the task shortcut from Zooper (or any other app for that matter) as Tasker will still be in edit mode.
Right, in your zooper widget call up one of your Bitmaps and go to advanced parameters. Enter this code , changing the variable name to what you have chosen
PHP:
$#TTASK#=1?[s]50[/s]:[s]100[/s]$
This tells Zooper to display bitmap at 50% if #TTASK# is set to 1 or 100% otherwise
Go to module on tap, select the Task Shortcut from the shortcuts menu, then select your task from the list - It will probably prompt you to select an icon. Do that and you have finished that bitmap. Now repeat the parameters in the other bitmap but change =1 to =0 so it is reversed then you are done.
Hopefully I haven't missed anything but let me know if you encounter any problems.
I almost got it, when i tap the picture it just switches between hello and world its probly my tasker but ill show u a screenshot
Lstarz said:
I almost got it, when i tap the picture it just switches between hello and world its probly my tasker but ill show u a screenshot
Click to expand...
Click to collapse
You've misunderstood me a little there, probably my fault.
In Zooper configuration enter %Toggle as the ZWText. It need to be the variable you have already defined in tasker, otherwise you are telling tasker to output a variable that you are not setting.
Also, you can just put one zooper plugin activity after the End If instead of having two separate statements as Tasker will read this last and update then.
Dude the man it works now
When I'm done with the widget I'll tell you so u can see what I shud improve, ATM I have 2 five nights at Freddy's widgets posted if u wanna check them out
Yo, the doors work for the toggle, but I'm trying to make chika and bonnie pop up on screen after a certain time that they show up at the doors
So basically, can I make a timer that that is triggered by one bitmap showing up and when it goes to zero a different bitmap pops up?

[Q] Display bitmap at a certain time

I have 4 modules in 1 widget that all switch and display text at a different time. I'm using #DH# to determine the time, and complete string is:
Code:
$#DH#<=maxtime && #DH#>=mintime?message$
So for example, $#DH#<=11 && #DH#>=6?Good Morning$ would display "Good Morning" between 6am and 11am and so on. Is there a way I can edit this string in a new module to display a bitmap at that time? Or is there a way I can make my own bitmap "icon" set and have the bitmaps change whenever they reach a certain time just like the text?
Wrong thread
Mokum020 said:
I thought you were asking a different question, so I was looking into that, I will give you the answer/code anyway:
Code:
$#DH#>=5&&#DH#<12?message1$
$#DH#>=12&&#DH#<17?message2$
$#DH#>=17&&#DH#<21?message3$
$#DH#>=21?message4$$#DH#<5?message4$
These should be placed in the text field and as you can see the last one is different and I also changed <= to < for the end time otherwise you will get a double message at that time.
It's also possible to do this with a bitmap, the best way to do this is to place the bitmap offscreen when inactive and onscreen when active with the offset parameters:
Code:
[ox]$#DH#>=5&&#DH#<12?:1000$[/ox]
[ox]$#DH#>=12&&#DH#<17?:1000$[/ox]
[ox]$#DH#>=17&&#DH#<21?:1000$[/ox]
[ox]$#DH#>=21?:1000$$#DH#<5?:1000$[/ox]
These should be placed in the advanced parameters of the bitmap modules.
Click to expand...
Click to collapse
Oh thanks. I actually was able to figure out my first issue after doing some more research and tweaking, but your code is a lot cleaner than mine in the end. Sorry for switching it out like that.
And with the bitmaps, does having this many active at once effect the performance?
Wrong thread

Categories

Resources