Welcome to XDA

Search to go directly to your device's forum

Register an account

Unlock full posting privileges

Ask a question

No registration required
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

Post Reply

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

OP poyensa

5th October 2011, 09:30 PM   |  #141  
poyensa's Avatar
OP Forum Moderator / Retired Recognized Developer
Flag mi patria en mis zapatos
Thanks Meter: 2,555
 
3,115 posts
Join Date:Joined: Apr 2010
More
Quote:
Originally Posted by palokm

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?
5th October 2011, 09:37 PM   |  #142  
palokm's Avatar
Senior Member
Flag Bratislava
Thanks Meter: 156
 
551 posts
Join Date:Joined: Apr 2009
More
Yes I renamed PNG
and edited by GIMP2 PNG
I use WWE ROM, but the Slovak translation
5th October 2011, 10:22 PM   |  #143  
poyensa's Avatar
OP Forum Moderator / Retired Recognized Developer
Flag mi patria en mis zapatos
Thanks Meter: 2,555
 
3,115 posts
Join Date:Joined: Apr 2010
More
Quote:
Originally Posted by palokm

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 ....
5th October 2011, 10:39 PM   |  #144  
palokm's Avatar
Senior Member
Flag Bratislava
Thanks Meter: 156
 
551 posts
Join Date:Joined: Apr 2009
More
I would have a minor edits

because I got an English Slovak
5th October 2011, 11:01 PM   |  #145  
palokm's Avatar
Senior Member
Flag Bratislava
Thanks Meter: 156
 
551 posts
Join Date:Joined: Apr 2009
More
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  
Last edited by palokm; 6th October 2011 at 12:09 AM.
5th October 2011, 11:49 PM   |  #146  
Dunc001's Avatar
Recognized Developer
Flag Hiding out south of the border...
Thanks Meter: 1,446
 
2,659 posts
Join Date:Joined: Apr 2010
More
Quote:
Originally Posted by rat_2665

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?
5th October 2011, 11:50 PM   |  #147  
RoryB's Avatar
Recognized Developer
Flag Lexington
Thanks Meter: 750
 
2,839 posts
Join Date:Joined: Sep 2008
Donate to Me
More
Quote:
Originally Posted by rat_2665

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
6th October 2011, 12:55 AM   |  #148  
RoryB's Avatar
Recognized Developer
Flag Lexington
Thanks Meter: 750
 
2,839 posts
Join Date:Joined: Sep 2008
Donate to Me
More
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)
The Following User Says Thank You to RoryB For This Useful Post: [ View ]
6th October 2011, 01:42 PM   |  #149  
poyensa's Avatar
OP Forum Moderator / Retired Recognized Developer
Flag mi patria en mis zapatos
Thanks Meter: 2,555
 
3,115 posts
Join Date:Joined: Apr 2010
More
Quote:
Originally Posted by palokm

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.
6th October 2011, 02:59 PM   |  #150  
palokm's Avatar
Senior Member
Flag Bratislava
Thanks Meter: 156
 
551 posts
Join Date:Joined: Apr 2009
More
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

Post Reply Subscribe to Thread

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

Advanced Search
Display Modes