[Q] Is it possible to create a picture widget that changes the picture randomly? - Zooper Widget General

Is it possible to create a widget that will draw images randomly from a designated folder. I've been searching to see if someone has done something similar to this but it looks like the closest I can get is using the images as an iconset although I still don't know how I would have Zooper pull the images randomly (I want to add to the folder occasionally). Is this something that I could do by adding in Tasker?
Any ideas?

I currently have an image widget on one of my homescreens and the way I do it is as follows:
I basically add each photo as a bitmap: So you add a bitmap module and then you navigate to the photo you want in your device gallery. After choosing your photo, you need to add advanced parameters that will control the bitmap opacity at a certain time during the day.
[bo][/bo] is used for bitmap opacity
#DH# is used for local hour during the day (0-23)
my conditional is set up as follows for my first photo.
[bo]$#DH#>=16&&#DH#<22?100:0$[/bo]
What this means is that if the current local time on my device is between the hours of 16 to 22 (4pm to 10pm) then set the bitmap opacity to 100%, else set it to 0%. You can theoretically set this up to have a max of 24 photos (one per hour) each day that continually loops. Mine is set up in intervals of 6 hours (4 photos total) but I plan on changing the values to allow for more.
The next one would be:
[bo]$#DH#>=22||#DH#<04?100:0$[/bo]
Notice I use an OR statement || versus an AND statement && because the value goes from 0-23 and if you used an && here the image would never display because of the conflicting conditional.
http://www.webermatters.com/blog/zooper-conditional-statements/
This is a good website that outlines conditional statements in ZW.
I'm assuming this is sort of what you are going for with your widget? It's not really "random" per se but it gets the job done. Not quite sure what you could do involving tasker.

greckia said:
I'm assuming this is sort of what you are going for with your widget? It's not really "random" per se but it gets the job done. Not quite sure what you could do involving tasker.
Click to expand...
Click to collapse
I was thinking about doing exactly this or possibly applying weather conditions to various pictures also. It doesn't really look like it's possible to add a random factor but this should do the trick.
Your steps are exactly what I needed.
Thanks

crios42 said:
It doesn't really look like it's possible to add a random factor
Click to expand...
Click to collapse
There is mathematical function you can use called rand...
Izzy Lamantia helped me out with this ...
The random function provides a number between 0*1, like 0.866390265. Let's say you had 10 pictures (named 1.jpg, 2.jpg, etc.) you wanted to randomize on the hour:
$#Dm#=0?(int(random()*10)$.jpg
So again, on every hour a random number will be generated, multiplied by 10, and return it as an integer 0.866390265 x10= 8.66390265, as an integer 8. 

chandlerweb said:
There is mathematical function you can use called rand...
Izzy Lamantia helped me out with this ...
The random function provides a number between 0*1, like 0.866390265. Let's say you had 10 pictures (named 1.jpg, 2.jpg, etc.) you wanted to randomize on the hour:
$#Dm#=0?(int(random()*10)$.jpg
So again, on every hour a random number will be generated, multiplied by 10, and return it as an integer 0.866390265 x10= 8.66390265, as an integer 8. 
Click to expand...
Click to collapse
So I would need to label the images: 1.png (I'm using png's), 2.png, 3.png, etc...?
Would the limit then be 10 images? If I wanted to use more than 10 images I could x 100 but then I'm guessing I would need to assign each image a range, if n >= 25 and n < 30 then x.png and so on. Can that be done?
Also, I'm a little unclear about how bitmap absolute path works. Is there a specific folder that I would need to put my bitmaps in? Looking at this example it seems that I can pick any folder I want.
It's awesome to hear that this can be done. I just need to work out the details now.

chandlerweb said:
$#Dm#=0?(int(random()*10)$.jpg

Click to expand...
Click to collapse
I was having some trouble getting this working but I finally found that there needs to be an extra set of parentheses.
$#Dm#=0?(int(random())*100)$ which give me a 2 digit number.
Now... I either have to pick 100 images (and label them 0-99, or is it 1-100?) or find a way to give the images a range.
If I have 2 separate widgets using the same parameters and drawing from the same folder, will the random number be the same or different in each of the widgets?

crios42 said:
I was having some trouble getting this working but I finally found that there needs to be an extra set of parentheses.
$#Dm#=0?(int(random())*100)$ which give me a 2 digit number.
Now... I either have to pick 100 images (and label them 0-99, or is it 1-100?) or find a way to give the images a range.
If I have 2 separate widgets using the same parameters and drawing from the same folder, will the random number be the same or different in each of the widgets?
Click to expand...
Click to collapse
Sorry for the delay in getting back to you
You would need 100 images and label them 1-100 if your multiplier is 100. You would need, say, 123 images and label them 1-123 if you multiplier is 123 i.e. $#Dm#=0?(int(random())*123)$
In my experience, the number generated is always different even if two random functions are performed at the same time although there is always the possibility that it will occasionally be the same.

I can't seem to get the widget working.
Here are the parameters I'm using $#Dm#=43?/sdcard/Pictures/Pics1/(int((random())*10)).png$.
Ignore the 43. Whatever time it is, I just add a minute so that I don't have to wait long to see if the widget will update.
I thought it might be the file path so I tried a few others:
/storage/sdcard0/Pictures/Pics1/
/emulated/0/Pictures/Pics/
Any ideas?

is it possible to create a picture
I had tried it many times but that does not work out

Not sure if OP is still wanting an answer to this or not. I'm still working on getting this perfect but hopefully this will help someone.
Create a folder on your sd card and put 10 jpg's in there titled 1.jpg through 10.jpg
Create a Zooper Widget and add a bitmap layer
do not choose an image, instead select Advanced Parameters and insert the following code
/sdcard/full path to image folder/$#Dm#>0?(int((random())*10)))$.jpg
If the above is correct then the example box should list /sdcard/full path to image folder/*.jpg
What does this do? If the minute is greater than 0 it will generate a pseudo-random number between 1 and 0. If you have set Zooper to update when the screen is off then you will want to replace the ">" with "=" so it only updates once an hour. You can make further adjustments by using Dh for hours rather than minutes. As stated above you can increase the images by multiplying by 100.
I wrote it like I did because I don't let Zooper update while the screen is off. If I changed the image on the hour it would likely not update the image because I would have to have my screen on at the beginning of each hour. As it is, it changes the image every 10 seconds or so whenever I have the screen on.
I am open to other modifications of this so I can keep Zooper configured to not update when the screen is off, and only change the images every 10 minutes or so.
Also, you may want a fallback image so you have something to display while you wait to whatever condition needs to be meet in order for Zooper to generate the random number.

SoldierOfCatan said:
Not sure if OP is still wanting an answer to this or not. I'm still working on getting this perfect but hopefully this will help someone.
Create a folder on your sd card and put 10 jpg's in there titled 1.jpg through 10.jpg
Create a Zooper Widget and add a bitmap layer
do not choose an image, instead select Advanced Parameters and insert the following code
/sdcard/full path to image folder/$#Dm#>0?(int((random())*10)))$.jpg
If the above is correct then the example box should list /sdcard/full path to image folder/*.jpg
What does this do? If the minute is greater than 0 it will generate a pseudo-random number between 1 and 0. If you have set Zooper to update when the screen is off then you will want to replace the ">" with "=" so it only updates once an hour. You can make further adjustments by using Dh for hours rather than minutes. As stated above you can increase the images by multiplying by 100.
I wrote it like I did because I don't let Zooper update while the screen is off. If I changed the image on the hour it would likely not update the image because I would have to have my screen on at the beginning of each hour. As it is, it changes the image every 10 seconds or so whenever I have the screen on.
I am open to other modifications of this so I can keep Zooper configured to not update when the screen is off, and only change the images every 10 minutes or so.
Also, you may want a fallback image so you have something to display while you wait to whatever condition needs to be meet in order for Zooper to generate the random number.
Click to expand...
Click to collapse
I did the above, but had to add an extra parentheses before the word "int" to get it to display properly in the example box.
/sdcard/full path to image folder/$#Dm#>0?((int((random())*10)))$.jpg
However, when I save and exit out of the Zooper, it still just shows the default "folder" icon. I have it pointing to 1-10.jpg in a folder called "test" on my internal SD. I also tried the code in the advanced parameters of an existing picture I had on my widget, and it didn't do anything either.

HA! Figured it out. What a dummy I am. You have to put the b tags first
[*b]/sdcard/full path to image folder/$#Dm#>0?((int((random())*10)))$.jpg[/b]
(without the asterisk I couldn't get it to show since it's the same code for "Bold" on the forum)

rachelm920 said:
HA! Figured it out. What a dummy I am. You have to put the b tags first
[*b]/sdcard/full path to image folder/$#Dm#>0?((int((random())*10)))$.jpg[/b]
(without the asterisk I couldn't get it to show since it's the same code for "Bold" on the forum)
Click to expand...
Click to collapse
If you have pictures 1-10 and you use random times 10, wouldn't the only picture that would get displayed be picture 10 (which is when random equals 1, times 10).
Or is the value for ((int((random())*10))) actually limiting the random numbers to be 1-10?

SchmilK said:
If you have pictures 1-10 and you use random times 10, wouldn't the only picture that would get displayed be picture 10 (which is when random equals 1, times 10).
Or is the value for ((int((random())*10))) actually limiting the random numbers to be 1-10?
Click to expand...
Click to collapse
I actually have 66 pictures and the number increases everyday, since they're pictures of my boyfriend and he's constantly sending me new ones... or we're taking new ones etc. LOL I just change the number it multiplies by as the pictures increase.
I'm not sure if number one gets displayed... I could however rename picture one to 67 so there's never a problem. Since there's so many its hard to tell.

rachelm920 said:
HA! Figured it out. What a dummy I am. You have to put the b tags first
[*b]/sdcard/full path to image folder/$#Dm#>0?((int((random())*10)))$.jpg[/b]
(without the asterisk I couldn't get it to show since it's the same code for "Bold" on the forum)
Click to expand...
Click to collapse
mate, i did following your code but in zooper widget, it only shown folder icon, i use .png picture, so this is correct, it must be jpg ?

Oohhlala said:
mate, i did following your code but in zooper widget, it only shown folder icon, i use .png picture, so this is correct, it must be jpg ?
Click to expand...
Click to collapse
Not sure I only tried it with .jpg
Sent from my SAMSUNG-SGH-I747 using Tapatalk

You should be able to do this with tasker/zooper integration. I have a weather radar image that I download via tasker. Due to how zooper buffers images I haev to change the filename each time I refresh the image. The new alternating path to the image is passed from tasker to zooper. First time is w1.jpg, next time is w2.jpg. This idea could be extended for images in a folder.

Related

[upd. Nov 17, 2008] hgToday & hgAgenda: Fingerfriendly calendars

11/17/08: Version 0.31 of hgToday
Bugfix
Added hgColors 0.3 config file in zip archive. This makes it possible to change the font size of the list, and the height of the individual list items.
11/10/08: Version 0.3 of hgToday
Updated to work with the latest version of Christec's framework
Rewritten list control (loosely based on KListControl)
Removed buttons on top, menus included in popup menu, moving to next/previous day through finger movement.
New popup menu is now scrollable with finger.
New datepicker, more fingerfriendly.
Skinning with bitmaps has been removed in order to reduce memory usage.
Colors can still be changed.
9/11/08: Version 0.2
Added the program hgColors to make it possible to customize all colors.
Added the option of seeing all appointments and all tasks together.
Bugfix for the calendar dialog (got stuck on the screen sometimes).
9/5/08:
Added hgAgenda to the files below. This is the standalone full screen version of hgToday. It also has some more images for skinning.
Also added some more screenshots.
Earlier:
hgToday
This is a small fingerfriendly plugin I've put together for my todayscreen. I use it as one of my views in my Homescreen++ setup (prev. BatteryStatus). It can also be used as a regular today plugin.
hgToday will show you the current appointments and all tasks not completed with a due date on or before today, or with a start date on or before today (i.e. all tasks that should be worked on).
The list can be scrolled with a finger.
If doubleclicked, it will mark the item completed.
To view the task, hold the finger long enough for item to be selected and popupmenu to show, tapping view will take you to the default calendar/task application for editing and viewing.
Scroll left or right for next/previous day.
Skinning
This can be done with hgColors. Just click on the various items, choose save, and restart hgToday.
Both list height and item height can be changed.
Font size can also be changed, although if too large, the day will be mixed with the description.
The file hgColors must be in the same directory as hgToday or hgAgenda.
Future plans:
More fingerfriendly editing, entering new items.
Update hgAgenda to 0.3.
+??
To install hgAgenda:
Just unzip the files to any directory - can be used on a storage card too.
To install hgToday:
Must be installed to main memory.
1) Uninstall previous version of "ChrisTec Managed Today Screen Item Framework" and hgToday.
2) Unzip and install the "ChrisTec Managed Today Screen Item Framework" (see separate copyright notice).
3) Copy hgToday.dll to the same directory where the ChrisTec Framework is installed (normally "Program Files\Managed Today Screen Framework").
4) Go into settings, Today, Items: and make sure the "Managed Items" is checked.
Thanks to dosfan for his KListControl (http://forum.xda-developers.com/showthread.php?t=333124)
I don't take any responsibility for the problems this program might cause on your device, but it seems to work for me on a smartphone running Microsoft Mobile 6.
I value comments, but can't promise anything,.
Hope it can be useful for other people.
Great software calendar .. thank you veru much for this release
any "working" screenshot please ?
Im not able to get working on Sprint Touch 6.1. I had the HGplugin showing in the settings/home/items. I then closed out and went back in and its gone. I have tried to reinstall a few times with no luck.
Screenshots
I'm sorry, but I didn't know that you had to have a url to post a screenshot. Therefore the small bmp file.
Installation
Csquared said:
Im not able to get working on Sprint Touch 6.1. I had the HGplugin showing in the settings/home/items. I then closed out and went back in and its gone. I have tried to reinstall a few times with no luck.
Click to expand...
Click to collapse
Sorry about your problems.
Did you try going into the registry to see that the height is correct? Do you have other plugins? Can you run the file hgToday.exe directly? Can you try to put a checkmark in the today settings for Managed items?
It doesn't work. The item doesn't appear in settings/home/items. I tried to open the executable and I get an error: Null reference exception.

			
				
dancer_69 said:
It doesn't work. The item doesn't appear in settings/home/items. I tried to open the executable and I get an error: Null reference exception.
Click to expand...
Click to collapse
Have behavior here. item not showing in today setting. launching the exe returns this error.
hgToday.exe
NullReferenceException
en Christec.WindowsMobile.TodayScreen.TodayScreenPluginForm.OnLoad(EventArgs e)
en System.Windows.Forms.Form._SetVisibleNotify(Boolean fVis)
en System.Windows.Forms.Control.set_Visible(Boolean value)
en System.Windows.Forms.Application.Run(Form fm)
en SampleTodayScreenItem.Program.Main()
updated plugin
It seems my app was based on an early version of "ChrisTec Managed Today Screen Item Framework".
So I've attached that version in my first post. That should the program run. I have had it on my device for about a month now.
However, I probably should upgrade my app to take advantage of the newer version of the framework. The reason I didn't do that in the first place, was because it used an exe file that could be run by itself. The newer version requires a dll file.
It works good on my Kaiser - thanks.
Screenshot? I can't see anything on that small 1x1 pic!
NotLutzik said:
Screenshot? I can't see anything on that small 1x1 pic!
Click to expand...
Click to collapse
Did you see post #8?
It's quite similar to the gslide file explorer (we use the same list control), except hgToday doesn't have to be full screen.
I'm also hoping to release a non-plugin version later today.
Feedback: ))
the viewing options of all appointment and all tasks and so on are wonderful. also the option to change the height..
the scrolling thing is VERY important and useful..
the gray background is heavy on the eyes... i'd make it compatible with the tsk.. that is, transparent.
an option to view all appointments+all tasks is important in my eyes... for day to day use..
thank you so much.. i'm using your thing instead of Calendar+ now
Thanks!
nir36 said:
Feedback: ))
the viewing options of all appointment and all tasks and so on are wonderful. also the option to change the height..
the scrolling thing is VERY important and useful..
the gray background is heavy on the eyes... i'd make it compatible with the tsk.. that is, transparent.
Click to expand...
Click to collapse
The color scheme is based on the system colors, i.e. the list takes it's color from the active caption color. I'm planning skinning in a future version. As for now, in order to have a different background when there is no selection, you can add an image file called noselect.png (similar to the select.png file) and the program will show that for the list items, instead of the current background. However, the app will use a lot more resources that way. That's why I'd like to make some configuration file to store colors and other stuff.
an option to view all appointments+all tasks is important in my eyes... for day to day use..
Click to expand...
Click to collapse
I'm not quite sure what you mean, because the program should show all appointments AND all tasks on the screen for today or other chosen days.
thank you so much.. i'm using your thing instead of Calendar+ now
Click to expand...
Click to collapse
Added hgAgenda, the full screen standalone version of hgToday.
This can be run as a separate program.
Also included some more screenshots.
See first post.
I should probably do some version numbering. Any ideas?
ajige said:
The color scheme is based on the system colors, i.e. the list takes it's color from the active caption color. I'm planning skinning in a future version. As for now, in order to have a different background when there is no selection, you can add an image file called noselect.png (similar to the select.png file) and the program will show that for the list items, instead of the current background. However, the app will use a lot more resources that way. That's why I'd like to make some configuration file to store colors and other stuff.
I'm not quite sure what you mean, because the program should show all appointments AND all tasks on the screen for today or other chosen days.
Click to expand...
Click to collapse
i meant having All appointments+All tasks... for all days... not just for one specific day.
and i see what you mean about the background. unfortunately my background is black
thanks
nir36 said:
i meant having All appointments+All tasks... for all days... not just for one specific day.
and i see what you mean about the background. unfortunately my background is black
thanks
Click to expand...
Click to collapse
With the way the program is written, that would not be possible. What can be done, is to have all the appointments first and then all the tasks, but I assume you mean you want it sorted by date. To accomplish that, I have to do a complete rewrite of the program.
Right now I am working on a settings app so that all colors can be easily configured by the user.
ajige said:
With the way the program is written, that would not be possible. What can be done, is to have all the appointments first and then all the tasks, but I assume you mean you want it sorted by date. To accomplish that, I have to do a complete rewrite of the program.
Right now I am working on a settings app so that all colors can be easily configured by the user.
Click to expand...
Click to collapse
even having tasks after appointments would be great.
and of course having it arranged by date would be even better, but i understand it can be hard to accomplish. thanks.
btw, it's very very useful and i'm enjoying it.
New version 0.2
nir36 said:
even having tasks after appointments would be great.
and of course having it arranged by date would be even better, but i understand it can be hard to accomplish. thanks.
btw, it's very very useful and i'm enjoying it.
Click to expand...
Click to collapse
New version with all appointments and all tasks on one screen.
Also skinning via separate program.
See more details in first post.

[TUT] A mini-tutorial on rearranging the Manila Home Screen

Rearranging the Manila Home Screen​
What do I need to know?
Manila uses few types of files: qtc, xml, mode9 and lua. First one is for graphics, second usually for different languages (although not only) and the two last ones are the ones we are interested in. Mode9 files contain information on position, visibility and other properties of almost every element on Manila tabs. Lua files contain different functions, used for animations, updating info and so on.
For editing the Home Screen we need the mode9 file - 1c684cd8_manila and the lua script - 25d04412_manila. You can find these files (from each Manila, starting from 1.0 and ending on 2.5) on this forum.
What tools do I need?
Editing mode9 files is quiet easy. You just have to run m9editor, open the file, make the changes you want and save it. Changing stuff in lua scripts is a bit more complicated, as you have to decompile it. Shorter scripts are easily decompilated by luadec, but some longer ones require us to correct errors. Fortunately, the lua script we have to change is easily decompilated (though there can be a problem with the if condition). To do this follow these points:
- copy luadec.exe and luac.exe to the folder you where you have the lua script (let's say it's c:\compacthome\mod\)
- press Windows Logo + R (or Start > Run) and type cmd
- go to the folder containing the lua script (in this case it's cd \compacthome\mod\)
- type luadec script_name > script_name.txt - where script_name is the script you want to decompile (for example 25d04412_manila) and script_name.txt is the name of the output file, which we will edit
- in case of errors you have to correct them (look for the lua decompiling tutorial by sztupy)
- once you have the script decompiled you don't need to do it again.
- open the output file and change whatever you want
- to compile the file just type luac -o script_name script_name.txt, where script_name is the file we want to have the script_name.txt compiled
What can I change?
When you open the mode9 file we want to edit, expand the tree and you'll see many sections called 'Object'. Below them there are few lines called 'Property'. What you can easily change is:
- Position - just change the value of X and Y (center position (X=0, Y=0) and axis are different for most of the objects - you have to test this)
- Visibility - True or False (sometimes you may have to change the size of a image to 0x0, so that it won't show never)
- Font
- Font Size
- Color of text in RGB format - if Property is not available, add it
In the 25d04412_manila script you can change positions of many objects in both portrait and landscape mode.
- TabsLeft - left part of the clock (animated)
- TabsRight - right part of the clock (animated)
- clock_tabs - background of the clock (pile of tabs)
- alarm_clock - alarm info and date
- NotifiCamera3D - notifications & appointments
- NotificationShiftY - shifting of appointments when changing to small clock
To change the position just modify the first two parameters of Vector3(X, Y, Z) - both CameraPosition.value and LookAtPosition.value.
How to save and test the changes in a fast way?
Open a cab creator (for example WinCE Cab Manager) and add the files you changed to /Windows. Save the cab, copy it to your device, install and reboot Manila. You can also copy manually the file, but I prefer the first way, because in case of any problems you can easily uninstall the cab and get the default Home Screen.
How to get the Home Screen working with Background4AllTabs?
Just open the 1c684cd8_manila file by m9editor, look for 'HomeBackground' and delete the whole paragraph which contains it (from <Object>Type="Group" to the next <Object>Type="Group").
- - -​
If you have any suggestions, propositions or ideas, please write them in this thread, I'll try to complete this tutorial, so it will be useful for everyone. Thanks!
i cannot come up with suggestions, but that tutorial is very nice on your side!
Although not actually about the home screen arrangement. I do think we need the information on how to patch the EXE for weather and especially non-HTC devices to be made public. The few people that know how to do it don't seem to want to SHARE that knowledge, which is damned frustrating!
Kamill, what an excellent idea. I'm looking forward to your tutorial. I wonder will it be for Manila 2.0?
Here are some ideas:
Change touch flo colour
Appointments for at least one week
Linking big clock with another application (similar to Ssmaho)
Changing soft keys names/applications
Changing font sizes/types
Changing date formats on appointments
I hope this doesn't make it too difficult (I think the second one is though for some Manila versions!)
UPDATE in first post - an early version of the mini-tutorial.
FloatingFatMan, unfortunately I don't know how to do it...
mitsi, thanks, I'll work on that.
Kamill, My question is what needs to be changed to get appointments in dates after tomorrow to appear? Do I need to edit both the mode9 and the lua script? Or is it just one of those? I'm willing to get my hands dirty to fix it.
The easiest way is to get the files from hallatore's mod for Manila 2.0 and compare them to the original. There are mainly 3 differences, you'll find them for sure. AFAIR all you have to change is in one script, you have to add an option to display the date, change the place from where appointments are being taken (poomappointments(TAB_Calendar) instead of poomappointments(TAB_Home)) and change the number of appointments in the for loop.
Hmm. Well I changed the TAB_Calendar and added the option to to display date. Those were easy. Finding the loop is harder. I forced A loop to go 5 times and I got 5 calendar events, but the ones past tomorrow were the default ones in the mode9 ("Review design comp (Dan's office)"). I did it in the InitializeFullAnimation function just below this if statement:
Code:
if l_15_15 > 5 then
l_15_15 = 5
end
So those items are not being updated from the calendar. Any ideas? Am I looking in the wrong loop?
Anyway you can post hallatore's mod de-compiled? I think I have the original, but when I use m9editor the lua has a lot of decompiled errors.
Here you go. Are you doing this on the Manila 2.1? I tried so many things to get this working, but with no success
how to change home tab
Hi, I have read all the posts here and in some other threads related, and I'm still confused
I did try to install the cabs posted, and it totally messed my home tab, so I had to hard reset every time (because uninstalling didn't fix it up).
All I want to have is this:
1. move the alarm notification on the upper-right corner (to cover or remove the ATT logo)
2. make the Call History to auto-hide if there is no missed call (or to delete it, if it is easier)
3. have more appointments visible (2-3) with the big clock, and to be able to flip the clock upwards in order to have even more appointments visible
4. when I click on the appointment, to open the Calendar (this is already possible, and I'd like to remain this way)
I apologize if this is a silly question: is this possible to be done only by editing some manila files, and if so, which ones and what should I modify?
I opened some manila files (e.g. 1c684cd8_manila) using notepad and m9editor.exe, and, honestly, I had no clue as to what should I do
I am sure that you guys know this stuff already, and it is very easy for you. If it's not complicated to explain it to me, please help me!
thank you very much
Kamill said:
Here you go. Are you doing this on the Manila 2.1? I tried so many things to get this working, but with no success
Click to expand...
Click to collapse
Thanks. I am trying for Manila 2.1. There's gotta be a way.
tatarasi said:
Hi, I have read all the posts here and in some other threads related, and I'm still confused
I did try to install the cabs posted, and it totally messed my home tab, so I had to hard reset every time (because uninstalling didn't fix it up).
All I want to have is this:
1. move the alarm notification on the upper-right corner (to cover or remove the ATT logo)
2. make the Call History to auto-hide if there is no missed call (or to delete it, if it is easier)
3. have more appointments visible (2-3) with the big clock, and to be able to flip the clock upwards in order to have even more appointments visible
4. when I click on the appointment, to open the Calendar (this is already possible, and I'd like to remain this way)
I apologize if this is a silly question: is this possible to be done only by editing some manila files, and if so, which ones and what should I modify?
I opened some manila files (e.g. 1c684cd8_manila) using notepad and m9editor.exe, and, honestly, I had no clue as to what should I do
I am sure that you guys know this stuff already, and it is very easy for you. If it's not complicated to explain it to me, please help me!
thank you very much
Click to expand...
Click to collapse
Here is the solution to all 4 requests, but it is for Manila 2.0, so be careful. Back-up first just in case. Your screen will then look similar to the one shown.
Been trying...
I've been trying for some time now to get more than today's and tomorrow's appointment's displayed in manila 2.1. I added in the code that Hallatore added (can be found in stupy's lua thread) but there seems to be something limiting the amount of days shown ahead (I hope is not limited by the manila.exe, but I think not).
As additional info, the lua file that use to be embedded in the Home.mode9 isn't any more and is named 53cc1e4f_manila for 2.1 manila and 652ae0f4_manila for 2.5 manila,
12
mitsi said:
Here is the solution to all 4 requests, but it is for Manila 2.0, so be careful. Back-up first just in case. Your screen will then look similar to the one shown.
Click to expand...
Click to collapse
This is exactly what I'm after.
Unfortunately, I tried that alternative and, again, it totally messes my TFLO, and I had to hard reset again.
What do you mean by Manila 2.0, is this the TFLO version (in Settings, I see that I have ver. 3.0 build 29946)?
thank you
Change Home tab display
Hi, thank you very much for your interest and trying to give me solutions for my request. It is amazing how people from different corners of the world are connecting and helping each other.
I presume that the file to work with is 1c684cd8_manila.
I opened that with m9editor 3.3.0.1. It's a lot of info there
Could you guys be so kind and give some clues as to what should I look for in order to change:
- the alarm notification - to move it on the upper-right corner
- the carrier logo - to delete it
- the Call History - to delete it
- the Appointments - to have at least 2-3 shown
Also, important clues as to what NOT to touch, in order to
- continue to be able to flip over the big clock
- continue to be able to open the Calendar when click on the appointment
thank you again
tatarasi said:
- the alarm notification - to move it on the upper-right corner
Click to expand...
Click to collapse
Change the X and Y in the 'Position' Property of these objects: AlarmClockOn, AlarmClockOff, AlarmTime.
tatarasi said:
- the carrier logo - to delete it
Click to expand...
Click to collapse
To the object 'OperatorLogo' add a property called 'Visibility' and change its value to False - if it won't work change it's height to 0 in the 'Size' property.
tatarasi said:
- the Call History - to delete it
Click to expand...
Click to collapse
The same as above, objects: MissedCall_SBar1, MissedCall_SBar2, MissedCallIcon, MissedCallText.
tatarasi said:
- the Appointments - to have at least 2-3 shown
Click to expand...
Click to collapse
You need to decompile the 53cc1e4f_manila script and find l_15_0.MaxShowCount and change the value of it to the desired one.
Kamill said:
You need to decompile the 53cc1e4f_manila script and find l_15_0.MaxShowCount and change the value of it to the desired one.
Click to expand...
Click to collapse
If only it was that easy... I've been trying all kinds stuff including what you suggest above. I have decompiled the 53cc1e4f_manila I'll attach it here (it's the one from yozgatg's r1.5),
12
I mean you CAN change the number of appointments, but in a range of 0 to 6 (5 with big clock). I've tried to get more appointments shown, but I failed...
Kamill said:
Change the X and Y in the 'Position' Property of these objects: AlarmClockOn, AlarmClockOff, AlarmTime.
To the object 'OperatorLogo' add a property called 'Visibility' and change its value to False - if it won't work change it's height to 0 in the 'Size' property.
The same as above, objects: MissedCall_SBar1, MissedCall_SBar2, MissedCallIcon, MissedCallText.
You need to decompile the 53cc1e4f_manila script and find l_15_0.MaxShowCount and change the value of it to the desired one.
Click to expand...
Click to collapse
Hi, Kamill,
Apologize for double posting, I am growing impatient feeling that I am so close to a solution
Regarding the Manila, I checked where you told me to, and I found out that I have TFLO 3D 1.2.37896.1_1813.6. Thank you.
Thank you for your advices, I already tried to remove the logo
- first, I added the <Property> Name=Visibility Value="False" - did not work
- then, I changed the Height=0 - still ATT was there
- lastly, I deleted the entire Object GLESSprite2D (which was above the "OperatorLogo" property - still no result
What do you think I am doing wrong?
Speaking of the number of appointments, I amazingly discovered that I do not have 53cc1e4f_manila file. What do you think that means?
thank you very much, again
Manila 1 is a bit different from 2.0 or 2.1, the 53cc1e4f_manila script is embedded in the 1c684cd8_manila mode9 file (one of those at the beginning).
AFAIK you can replace the logo file with a blank one (don't ask me which file is it, I don't know ). Or you can try to add a 'Position' property and move it out of the sight (but it may come back in some situations) - though I do not guarantee it'll work.
I hope you'll success in modifying the Manila 1 homescreen, I guess there is still a couple of people who use that version of TF3D.

Advanced Parameters Question How To?

How do I change the position of a module/item or item(s) within a widget, based on the day of the week? For example, something along the lines of this.. (can't remember exact variables so I'm just gonna use descriptions)
$#dayofweek#=Mon?Rect1positionChangesToXYandText2positionChangesToXW$
How do I do this correctly?
Thanks in advance!
-Ender
Sent from my SCH-I535
ender87i said:
How do I change the position of a module/item or item(s) within a widget, based on the day of the week? For example, something along the lines of this.. (can't remember exact variables so I'm just gonna use descriptions)
$#dayofweek#=Mon?Rect1positionChangesToXYandText2positionChangesToXW$
How do I do this correctly?
Thanks in advance!
-Ender
Sent from my SCH-I535
Click to expand...
Click to collapse
You'll have to assign separate parameters for both the modules. Let's say text 1 & 2.
Supposing you want to move text 1 to the extreme right after 5pm, enter this into the advanced parameters:
[x]$#DHH#>17?90$[/x]
I've assumed that your system clock follows 24 hour format, hence 17 for 5pm. You could make it suit yourself.
It'd be the same for the second element. Just change the axis and the value (90) to locate the edge of your widget.
Enjoy.
sent from my BatPhone.

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:

Weather dependent bitmaps

I'm new to zooper and have been customising a home screen for a couple of days. One thing I wanted to do was to display a different image for each weather condition (yahoo weather).
I figured out that I can do this by having multiple bitmaps overlaid on each other, one for each weather condition, with the alpha value set to 0 if the relevant weather condition isn't detected.
With not knowing too much about zooper just yet it struck me that this might be a bit of a heavy handed approach, with potentially up to 48 bitmaps in the widget (according to the yahoo weather condition codes XML I found) each with their own advanced parameters being monitored.
So I suppose my question is, am I going about this the right way and will it be a huge drain on resources?
After reading this thread it seems I was right to think it felt heavy handed.
From what I've read, the right way to go about this is to have one bitmap layer with advanced parameters that display each picture only if the specific weather conditions are true.
Example:
Code:
$#WCCOND#=mostly cloudy?(b)/storage/emulated/0/ZooperWidget/Bitmaps/BlueBeacon/cloudy.jpg(/b)$
$#WCCOND#=sunny?(b)/storage/emulated/0/ZooperWidget/Bitmaps/BlueBeacon/sunny.jpg(/b)$
NB: The round brackets in the above code (b) (/b) should actually be square brackets but the forum turns this into bold.
You could create an iconset instead, or grab an iconset from here http://forum.xda-developers.com/showthread.php?t=2084070 and replace the images with yours.
jimlahey said:
You could create an iconset instead, or grab an iconset from here http://forum.xda-developers.com/showthread.php?t=2084070 and replace the images with yours.
Click to expand...
Click to collapse
Thanks for that, I'll look into it. Is there any advantage to going the icon route? And does it matter that my images are jpg photos (eg. a cloudy sky rather than a cloud clip art)?
TheStretchedElf said:
Thanks for that, I'll look into it. Is there any advantage to going the icon route? And does it matter that my images are jpg photos (eg. a cloudy sky rather than a cloud clip art)?
Click to expand...
Click to collapse
An iconset is a lot easier to manage (use in different widgets, sharing etc) as it's just 1 zip file. And I believe jpg will work as long as you edit the image extensions in the iconset xml file.
jimlahey said:
An iconset is a lot easier to manage (use in different widgets, sharing etc) as it's just 1 zip file. And I believe jpg will work as long as you edit the image extensions in the iconset xml file.
Click to expand...
Click to collapse
Thanks. Looks like I'll be creating my first icon set tonight then
TheStretchedElf said:
Thanks. Looks like I'll be creating my first icon set tonight then
Click to expand...
Click to collapse
Godspeed.

Categories

Resources