yashsingh1/xdaforums huggingface dataset:
[Windows Mobile Themes] Sir.John:
Thanks for all your valuable info.

I already check for the "Active" string to verify the alarm is not disabled. i.e. in the regs you sent you have two "Active=true" alarms not only one. "PluginAlarmtime" is no use as I need to calculate the days not the time.

more questions though (sorry):

- do your reg-settings (the ones you sent) reflect an alarm that will ring tomorrow morning at 6:41 or is everything disabled for the moment

- is there a second alarm ringing at 10.15 daily? (i think so)

- Would you please do the following:

1. have only one alarm active per day (deactivate the other one, if given,. temporarily)

2. set the remaining active alarm to ring not before friday

3. send me another registry export please

perhaps that'll help to track this down :-)

John
[Windows Mobile Themes] Sir.John:
Mito seems to work on an iPT version that allows mortscript to alter the name of an icon. If so, it'll be pretty simple to display the next alarm set as iconname below the graphics. If that will be of any use for you!?

john
[Windows Mobile Themes] bbonzz:
the old reg was set to ring tomorrow morning at 6.41

yes, you're right

attached: enabled only tomorrow @10.15 alarm, the rest is completely disabled

not exactley what i'm trying to do: it's better to have it displayed as the clock icons does :-) but i'm still trying to see if somehow it's possible to merge on the fly two png's
[Windows Mobile Themes] Sir.John:
sorry, to be such a pain but I didn't make myself clear enough, I'm afraid .

:-( What I wanted to have a look at was an alarm set not tomorrow but later this week, in order to check if in this case there is some date inserted in the registry. I already saw that there is no date for tomorrow's alarms. So if you don't mind: please set an alarm for friday and let us check whether an datestring containing "28" (date of upcoming friday) shows up. If not (as things are right now) I don't se much chance to have a configurable "days in advance" option for G-Alarm > 1.51 :-(

thanks for all your help,

John
[Windows Mobile Themes] bbonzz:
sry, you're right: i didn't understand what you asked.

So i've disabled everything but a new alarm called "Test for John" that rings on friday @7.40

but, as you'll see, there is no date in reg...
[Windows Mobile Themes] Sir.John:
indeed, too bad :-/ Hm, let's see if I can come up with something...

Thanks for now, your kind assistance is much appreciated :-)

John
[Windows Mobile Themes] bbonzz:
in the meanwhile i'll see something for icons

"One is here to serve" (have you seen the movie? :-))

OT: i've modded your mirror, have you seen it? /OT
[Windows Mobile Themes] Sir.John:
I completely missed that, I'm afraid. Would you be so kind as to point me to the whereabouts of your script. I'd love to see it :-)

What movie was that? It sounds somewhat familiar, but since all movies are dubbed here, I cannot really put my finger on it...
[Windows Mobile Themes] bbonzz:
http://xdaforums.com/showpost.php?p=4386201&postcount=1786

Bicentennial Man, with Robin Williams (free translation, since of course i've seen it in Italian)
[Windows Mobile Themes] chancer63:
GAlarm doesn't work any more: alarm on or off, I always have the aoff- icon.

Could it be that you have to change the ini a bit for MortPlayer (Alarm_Software=4)?

CU
[Windows Mobile Themes] Sir.John:
good spot, you're right. but frankly, this doesn't make sense: troubleshooting is to difficult. I'll install g-alarm myself, and try to fix the errors... sorry for the delay :-(

John
[Windows Mobile Themes] bing69:
Can someone help me with a little script??

I want to start my photoviewer: pimg.exe with home dir. \Internal Storage\My Documents\My Pictures\

i did 't on this way:

Vibrate(45)

Run("\Windows\pimg.exe","\Internal Storage\My Documents\My Pictures\")

This gives a error......

What do i wrong??
[Windows Mobile Themes] chancer63:
As I understand it, Run interpretes "\Internal Storage\My Documents\My Pictures\" not as a path but as a file. Try to complete the path with an existing filename at the end, for example: "\Internal Storage\My Documents\My Pictures\picture_01.jpg".

CU
[Windows Mobile Themes] Sir.John:
Ok, new version uploaded. If you feel like giving it another go, please grab your copy from the first page (link in my sig.) Zipped everything to sjAlarm.004beta.zip

I have abandoned the idea of using "OneTime" as a regkey. Instead I evaluate all weekday abbreviations in the registry (Mo, Tu, We...) an loop through them to find the day set in alarm days. I don't like this approach too much for now, as I have no experience with loops whatsoever and like to think it is a bit of a fragile contruct, but as every other approach seems pretty useless, this is the route to go methinks.

@chancer: I dunno how you set your alarms, or what other 1.51 version you use but mine didn't update "OneTime" string either. Hence I went for the approach above ;-)

"Good luck" to me, and "have fun" for you ;-)

let me know, if it is any better than before,

John
[Windows Mobile Themes] bbonzz:
For now, and for what my needs are, i'm using this script

#############################################
# G-Alarm icons changer for iPhoneToday 0.3 #
# based on scripts by Sir.John and Micka #
#############################################

# User Settings
#
icon_dir = "\iphonetoday\Alarm\"
icon_clock = "alarm.png"
icon_noalarm = "aoff.png"
icon_alarm = "aon.png"
next_time = 0
notify_me = 0

# Ignore errors
#
ErrorLevel("off")

# Run G-Alarm
#
prgfiles = SystemPath ("ProgramFiles")
Runwait ( prgfiles&"\ageye\g-alarm\galarm.exe" )

# kill any lingering notification
#
mort = SystemPath("ScriptExe") & "\MortScript.exe"
script = SystemPath("ScriptPath") & "\" & SystemPath("ScriptName") & SystemPath("ScriptExt")
RemoveNotifications(mort, script)

# Read from G-Alarm if an alarm is set:
#
ID = RegRead("HKCU", "\Software\ageye\g-alarm\", "NextAlarmID")
nextalarm = "\Software\ageye\g-alarm\" & ID & "\"
GAlID = RegRead("HKCU", nextalarm, "Active")

# Read from registry if an alarm was already set:
#
AlID = RegRead("HKLM", "\Software\iPhoneToday\Alarm\", "AlarmID")

# If alarm state is changed, change icon, otherwise speed-up process avoiding reloadicons and exit
#
If (AlID ne GAlID)
if (GAlID eq "True")
Copy( icon_dir & icon_alarm, icon_dir & icon_clock, TRUE )
RegWriteString ("HKLM","Software\iPhoneToday\Alarm","AlarmID","True")
RegWriteDword ("HKLM","Software\iPhoneToday","reloadIcons",1)
Else
Copy( icon_dir & icon_noalarm, icon_dir & icon_clock, TRUE )
RegWriteString ("HKLM","Software\iPhoneToday\Alarm","AlarmID","False")
RegWriteDword ("HKLM","Software\iPhoneToday","reloadIcons",1)
Endif
Endif

# Notification
#
If (notify_me = 1)
SleepMessage(5, "Script has run successfully!", "Success", TRUE)
Endif

# Set re-run interval
#
If (next_time <> 0)
nexttime = now + (next_time * 60)
RunAt(nexttime, mort, script)
Endif
exit
[Windows Mobile Themes] bing69:
What you wrote works, thanks!!. But wat i want is a default directory for my photo's..
[Windows Mobile Themes] bbonzz:
New code for iPhoneToday 1.2.5

#############################################
# G-Alarm icons changer for iPhoneToday 0.5 #
# based on scripts by Sir.John and Micka #
# For use only with iPhoneToday > 1.2.5 #
#############################################

# User Settings
#
icon_dir = "\iphonetoday\Alarm\"
icon_clock = "alarm.png"
icon_noalarm = icon_dir & "aoff.png"
icon_alarm = icon_dir & "aon.png"
next_time = 0
notify_me = 0

#which screen is your G-Alarm icon (from 0 to x)?
nScreen = 2

#which position is your G-Alarm icon (from 0 to x)?
nIcon = 3

# Ignore errors
#
ErrorLevel("off")

# Run G-Alarm
#
prgfiles = SystemPath ("ProgramFiles")
Runwait ( prgfiles&"\ageye\g-alarm\galarm.exe" )

# kill any lingering notification
#
mort = SystemPath("ScriptExe") & "\MortScript.exe"
script = SystemPath("ScriptPath") & "\" & SystemPath("ScriptName") & SystemPath("ScriptExt")
RemoveNotifications(mort, script)

# Read from G-Alarm if an alarm is set:
#
ID = RegRead("HKCU", "\Software\ageye\g-alarm\", "NextAlarmID")
nextalarm = "\Software\ageye\g-alarm\" & ID & "\"
GAlID = RegRead("HKCU", nextalarm, "Active")

# Read from registry if an alarm was already set:
#
AlID = RegRead("HKLM", "\Software\iPhoneToday\Alarm\", "AlarmID")

# If alarm state is changed, change icon, otherwise speed-up process avoiding reloadicons and exit
#
If (AlID ne GAlID)
if (GAlID eq "True")
RegWriteString ("HKLM","Software\iPhoneToday\Alarm","AlarmID","True")
RegWriteDword ("HKLM","Software\iPhoneToday\Icon0","nScreen",nScreen)
RegWriteDword ("HKLM","Software\iPhoneToday\Icon0","nIcon",nIcon)
RegWriteString ("HKLM","Software\iPhoneToday\Icon0","strName","")
RegWriteString ("HKLM","Software\iPhoneToday\Icon0","strImage",icon_alarm)
RegWriteDword ("HKLM","Software\iPhoneToday","reloadIcon",1)
Copy( icon_alarm, icon_dir & icon_clock, TRUE )
Else
RegWriteString ("HKLM","Software\iPhoneToday\Alarm","AlarmID","False")
RegWriteDword ("HKLM","Software\iPhoneToday\Icon0","nScreen",nScreen)
RegWriteDword ("HKLM","Software\iPhoneToday\Icon0","nIcon",nIcon)
RegWriteString ("HKLM","Software\iPhoneToday\Icon0","strName","")
RegWriteString ("HKLM","Software\iPhoneToday\Icon0","strImage",icon_noalarm)
RegWriteDword ("HKLM","Software\iPhoneToday","reloadIcon",1)
Copy( icon_noalarm, icon_dir & icon_clock, TRUE )
Endif
Endif

# Notification
#
If (notify_me = 1)
SleepMessage(5, "Script has run successfully!", "Success", TRUE)
Endif

# Set re-run interval
#
If (next_time <> 0)
nexttime = now + (next_time * 60)
RunAt(nexttime, mort, script)
Endif
exit
[Windows Mobile Themes] chancer63:
Tried new version:

WORKS (GAlarm).

:)

THX.

CU
[Windows Mobile Themes] Sir.John:
Whee, good news (it was about time, though) Thanks for letting know.

I'll update the package accordingly and make it available as regular download here.

Enjoy!

John
[Windows Mobile Themes] chancer63:
sjalarm --> icons

Thank you for your work.

Here are two more icons. Just a copy&paste- thing, thx to blue.

CU
[Windows Mobile Themes] Sir.John:
Thanks for sharing, I have updated the AlarmIcons.zip accordingly (and deleted a double set at the same time)

As I have no way to give you credit for this in the package for now, I'll thank you here instead :-) I'll remember to add some readme.txt later hopefully :-)

John
[Windows Mobile Themes] chancer63:
No THX for me, please! All the credits go to bluemetalaxe (http://xdaforums.com/showthread.php?t=533993). I just did a 3- min- copy&paste.

CU
[Windows Mobile Themes] Sir.John:
sjToggle was updated to version 0.5.

wvgatoggle was rewritten: now the display modes to toggle between can be specified. Check the explanations in sjtoggle.ini to know how to limit the toggle to display modes of your choice.

John
[Windows Mobile Themes] 12gage:
would there be anyway to get the vol toogle with only Vib/On without the mute option? thanks in advance.
[Windows Mobile Themes] Sir.John:
Actually I already work on that ;-) So: yes :-)
[Windows Mobile Themes] Sir.John:
Another short-timed update to Version 0.6 for sjToggle. Sorry for this frequency, but I think it's worth it:

- added the possibility to choose the togglemode for set volume. Choose from on-off-on, on-vibra-on or on-vibra-off. See sjToggle for details.

- added one more script to refresh all icons to their current "value". As it can happen, that e.g. GPRS mode is modified by an application, the icons may display the wrong status as they are not updated automatically (the script would need to run every xx seconds and kill the battery) Hence, I wrote a script, that only reads the current registry settings of all Toggles and copies the correct icon as of runtime. Script is called reload_all_icons.mscr. Run it without paramters.

Check my signature for a download link.

Enjoy!

John
[Windows Mobile Themes] 12gage:
thank you sir :)
[Windows Mobile Themes] Sir.John:
the toggle scripts work without any special iPT type.

for wifi toggle do the following

- check and adjust all path settings in \My Storage\iPhonetoday\Toggle\sjToggle.ini

- add icon in iPT

- point the executable path to \My Storage\iPhonetoday\Toggle\wifitoggle.mscr

- run the script

- point the iconpath to \My Storage\iPhonetoday\iReflect Icons\wifi_toggle.png

- do it accordingly for all other scripts you may want enclosed in /Toggle/

- in case you miss any icons, get the all_icons.zip from the original post and unpack them to \My Storage\iPhonetoday\iReflect directory

Let me know, whether this does the trick for you.

John
[Windows Mobile Themes] piet8stevens:
Reload all icons & Observations & speed

Re. sjToggle: Nice scripts & good ideas. Thank you.

Which icon do you use for 'reload_all_icons.mscr'?

On my TP2, bluetooth in the registry has value 9 for ON for \System\State\Hardware\Bluetooth", not 8 as per your script.

Toggling the phone and wifi work, but bluetooth does not. I also think gprs does not.

I need to look further into this tomorrow.

When I run the .lnk directly, this is much faster than through your .mscr. Any idea what slows it down so much? Also, how can I avoid the big white screen while the script is running? It would be nicer if iPhoneToday just remains visible.
[Windows Mobile Themes] Sir.John:
Hi piet,

thanks for your feedback and your kind words. Hopefully I address all your questions and do not forget any. Just in case, sorry, no purpose, please do ask again :-)

reload icon: I use one of blue's reload-icons (the ones with two arrows pointing up and down)

bluetooth: thanks for this info. What system/OS are you on? This info will be helpful for some other questions, too.

gprs: works flawlessly for me (WM6.1) I query HKLM\system\state\connections\cellular\count for the check. What values do you have for GPRS mode on/off?

whitescreen: there shouldn't be any white screen I'd know off. Do you have "animation" for iPT enabled by chance? Only other thing I can think off is a malfunction of the sleepmessage() function of Mortscript. To test, please disable "notification" in sjToggle.ini

slow execution: For some scripts such as wvga_toggle I needed to insert some sleeps as a refresh todayscreen function of wvgafix was colliding with the reloadicons functions of iPT. The reloadicons function of iPT is quite slow. Next versions of my scripts will work with the enhanced function "refresh per icon", perhaps this will mhelp a bit. Other than that, I can only guess mortscript itself is sort of slow to be interpreted. sorry. :-(

Looking forward to your infos :-)

John
[Windows Mobile Themes] piet8stevens:
re sjToggle:

1. my Touch Pro 2 runs the standard 6.1 that it came with.

2. for bluetooth: with bluetooth off, the value in the registry is 8. Bluetooth on gives 9. I am not able to change the bluetooth status through your script (even after having changed the 8 to 9). Bluetooths stays in whatever state it is in, and the icon stays green.

3. gprs: I assume this is linked to 'Data Connection' in the Comm Manager. For some reason for the last few days, I have not been able to switch this on, not sure why (no gprs coverage in this area maybe?). In any case, the "HKLM", "\System\State\Connections\Cellular\", "Count" is 0. I will try some more to switch Data Connection on and then let you know what the count is. In your script, a count of 0 corresponds to GPRS ON, but my Data Connection is off.

4. Whitescreen: you are right, this came from the iPhoneToday animation. When I unticked that, the white screen was gone.

Additional observations:

a. Volume toggle seems to work (at least, the icon changes), but the Mortscript sometimes returns a 0, sometimes a 1 in a little pop-up window which you must close by hitting on the OK.

b. in your reload_all_icons script, there is a typo for 'wifi ON' (it says 'wifi ONF'), so that if you reload all icons when your wifi is on, your icon disappears in iPhoneToday.

Best regards,

Piet
[Windows Mobile Themes] Sir.John:
Hi Piet,

thanks for your kind and prompt reply.

Additional Observations: thanks, typo is corrected, and the pop-up message was present from my debugging. I simply forgot to delete it. Done now. (I'll upload version 0.61 once we are done with all your issues)

GPRS: I think you misread the script. It is something along these lines:

IF status = 0 (=OFF)

copy ON-image & run toggle

ELSE (=ON)

copy OFF-image & run toggle again

BLUETOOTH: these are the settings I check for, and they correspond to my own device, where the script runs fine. Alas, please check, that

1. BT-OFF image is present and is named "Bluetooth OFF.png"

2. you have linked the icon to "bluetooth_toggle.png" rather then the ON image

Thanks for your help and input

John
[Windows Mobile Themes] piet8stevens:
re sjToggle

GPRS works. The reason I could not toggle the GPRS was because my phone was hooked up to my PC via usb.

Bluetooth icon is linked to bluetooth_toggle.png.

It seems now that everything works except for bluetooth. I checked the bluetooth.lnk. Its contents seems fine.
[Windows Mobile Themes] Sir.John:
Are the icon names ok as well ("bluetooth off.png" and "bluetooth on.png")

What happens, if you delete bluetooth_toggle.png and run the script?
[Windows Mobile Themes] piet8stevens:
Yes, Bluetooth ON.png and Bluetooth OFF.png are there (I suppose upper vs lowercase does not matter, right?)

After deletion of bluetooth_toggle, when I disable iPhoneToday and re-enable it, the bluetooth icon is not visible in iPhoneToday (but the word 'Bluetooth' is, underneath the icon). When I push on the black space above the word 'Bluetooth', the phone vibrates, and then the icon re-appears (in other words, the copy of the .png file worked). It correctly copied the Bluetooth OFF.png to bluetooth_toggle. But my bluetooth has not switched from on to off or from off to on.
[Windows Mobile Themes] Sir.John:
darn, this is getting strange. Does the bluetooth toggle work for you, if you nrun the bluetooth.lnk directly or, whatsmore, if you call vjvolubilis.exe with parameter -bluetoggle?
[Windows Mobile Themes] ramez75:
Sir John, I have followed the steps and even tried adding "\" but still no success. The wifi turns on but the images do not change. Below is the ini file I am using and attached are the images. Let me know what you think i am doing wrong
[Windows Mobile Themes] ramez75:
I installed mortscript into "My Storage" could that be the problem of why the Icons are not changing, do I need to uninstall mortscript and install it into the device main memory.

The confusing part is that when i click on the Wifi icon WIFI turns on but the images do not change to reflect that, i also tried it with bluetooth same issue......Also I am using ipt version 1.1
[Windows Mobile Themes] Sir.John:
Sounds strange indeed. Especially since I switch on/off wifi at the very end of the script, which means, the script runs fine through to the end. If the iconfiles exist in the directory you have specifed, and you have correctly linked to wifi_TOGGLE.png try running the reload_all_icons script. Does that do any good?

John
[Windows Mobile Themes] Sir.John:
Hi everybody,

I need help from someone who has

a. MortScript installed

b. runs iPT version 1.0c OR iPT version 1.2

Would you please run a mortscript with this command:
FileModifyTime("\IPhoneToday\iPhoneToday.dll")

and post your output. The output will be a long number (unix_timestamp). It is vital, you do not have any typos here ;-)

This will help to distinct the several IPT versions in operation, alas one can script how to reload icons..

E.g.: timestamp for version 1.1 is 1249861648

so this loop will set the IPT version accordingly:

if ( FileModifyTime("\IPhoneToday\iPhoneToday.dll") <= 1249861648 )
ipt_version = 1
Elseif ( FileModifyTime("\IPhoneToday\iPhoneToday.dll") > 1249861648 )
ipt_version = 2
else
Message("Something went wrong! Cannot evaluate the IPhoneToday version you are running")
EndIf
[Windows Mobile Themes] ramez75:
I tried that nothing happened. When I link the icon to wifi_toggle and use wifitoggle.mscr = execute; Type=Normal; Parameter=Blank and executealt=blank. I click on the Wifi icon WIFI does turn ON but the icon doesnt change to WIFI ON and when I turn it off doesnt change to Wifi OFF same goes to Bluetooth and others....so the *mscr is activating the item but not changing the icons......
[Windows Mobile Themes] Sir.John:
What is the image path of this icon you link to?
[Windows Mobile Themes] ramez75:
Right now

iconpath = \My Storage\iPhonetoday\iREFLECT Icons\

I even tried

iconpath = \My Storage\iPhonetoday\iREFLECT Icons

Bluetooth icons are

Bluetooth OFF

Bluetooth ON

Bluetooth_toggle

Wifi icons are

Wifi OFF

Wifi ON

Wifi_toggle

ETC.....

I am using the ones from bluemetalaxe that you have attahced with sjtoggle folder...All I did is moved them to the iREFLECT Icons folder
[Windows Mobile Themes] Sir.John:
I know, but I was talking off the ipt-icon itself....your answer may reveal, we have been talking about two different things a while.

Alas:

When you create an icon in IPT, you point to the executable "wifitoggle.mscr" right? Right above that path, there is a field called "Image": THERE you need to link to wifi_toggle.png. Have you done that?

Just to make sure: I am NOT talking about any changes in sjToggle.ini here, I'm talking about the config of the icon in IPT itself.

John
[Windows Mobile Themes] ramez75:
Yes when I created the icon in IPT for Wifi, bluetooth, etc I followed the below

Name=Wifi

Image =wifi_toggle.png

execute = wifitoggle.mscr

parameters = blank

executealt=blank

paramalt=blank

Launch animation = unchecked to avoid white screen
[Windows Mobile Themes] Sir.John:
If your Image path is

Image = \My Storage\iPhonetoday\iREFLECT Icons\wifi_toggle.png

rather than "wifi_toggle.png" without a path, you have done everything as you should, and I have - quite frankly - not a single clue of what might be the issue here. sorry :-(

Only thing I can say now is, that the next big update will be to a version doing single reloads for icons as featured in IPT 1.2 and up...perhaps you might like to try again this "edition"!? :-(
[Windows Mobile Themes] ramez75:
Ok No problem thanks for trying :)....I will fool around with it till the weekend and then upgrade to IPT 1.2.5 and use sjtoggle v0.62 instead of v0.6 and see if that makes a difference
[Windows Mobile Themes] Sir.John:
I wrote a function that hopefully will proof helpful to all of us. It figures out on which screen an icon/script resides in order to allow easy registry setting for the reload option of IPT. Find it here and let me know if it works as intended :-)

Enjoy!

John
[Windows Mobile Themes] 12gage:
i made this for the reload icon script if anyone wants
[Windows Mobile Themes] ramez75:
John

I was looking at the all_icons used for toggle script folder. I dont see a GPRS_toggle.png, irda_toggle.png and bluetooth_toggle.png, wvgafix3_toggle.png, phone_toggle.png and volume_toggle.png

Can you please attached them

Thank you
[Windows Mobile Themes] Sir.John:
12gage: lovely, thanks heaps. If you don't mind, I'll include this one in my all_icons.zip!?

ramez: All the *_toggle.png icons get created with running the script. Depending on the status either the "OFF" or the "ON" icon gets copied to *_toggle.png and reloaded afterwards, so IPT displays always the current icon. As the image-link needs to be static, this was the easiest approach.

Alas: run the script once, then look for the *_toggle.png icon again...it'll be there ;-)

John
[Windows Mobile Themes] ramez75:
Oh Ok I follow you now, Ok for Wifi i had 3 images/icons

Wifi ON

Wifi Off

Wifi_toggle

I was linking the image within IPT to the actual icon = Wifi_toggle.png which is a image without the red or the green dot
[Windows Mobile Themes] Sir.John:
in this case the wifi_toggle without any red or green indication should have been overwritten (the original name for this icon in bluemetalaxes set is wifi.png by the way). Please check whether it is write protected, that may be the issue here. Or simply rename it to wifi.png and run the script again...
[Windows Mobile Themes] ramez75:
We are on the same wavelength, I renamed it to Wifi_toggle to match what was in the wifitoggle.mscr but once I get home I will do what you suggested and check the protection permission