Changing bitmaps - Zooper Widget General

Hi!
I need help with code which change a bitmap when i have missed calls..
Code looks correct but not working...
Code:
$#SMCALLS#>=1[b]storage/sdcard0/Pictures/icons/ff7f00/call.png[/b]:[b]storage/sdcard0/Pictures/icons/ffffff/call.png[/b]!#
I wrote this in advanced parameters in bitmap (storage/sdcard0/Pictures/icons/ffffff/call.png)
Can anybody help me?

I use another way, one Bitmap module with image1 and in the same position another Bitmap module with image2 with this code in Advanced Parameter
$#SMCALLS#>0?[bo]100[/bo]:[bo]00[/bo]$
If there is missed call opacity is100 else is 00.
and I've placed other 2 images in same position for unread mail and sms.
Last module have priority.
Inviato dal mio GT-N7000 con Tapatalk 2

Related

[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.

Is there a trick to updating a static image?

Greetings!
I have a Tasker task that goes out and grabs an image from the web. I save it with the same name in the same location each time. And I verified that it is different.
In Zooper I added a bitmap module and pointed at that image. The image never changes. Not even on a reboot of the phone.
So, what is the trick to get it to update?
This will be my new thing to learn today!
Thank for any help in advance!
Dave
Sent from my Nexus 5 using Tapatalk
MrBiggzz said:
Greetings!
I have a Tasker task that goes out and grabs an image from the web. I save it with the same name in the same location each time. And I verified that it is different.
In Zooper I added a bitmap module and pointed at that image. The image never changes. Not even on a reboot of the phone.
So, what is the trick to get it to update?
This will be my new thing to learn today!
Thank for any help in advance!
Dave
Sent from my Nexus 5 using Tapatalk
Click to expand...
Click to collapse
Saving it with the same name is actually the problem in this case. Zooper caches external images for its widgets and doesn't reload them after the initial load. If you want your image to change you have to use the same method Media Utilities uses for the coverart: Save the image under a different name on each save (append a random number or a timestap to the name), push the path to the new image as a variable to Zooper (lets say "CHANGINGIMAGE") and then use that variable as an advanced parameter on the bitmap module in your Zooper Widget as follows
HTML:
[b]#TCHANGINGIMAGE#[/b]
Since the name of the bitmap changes, Zooper recognizes it as a new bitmap and will reload it on the widget.
kwerdenker said:
Saving it with the same name is actually the problem in this case. Zooper caches external images for its widgets and doesn't reload them after the initial load. If you want your image to change you have to use the same method Media Utilities uses for the coverart: Save the image under a different name on each save (append a random number or a timestap to the name), push the path to the new image as a variable to Zooper (lets say "CHANGINGIMAGE") and then use that variable as an advanced parameter on the bitmap module in your Zooper Widget as follows
HTML:
[b]#TCHANGINGIMAGE#[/b]
Since the name of the bitmap changes, Zooper recognizes it as a new bitmap and will reload it on the widget.
Click to expand...
Click to collapse
Interesting! That variable would have the path to the image is what I'm understanding. The rest makes perfect sense!
Thanks @kwerdenker
It works .. but
It only updates when a minute flips. It doesn't change on request. I'm even displaying the Tasker Zooper variable and it changes but the image waits till the minute changes.
I there a way to make the widget refresh itself automatically??
MrBiggzz said:
It works .. but
It only updates when a minute flips. It doesn't change on request. I'm even displaying the Tasker Zooper variable and it changes but the image waits till the minute changes.
I there a way to make the widget refresh itself automatically??
Click to expand...
Click to collapse
[SOLVED]
Ok I feel like an idiot now! After staring at this for an entire weekend back and forth from other things. I finally licked it!
It's all about bitmap opacity
The Tasker part was just to supply a 0 or 1 as the toggle switch via the ON TAP event supplied by Zooper.
You have to have two bitmap modules in the exact same position to create the switch effect.
Code:
$#TMAPTOGGLE#=0?[b][bo]ff[/bo]/sdcard/ZooperWidget/Bitmaps/map.png[/b]:[b][bo]00[/bo]/sdcard/ZooperWidget/Bitmaps/map.png[/b]$
That above was my first module and below that I had one with the same code except I was testing for a 1 instead of a 0 and the bitmap name was different.
I would be nice it Zooper gave the mechanism to do this with out having to reach out to Tasker. But it works! :good::highfive:

[Q] is it possible for a conditional image?

hi guys im new to zooper im using the PRO version, i wonder if its possible for a bitmap conditional? like lets say change the IMAGE WIDGET when im connected to wifi and then change it again when im not? i can see that its possible using rich text but im not sure if its ok with images?
Also im doing the same for my email, if i have no email image 1 should appear but if there is image 2 should appear.
Thanks hope you get my point.
You can use advanced parameters. There is a tag for the images absolut path.
CopKiller76 said:
You can use advanced parameters. There is a tag for the images absolut path.
Click to expand...
Click to collapse
hey thanks for the quick response is there any tutorial for it? It would be awesome if theres a youtube tutorial for it
thanks again
Dont know. You could look in the MyColorScreen YouTube channel.
I use 4 image ( default, new mail, new SMS, new missed call ) by 4 modules in my fullscreen widget.
In the first module ( no notifications ) I put this in Advanced Parameters:
[bo]$#SUG^all#>0||#SUSMS#>0||#SMCALLS#>0?00:100$[/bo]
In the second module ( new mail ) I put this:
[bo]$#SUG^all#>0&&#SUSMS#=0&&#SMCALLS#=0?100:00$[bo/]
And then the same for module SMS and missed call, the images must be have the same aspect ratio and x,y position but may be have different scale.
Inviato dal mio GT-N7000 con Tapatalk 2
expinox said:
I use 4 image ( default, new mail, new SMS, new missed call ) by 4 modules in my fullscreen widget.
In the first module ( no notifications ) I put this in Advanced Parameters:
[bo]$#SUG^all#>0||#SUSMS#>0||#SMCALLS#>0?00:100$[/bo]
In the second module ( new mail ) I put this:
[bo]$#SUG^all#>0&&#SUSMS#=0&&#SMCALLS#=0?100:00$[bo/]
And then the same for module SMS and missed call, the images must be have the same aspect ratio and x,y position but may be have different scale.
Inviato dal mio GT-N7000 con Tapatalk 2
Click to expand...
Click to collapse
Thanks!
*im out of thanks (limited 8thks a day)

[Q] Conditional Bitmaps

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.

[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