Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,734,168 Members 51,253 Now Online
XDA Developers Android and Mobile Development Forum
View Poll Results: Are you interested in making or editing a CHT widget?
YES 82 95.35%
NO 4 4.65%
Voters: 86. You may not vote on this poll

[tutorial] How-To-Make-A-CHT-Widget

Tip us?
 
poyensa
Old
#141  
poyensa's Avatar
Forum Moderator / Recognized Developer - OP
Thanks Meter 2538
Posts: 3,108
Join Date: Apr 2010
Location: mi patria en mis zapatos
Quote:
Originally Posted by palokm View Post
Wednesday is the Slovak-STREDA-STR
ooppss ... sorry for my poor slovak so you havent changed the rest of the days ... in fact you can do what you like with the png files are you using WWE rom or slovak rom? if so, did you change the wednesday.png to streda.png?
 
palokm
Old
#142  
palokm's Avatar
Senior Member
Thanks Meter 142
Posts: 522
Join Date: Apr 2009
Location: Bratislava
Yes I renamed PNG
and edited by GIMP2 PNG
I use WWE ROM, but the Slovak translation
 
poyensa
Old
#143  
poyensa's Avatar
Forum Moderator / Recognized Developer - OP
Thanks Meter 2538
Posts: 3,108
Join Date: Apr 2010
Location: mi patria en mis zapatos
Quote:
Originally Posted by palokm View Post
Yes I renamed PNG
and edited by GIMP2 PNG
I use WWE ROM, but the Slovak translation
Thanks for confirming. I did also in Spanish and worked fine ... hope to see your nice PNGs ....
 
palokm
Old
#144  
palokm's Avatar
Senior Member
Thanks Meter 142
Posts: 522
Join Date: Apr 2009
Location: Bratislava
I would have a minor edits

because I got an English Slovak
 
palokm
Old
(Last edited by palokm; 5th October 2011 at 11:09 PM.)
#145  
palokm's Avatar
Senior Member
Thanks Meter 142
Posts: 522
Join Date: Apr 2009
Location: Bratislava
I do not know whether to understand

but what you create can also be used differently, but I would adjust it to 512x256
use this as a background for hours every day

I tried it with, but it is bad size 512x128

it works, just wants to adjust
Attached Thumbnails
Click image for larger version

Name:	Screen03.jpg
Views:	14
Size:	33.6 KB
ID:	741154  
 
Dunc001
Old
#146  
Dunc001's Avatar
Recognized Developer
Thanks Meter 1334
Posts: 2,610
Join Date: Apr 2010
Location: Hiding out south of the border...
Quote:
Originally Posted by rat_2665 View Post
For the next day function I made then a little lua snippet (attached)....

...With this value it should be possible to determine the sequence of the weekdays and also the highlighting of the actual day.
Hey Rat, long time my friend - hope you are well Wasn't that the code snippet you sent me which I could only figure out how to use if the current day was always in position 1 rather than the weekdays staying static and the current day moving (ie for Wednesday it would display WEDTHUFRISATSUNMONTUE and so on). Or did you have an idea for how to then match the current day with a string and then highlight the correct day string according to what 'today' is?
HTC One
ViperOne 6.2.1+ Beta Sense 6.0 with Kangaroo Kernel

HTC One Mini
Completely stock and staying that way...

Google Nexus 7 Gen 2
MIUI 5-09

First HTC HD2
Tytung 4.4.2 DataOnExt

Second HTC HD2
MIUI JB DataOnExt
 
RoryB
Old
#147  
RoryB's Avatar
Recognized Developer
Thanks Meter 680
Posts: 2,763
Join Date: Sep 2008
Location: Lexington

 
DONATE TO ME
Quote:
Originally Posted by rat_2665 View Post
I've collected some uses of the MusicHelper function in Sense Lua. I think it is the only way for file handling in Sense. Co0kie used it in CHT too. Maybe it answers partly to your questions 2 and 3.
Thank you I'll look these over
AT&T Samsung Galaxy S III running Quantum.4
Read About Me to see what I am working on & following like CHTS, Reminder and AppTask widgets, and CHT basic function tweaks. Also, Fixed CHT restarting when you have no tasks.
Mortscript | iniEditor | regEditor| MortScripts to toggle settings
Samsung Infuse 4G drowned. If you have one check out Scott's CM10 or CM10PA Firmware
ATT Fuze (HTC RAPH110) with Energy ROM: Energy.RAPHAEL.29022.Sense2.5.Cookie.2.0.Jul.06
HTC Wizard|See about me for my ROM collection and other work
 
RoryB
Old
#148  
RoryB's Avatar
Recognized Developer
Thanks Meter 680
Posts: 2,763
Join Date: Sep 2008
Location: Lexington

 
DONATE TO ME
So to kill a process I could use
Quote:
Shell_NavigateTo("\\windows\\dfTaskMgr.exe", "/kill processname.exe")
And a loop to check for file I could use

Code:
Filetimer = timer(0.5)
Filetmer:Stop()
Filetimer.OnElapsed:connect(function()
    if MusicHelper_FileExist("\\windows\\StartUP\\file name.lnk") then
      MusiceHelper_FileDelete("\\windows\\StartUP\\file name.lnk")
      if Filetimer then
        Filetimer:Stop()
        Filetimer = nil
      end
    else
      Filetimer:Start()
    end
end)
AT&T Samsung Galaxy S III running Quantum.4
Read About Me to see what I am working on & following like CHTS, Reminder and AppTask widgets, and CHT basic function tweaks. Also, Fixed CHT restarting when you have no tasks.
Mortscript | iniEditor | regEditor| MortScripts to toggle settings
Samsung Infuse 4G drowned. If you have one check out Scott's CM10 or CM10PA Firmware
ATT Fuze (HTC RAPH110) with Energy ROM: Energy.RAPHAEL.29022.Sense2.5.Cookie.2.0.Jul.06
HTC Wizard|See about me for my ROM collection and other work
The Following User Says Thank You to RoryB For This Useful Post: [ Click to Expand ]
 
poyensa
Old
#149  
poyensa's Avatar
Forum Moderator / Recognized Developer - OP
Thanks Meter 2538
Posts: 3,108
Join Date: Apr 2010
Location: mi patria en mis zapatos
Quote:
Originally Posted by palokm View Post
I do not know whether to understand

but what you create can also be used differently, but I would adjust it to 512x256
use this as a background for hours every day

I tried it with, but it is bad size 512x128

it works, just wants to adjust
I think i understand now. You are using as background of other widgets. It should be better to use Poy6BG v2 for that. Have a look to my sign.

Poy6BG v2 should accept png backgrounds but has to be some errors, at least its not worki.g well niw ... i will look deeper.
 
palokm
Old
#150  
palokm's Avatar
Senior Member
Thanks Meter 142
Posts: 522
Join Date: Apr 2009
Location: Bratislava
Yes I understand.
Only in this way would be the desktop clock changed automatically at 00:00

Poy6BG v2 ... uses this as a dark background for the widget
.................................................. ....................................

is a big problem converted to 512x256?

I tried to test

Tags
cht, lua, mode9, poyensa, widgets
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes