yashsingh1/xdaforums huggingface dataset:
[Windows Mobile Apps and Games] schlork:
@meirh18

I am quite interested in your script. Nice but for the moment not working for me. Therefore some questions and remarks:

1. you should place iPhonetoday in skinfolder not in programs, for Miopocket it will be an additional skin

2. I get an error message at execute Line 2 Call_Variables_Common

3. All the icons are in subfolder battery that's clear, but where is the icon battery.png placed, which is picked in IPT's edit icon? In you previous script you based it in iPhoneToday folder.

4. Does the script work for you?

Edit:

After your edit script is perfectly working in Standard iPhone installation, but not in the adaption of LockscreenToday. What could be wrong

Include("Variables.mscr")
Call Variables_Common
##############

#######
#BatteryLevel.mscr
########
####Credits to Holdemdog and others for the original script upon this is based
#####################
#Change "path" for your path to the "Battery" folder.
#Change "nScreen" values for a different page (-1 is the bottom bar)
#Change "nIcon" values to the number of the icon (starting at 0)

While(TRUE)

#make sure that iPT can reload well
RegWriteDword ("HKLM","Software\LockScreenToday","reloadIcons",0)
sleep ( 1000 )

# Values:
path = SkinFolder\"LockScreenToday\battery\"
bat = BatteryPercentage ()
extpow = ExternalPowered ()
extpowold = IniRead(path & "Battery.ini", "","extpowold")
batold = IniRead(path & "Battery.ini", "","batold")
batnew = Floor(Format(BatteryPercentage() ,1)/10)*10
nScreen = -2
nIcon = 0
nScreen1 = 6
nIcon1 = 5

#Compare to previous level:
If(batold ne batnew OR extpow ne extpowold)

If (extpow = 1 and bat > 50)
batpng = C100

ElseIf (extpow = 1 and bat <= 50)
batpng = C50

Else
batpng = batnew

Endif

#Update Battery Icon(s) if different than previous

#Icon #1

RegWriteDWord("HKLM", "\Software\LockScreenToday\icon0", "nScreen", nScreen)
RegWriteDWord("HKLM", "\Software\LockScreenToday\icon0", "nIcon", nIcon)
RegWriteString("HKLM", "\Software\LockScreenToday\icon0", "strName", "Battery")
RegWriteString("HKLM", "\Software\LockScreenToday\icon0", "strImage", path & "battery" & batpng & ".png")

#Icon #2

RegWriteDWord("HKLM", "\Software\LockScreenToday\icon1", "nScreen", nScreen1)
RegWriteDWord("HKLM", "\Software\LockScreenToday\icon1", "nIcon", nIcon1)
RegWriteString("HKLM", "\Software\LockScreenToday\icon1", "strName", "Battery")
RegWriteString("HKLM", "\Software\LockScreenToday\icon1", "strImage", path & "battery" & batpng & ".png")

#Reload:
RegWriteDWord("HKLM", "\Software\LockScreenToday", "reloadIcon", 1)
EndIf

#Record current setting for comparison
IniWrite(path & "Battery.ini", "","batold", batnew)
IniWrite(path & "Battery.ini", "","extpowold", extpow)

#Repeat after 2.5 minutes (150,000 milliseconds)
Sleep(600)
EndWhile
[Windows Mobile Apps and Games] meirh18:
1. OK

2. That shouldn't happen if the script is in the scripts folder of MP.

3. You don't need the battery.png in the new version. It uses the original icons. This saves power by avoiding all the copying.

4. Yes.

I have edited the script again. This third version should be more efficient and use less power.

It works for me with Lockscreen today. You need to set nScreen1 to -2 and the icon to 1 (if it is the second icon, like in Osprey00's version.) Try the newer version.

EDIT: I just realized that it only works after the script runs while LockscreenToday is open. When LockscreenToday is first launched it reads from its icons.xml file which apparently is not being updated, even when I set the variable to 2 (write to xml). i'll have to see what can be done.

In order to properly test if its working, you should always delete the file battery.ini in the battery folder. This forces the script to refresh the icons. Otherwise, it will only refresh when the battery drops to the next 10% level, or the external power is plugged in.
[Windows Mobile Apps and Games] meirh18:
LockscreenToday BatteryLevel Script

Ok - I have tested the script now and posted the newest version in the original post. It should now work with LockscreenToday, without messing up the top bar in iPt. In order to have lockscreentoday display the correct icon right away when it loads, you will need to launch with the following script (MP users that want to use the other features of the script can remove the commenting before those lines) Regular users should delete the first three lines of the script:

#ErrorLevel("off")
Include("Variables.mscr")
Call Variables_Common
##############

#Kill("Minibar.exe")

Run(ProgramsFolder\"iPhoneToday\LockscreenToday\LockScreenToday.exe")

#######
#BatteryLevel.mscr
########
####Credits to Holdemdog and others for the original script upon this is based
#####################
#Change "path" for your path to the "Battery" folder.
#Change "nScreen" values for a different page (-1 is the bottom bar)
#Change "nIcon" values to the number of the icon (starting at 0)

# Values:
path = ProgramsFolder\"iPhoneToday\Battery\"
bat = BatteryPercentage ()
extpow = ExternalPowered ()
extpowold = IniRead(path & "Battery.ini", "","extpowold")
batold = IniRead(path & "Battery.ini", "","batold")
batnew = Floor(Format(bat ,1)/10)*10

#Icon Position(s) - Must be set manually:
nScreen = -1
nIcon = 6
nScreen1 = 6
nIcon1 = 5

##Icon #3 for LockscreenToday:
nScreen2 = -2
nIcon2 = 1

#Determine new icon:
If (extpow = 1 and bat > 50)
batpng = C100

ElseIf (extpow = 1 and bat <= 50)
batpng = C50

Else
batpng = batnew

Endif

#make sure that iPT can reload well
RegWriteDword ("HKLM","Software\iPhoneToday","reloadIcons",0)
sleep ( 1000 )

#Update Battery Icon(s):

#Icon #1

RegWriteDWord("HKLM", "\Software\iPhonetoday\icon0", "nScreen", nScreen)
RegWriteDWord("HKLM", "\Software\iPhonetoday\icon0", "nIcon", nIcon)
RegWriteString("HKLM", "\Software\iPhonetoday\icon0", "strName", "Battery")
RegWriteString("HKLM", "\Software\iPhonetoday\icon0", "strImage", path & "battery" & batpng & ".png")

#Icon #2

RegWriteDWord("HKLM", "\Software\iPhonetoday\icon1", "nScreen", nScreen1)
RegWriteDWord("HKLM", "\Software\iPhonetoday\icon1", "nIcon", nIcon1)
RegWriteString("HKLM", "\Software\iPhonetoday\icon1", "strName", "Battery")
RegWriteString("HKLM", "\Software\iPhonetoday\icon1", "strImage", path & "battery" & batpng & ".png")

#Icon #3 for LockscreenToday

RegWriteDWord("HKLM", "\Software\iPhonetoday\icon2", "nScreen", nScreen2)
RegWriteDWord("HKLM", "\Software\iPhonetoday\icon2", "nIcon", nIcon2)
RegWriteString("HKLM", "\Software\iPhonetoday\icon2", "strName", "")
RegWriteString("HKLM", "\Software\iPhonetoday\icon2", "strImage", path & "battery" & batpng & ".png")

#Reload:
RegWriteDWord("HKLM", "\Software\iPhonetoday", "reloadIcon", 1)

#Record current setting for comparison
IniWrite(path & "Battery.ini", "","batold", batnew)
IniWrite(path & "Battery.ini", "","extpowold", extpow)

##############

#Sleep(2000)

#Run(ProgramsFolder\"off.exe")

#While(ProcExists("LockScreenToday.exe"))
#Sleep(500)
#EndWhile

#CallScript(ScriptsFolder\"MinibarExpand.mscr")
[Windows Mobile Apps and Games] j101399j:
@meirh18;

Don't forget there is a thread for mortscripts for iPT 1.4+ here: http://xdaforums.com/showthread.php?t=638120

I do not mind it here, I just think it is not getting viewed as much as it could. When you add it, PM me and I'll add it to the OP.
[Windows Mobile Apps and Games] meirh18:
Here it is:

New Battery Level Script
[Windows Mobile Apps and Games] jayleeds:
Mail Bubbles, Icon Request

First, I'd like to say this is a great app! I am really enjoying it and having fun setting it up to my liking.

1) Is there a way to get the icon bubble to tell you how many unread mails are associated with each of the "other" e-mail accounts individually?

Right now I have an icon set up of for Outlook/Sync mail with a bubble that indicates unread e-mails. I also have separate icons set up for Yahoo!, Hotmail, and GMail accounts individually, but no bubble indicator associated. Then I have an e-mail icon set up with a bubble that will tell me the total number of unread e-mails for all accounts.

This is okay, but knowing how many unread e-mails are in each account would be better.

2) Is there a way to set up an icon using a shortcut that will open the HTC weather tab from TouchFlo 3D? I have a US Cellular HTC Touch Pro (1).

3) Can anyone point me to 94x94, .png type icons for the following APPs/services?

Microsoft Reader

Mobile Micromedex (or something Rx/medical)

mobiletag

Omarket

hdWobble

Thanks in advance for any help!
[Windows Mobile Apps and Games] jjdavola:
Sorry for posting here.
[Windows Mobile Apps and Games] SenorZorro:
Thx for this great job. IPT works fine for me.

Anyway, I can't get the bubble appointments. What do I do wrong ? Is it because I use a french smartphone ?

I use the standard icon, with the Calendar & Appointments "tag". The bubble "icon" is correctly set too (notify one). Infortunately, it doesn't work ! And only for the calendar. The sms & unread messages works well...

In the today option, I can see my appointments...

So, what's wrong ?

Another weird thing, but not important for me : for some zoom factors, the wallpaper is stangely "sloped".

Best regards.
[Windows Mobile Apps and Games] chinobis:
I installed the cab, uninstalled it, and it took my manilla & cookie tabs away. how can i recover them?

Edit: found it :)
[Windows Mobile Apps and Games] lorier:
Hi,

Thanks to all the Developpers of IphoneToday and contributors !

It works like a charm.

Perhaps, you can add in the FAQ a link to the go2contact tool

xdaforums.com/showthread.php?t=367332

It help to show a contact card with the contact name in parameter :

go2contact.exe "Doe, John"

I searched all over the web before finding it !

Bye!
[Windows Mobile Apps and Games] taospirit:
hello , very good prog, i have a request, is there a parameter with .exe version to open iPT at a specific page (for exemple begin on page 2)?

thx
[Windows Mobile Apps and Games] j101399j:
Yes and no, you may be able to create a shortcut (*.lnk) file that when it opens iPT, it sets the goto command to that page, or if you use Mortscript, I'm sure there is a way to do it. Since I don't have my kaiser anymore, except when traveling, check out the mortscript thread (linked in the FAQ's) to see if they can create one for you

Thank you... Added
[Windows Mobile Apps and Games] taospirit:
" you may be able to create a shortcut (*.lnk) file that when it opens iPT, it sets the goto command to that page"

sorry i don't understand what U mean... :(
[Windows Mobile Apps and Games] j101399j:
No problem, I was really thinking out loud;

I grabbed my phone and will play with it today. A "*.lnk" file is a shortcut, like any shortcut on your computer but for windows mobile. You can add commands and things in the shortcut to make the program being opened do something. I'm hoping to have the shortcut open iPT.exe and when it does request that iPT also opens to page whatever. If I get it working, I'll post the result here for you.
[Windows Mobile Apps and Games] taospirit:
ok thx j101399j i know what is a .lnk :) but what i don't understand is how can u make what u said. i don't know parameters of iPt...
[Windows Mobile Apps and Games] j101399j:
still working on it; I was hoping I could pass one of the executable commands into iPT.exe (like when you create an icon with the executable of --goto:2) but that is not working yet. As soon as I get it, i'll post it
[Windows Mobile Apps and Games] taospirit:
thx good luck ;)
[Windows Mobile Apps and Games] j101399j:
Ok I can't get it to work; I'll keep working on it and will post if I am successful. In the mean time I would check with the mortscripters to see if they have any ideas.
[Windows Mobile Apps and Games] jigners:
it would be a milestone if :D

- a music icon can be linked to open HTC Music:)
[Windows Mobile Apps and Games] j101399j:
What buttons and/or menu selections do you choose to get to the music?

For example for media player in my multimedia folder has this executable:

"\Windows\Start Menu\Programs\Multimedia\Media Player.lnk"

Or do you have to press a button to get to it? There should be a program link that you cabn direct an icon to.
[Windows Mobile Apps and Games] cabello80:
Noob question Icon to website

tried reading the directions for this in post 4 but it all looks chinese to me... could anyone help me with this? :confused:

thanks!
[Windows Mobile Apps and Games] Ravensysteam:
I just installed it after seeing it somewhere else in this forum and its really great, not that fashionable but the RAM-Management.. WOW! Rly great!

@cabello what exactly is your problem? Cant you find the Downloadlink or what?
[Windows Mobile Apps and Games] cabello80:
no, i have it installed ok...post 4 under advanced functions it describes how to set a website link as an icon....hoping to get help with that.

Thanks
[Windows Mobile Apps and Games] michoob:
@cabello80: you really don't help us helping you as you don't say what is your problem. Don't you know where to put the website link? Look into the file icons.xml.
[Windows Mobile Apps and Games] j101399j:
Create a new icon; set the executable to your web browser (example: "\windows\start menu\programs\Internet.exe" if yours is called that). Then set the parammeter to the web site (example http://xdaforums.com)

Now when you press the icon it will load the web browser and then goto that website.
[Windows Mobile Apps and Games] blastman:
Hey guys,

Just starting using iphone today and I'm very happy with the results.

Theres a few things that I'd like to do but I'm unsure on.

1 - I have a twitter app installed but have noticed that when i create an icon for it there is no 'unread/new tweats' in the type field. Do we know if this is something that will be added later??

2 - I'm looking for a picutre/album app to replace the boring wm one. any ideas?? Oh, will also need a iphone style icon.

Cheers in advance guys :)
[Windows Mobile Apps and Games] j101399j:
That would need to be programed into the iPT program and not something that easy to do without that

not sure on this one since I don't use WM much anymore, sorry
[Windows Mobile Apps and Games] blastman:
arh ok, cool. Thanks for the reply.

One more question if you dont mind...

I'd like to have a settings icon (already have .png file) that when pressed opened the \windows\start menu\settings so I can then browse all the wm settings apps.

Currently the only way i can do this (that i know of) is to use a file explorer and pass the settings path as a parameter but that looks rubbish.

Is there a way of creating a new menu? or maybe a hidden page that isn't accesable by scrolling left or right from the home screen but can be openned via a icon press??

Thanks in advance :)
[Windows Mobile Apps and Games] jaskiratsingh:
You can create a shortcut and execute the attached file. This will open the settings for you.

PS: change the file extension to exe from txt
[Windows Mobile Apps and Games] blastman:
Perfect, thanking you :)
[Windows Mobile Apps and Games] Televinken:
I hope this hasn't been answered before;

from what I remember in previous versions of IPT, it

was possible to have one single icon for all accounts

(email, sms, mms & so on), instead of a separate one

in order to get the little bubble showing new emails &

sms/mms, like it is in the present version. The setting

"unread total email" also used to cover new sms & mms.

Am I failed by my memory, or has this possibility gone?

Thanx in advance, for any input You would like to share.

:confused:
[Windows Mobile Apps and Games] nokiadashi:
How to backup Iphonetoday icons and settings

Hey,thanks for this excellent UI for my HTC pro2!

I can not believe this is freeware! it's worth at least as much price tag as SPB Mobile Shell.

I feel iPhoneToday's fingerprint is much lighter than SPB Mobile Shell,Now it think SPB Mobile Shell is facing serious competition from iPhoneToday!

If iPhoneToday can add the following three features, I think i will forget about SPB Mobile Shell altogether:

1. add a folder in which we can put program shortcuts,in SPB Mobile Shell it's called Favorite(under Launcher); In iPhoneToday,we only can place program shortcuts in desktop only.

2. enable icons to be placed in anywhere in desktop,I tested this newest version iPhoneToday v1.5.3 (June,24,2010),the freedom to place icons is still limited,the icons are automatically sticked together in rows.

3. backup and restore settings and icons. there is none, imagine how headache next time if we install newer version or reinstall the iPhoneToday.

But the good news is that we can manually backup both icons and settings, the files you should backup is \Program files\iPhoneToday\icons.xml and settings.xml.

Copy both icons.xml and settings.xml in storage,after reinstallation,copy them into \Program files\iPhoneToday\,replace the original ones.

Then have a soft rest. Done!
[Windows Mobile Apps and Games] xep624:
[problem solved]
[Windows Mobile Apps and Games] nokiadashi:
iPhoneToday language change

Hi iPhonetoday is amazing!

its simpler design and much less fingerprint(ram consumption etc) than SPB Mobile Shell,now iPhoneToday is my main UI for my HTC Pro2.

By the way,anyone knows how to change the language? I want to make Chinese and Malaysia version for my hometown folks.

I downloaded Wince cab manager,and defiled iPhoneToday-1.5.4-wm.cab,but which file contains language?

settings.xml?iPhoneToday.dll?Setup.dll?

I cannot find anything like lang.txt.

Really clueless,anyone got an idea? :confused:
[Windows Mobile Apps and Games] djsolidsnake86:
i'm searching for a way to show in the icon calendar only the today appointments (in the number)
[Windows Mobile Apps and Games] Duramax:
Any way to create an icon to start/stop [or at least go to the program the wifi hot spot?
[Windows Mobile Apps and Games] Luroco:
TopBar?

Hello,

Is there anyone that knows how to use the TopBar under options>screen ?

I tried to get there but I have no idea.

What does it do?

Thanks.
[Windows Mobile Apps and Games] chelbr:
to enable Top bar: create/move/edit an icon and place it on Screen -2.
[Windows Mobile Apps and Games] jchaidez:
hi just stumbled across this app today and i like it alot...... one question though is there a way to link one of the icons to the people widget thats found on the touch flo???? its like a favorites and it really came in handy to me.... or is there another solution to this that you guys can recommend?
[Windows Mobile Apps and Games] michoob:
I have already answered to this question here, but here it goes again:

As you said, it is on the touch flo app.

You don't have a contact feature in iPhoneToday.

But you can create a link to a phone number, and then an icon in iPhoneToday that will run this link with any picture you want.

Please search for "How to create a link to a phone number" in the FAQ.
[Windows Mobile Apps and Games] jchaidez:
Sorry about asking a question that was posted. I had figured it out using icontact.

I dont know if this has been ask but is there a parameter to access the music player and the album that was on the touch flo app?
[Windows Mobile Apps and Games] ALCAMJI:
Could someone eupload this file? Tenuis_Repacked.theme.zip

I´ve search it on google but it only gives me that link...
[Windows Mobile Apps and Games] michoob:
2uk3y, I don't think tito12 has a process called BtSync.exe, but just a script BtSync.mscr that just toggles the bluetooth and ActiveSync.

I would rather use a registry status entry that would give something like that:

If(RegRead("HKLM", "Software\Mort's MortScript\tito12", "BtSyncStatus"))
#PUT HERE CODE TO TOGGLE BLUETOOTH AND ACTIVSYNC OFF
RegWriteDword("HKLM", "Software\Mort's MortScript\tito12", "BtSyncStatus", 0)
Else
#PUT HERE CODE TO TOGGLE BLUETOOTH AND ACTIVSYNC ON
RegWriteDword("HKLM", "Software\Mort's MortScript\tito12", "BtSyncStatus", 1)
EndIf

But the best would be checking for Bluetooth and ActivSync status in the OS registry values, so you don't even need to add your own status values...

OR, you could just call in your MortScript script a program that toggles Bluetooth (like VJVolubilis), and another one that toggles ActiveSync (don't know if it exists, but you should be able to find a registry key that gives you some information on the ActiveSync status).
[Windows Mobile Apps and Games] tito12:
Hi Michoob

Thanks for the answer, indeed i use this mscr:

Run("\Windows\Start Menu\Programs\ActiveSync.lnk")

Sleep (2000)

SendRightSoft()

SendUp()

SendCR()

While(ProcExists("repllog.exe")=TRUE)

sleep(2000)

EndWhile

If (ProcExists("repllog.exe")=FALSE)

Run("\Program Files\Small Apps\btonoff.exe")

EndIf

The If function works after I manually turn ASync off, so how can I make the same button turn off Async?
[Windows Mobile Apps and Games] michoob:
Such a loop is pretty ugly and battery consumptive, isn't it?

Why this loop?

Can't you just toggle Bluetooth on/off?

Can't you turn off ActiveSync in a similar way as you SendRightSoft, SendUp and SendCR commands?

OR, as suggested by 2uk3y, if repllog.exe is your ActiveSync proc, couldn't you just kill it?
[Windows Mobile Apps and Games] tito12:
ASync.exe creates 4 processes, one of them is repllog, I did manage to kill it but didn't try to kill all of them separately. I'll do it and tell you if it's Ok.

As for the loop it's prob a fossil from an old copy/paste:o

Edit: When I remove "while" Bt stays on after disconnect from Async

2- Can you tell me how to add the shut all function when I press the button a 2nd time or to tell the script to wait until I press this button in order to shut all?

Thanks
[Windows Mobile Apps and Games] tito12:
So here I am with 2 working scripts

1 BtsyncON:

Run("\Windows\Start Menu\Programs\ActiveSync.lnk")

Sleep (2000)

SendRightSoft()

SendUp()

SendCR()

2 BtsyncOFF:

Kill("\Windows\repllog.exe")

Kill("\Windows\maapp.exe")

Kill("\Windows\rapiclnt.exe")

Kill("\Windows\udp2tcp.exe")

Run("\Program Files\Small Apps\btonoff.exe")

How do I combine them ?

Edit: Ok, solved! I created a 3rd script with an IF/Else function

If (ProcExists("repllog.exe")=FALSE)

Run("\Program Files\Small Apps\BtSync1.mscr")

Else

Run("\Program Files\Small Apps\BtSync2.mscr")

EndIf

Thank you and 2uk3y for putting me in the right direction :-)
[Windows Mobile Apps and Games] michoob:
You could try something like that:

#ActiveSync toggle on/off
If (ProcExists("repllog.exe"))
Kill("\Windows\repllog.exe")
Kill("\Windows\maapp.exe")
Kill("\Windows\rapiclnt.exe")
Kill("\Windows\udp2tcp.exe")
Else
Run("\Windows\Start Menu\Programs\ActiveSync.lnk")
Sleep (2000)
SendRightSoft()
SendUp()
SendCR()
EndIf

#Bluetooth toggle on/off
Run("\Program Files\Small Apps\btonoff.exe")

I would also try to avoid the Sleep, by trying the following one:

#ActiveSync toggle on/off
If (ProcExists("repllog.exe"))
Kill("\Windows\repllog.exe")
Kill("\Windows\maapp.exe")
Kill("\Windows\rapiclnt.exe")
Kill("\Windows\udp2tcp.exe")
Else
Run[B]Wait[/B]("\Windows\Start Menu\Programs\ActiveSync.lnk")
SendRightSoft()
SendUp()
SendCR()
EndIf

#Bluetooth toggle on/off
Run("\Program Files\Small Apps\btonoff.exe")
[Windows Mobile Apps and Games] tito12:
You mean ONE script? It would be more elegant :D

I will try it right now!

Edit:

1st one works well, 2nd only runs Bt, another press launches Async, so it probably needs the sleep :)

Now 1 last thing, how to get rid of the bubble that shows cradled? it stays on after I disconnect. It disappears only when I disconnect the traditional way.
[Windows Mobile Apps and Games] michoob:
Wow, quite hard to follow you tito12, with all your edits ;).

Yes, I meant you could do it with just one script.
[Windows Mobile Apps and Games] tito12:
You're right, I should open a new post. Can you pls read the last edit ;)
[Windows Mobile Apps and Games] michoob:
Try this:

#ActiveSync toggle on/off
If (ProcExists("repllog.exe"))
Kill("\Windows\repllog.exe")
Kill("\Windows\maapp.exe")
Kill("\Windows\rapiclnt.exe")
Kill("\Windows\udp2tcp.exe")
[B]	RegWriteDword("HKLM", "System\State\Hardware", "Cradled", 0)[/B]
Else
Run("\Windows\Start Menu\Programs\ActiveSync.lnk")
Sleep (2000)
SendRightSoft()
SendUp()
SendCR()
EndIf

#Bluetooth toggle on/off
Run("\Program Files\Small Apps\btonoff.exe")
[Windows Mobile Apps and Games] tito12:
Michoob, you're great!

Merci pour ton aide et ta patience

Tito