yashsingh1/xdaforums huggingface dataset:
[Windows Mobile Development and Hacking General] Rytt55:
Yes to All answers!! Also the screen did get unlocked when I answered. So what was the problem? I will keep this version for now unless I shouldn't use this?

Thank you!!
[Windows Mobile Development and Hacking General] :
Hehehe, I'm so glad!! :`) Ok here's the deal: there are two VK_ codes that it catches, they're like integers to distinguish all keys. Your answer button is 114 and the reject button is 115 yet these values also have a "human readable form" for you not to loose your mind (imagine those keyboards with lots of buttons) so 114 is actually mapped internally to Keys.F4 and 115 to Keys.F5. Thus, if you press the answer button, 114 will fire and (in my code) will get compared to Keys.F4... Apparently, it just didn't understand what "Keys.F4" is, so the comparison always failed...

In this version I simply hardcoded 114 bypassing the Keys.F4 comparison. It's no problem at all, actually I'm glad you had this problem because there might be users out there who have the same problem (why doesn't the damn platform map Keys.F4 to 114 is, alas, with M$ products, a mystery).

The screen got unlocked in this last version since we have that option in Sunscape Config -> General -> Quit on answer. I implemented it today to give people access to their dialers so they can turn speaker on etc... You can of course, turn it off and it won't unlock, just accept the call. :-)

Don't worry, I'll hardcode 114 (answer) and 115 (reject) by default in upcoming versions so they'll all work from now on.

About donations, I thank you... It's probably one of the highest praises you can offer an opensource developer and to be quite frank, I'm flattered beyond words. However, I consider that I'm still just an user and I do this for fun, not profit. Given it's free software and I'm not an institution guaranteeing for the software (like the bug you've seen today) I can't do more than thank you heartly and decline. Yet, with your help today we did weed out another fluke that firstly makes my program better and not lastly helps all other users out there who have the same problem.

Thank you!
[Windows Mobile Development and Hacking General] :
New release. This basically changes nothing related to the program itself. It switches to hard coded VK codes for better compatibility (.net CF bug? dunno...). Everything should remain the same!

Initial post updated!
[Windows Mobile Development and Hacking General] Rytt55:
okay its now not working after i set it the way i like with the config file. It only worked once so I thought it was okay.

Anyways I got to go to a wedding but will be testing this with each setting I make tonight and report if I see a change!

Thanks
[Windows Mobile Development and Hacking General] :
Yep, update to the latest release. Try that... Those were only temporary changes in one function, but I also changed it other places too.
[Windows Mobile Development and Hacking General] Rytt55:
Problems again after testing

Before going to the wedding, I did some intensive testing also. I did a clean uninstall and install multiple times with different settings and no settings touched.

This is still using the KBTest2.cab. I did not have time to test the updated version yet.

I'm still having the same symptoms as I was having before (ie. cannot answer, not quitting after call answer, etc)

If I can be of any other further testing, please let me know. lol I was testing all the programs you told me about at a mall. Man I must have looked like an idiot walking down the mall on his PDA.

Rytt
[Windows Mobile Development and Hacking General] :
Ugh, weird... I'm not getting any of those things. The exception is probably due to the fact that there are some empty strings defined in the i8n/phone unknown*. That's an easy fix, but for the rest... Could you please attach your Sunscape.xml?

EDIT:

Just tested the empty strings in the phone format string, it's not from there... I suspect that it can't grab the callerID contact...

I can't see why it wouldn't be hiding the incoming call window, every 250 miliseconds that dialog is searched for and hidden if found...

The quit on answer, ugh.. it previously worked for Rytt55... Works here too... Is Sunscape Config->General->Quit on answer is set to true?

EDIT: If you want to test, you can try the attached release. I called myself 15 times with no problems whatsoever.

Does anybody else have these problems?
[Windows Mobile Development and Hacking General] Grondinm:
ok here is my sunscape.xml and also the message i got after installing the netcf35 messages cab.

Sunscape.exe
ArgumentOutOfRangeException
Specified argument was out of the range of valid values.

at System.String.Substring(Int32 startIndex, Int32 length)
at System.Text.StringBuilder.ToString(Int32 startIndex, Int32 length)
at Sunscape.screen.PhoneSafe()
at System.Reflection.RuntimeMethodInfo.InternalInvoke(RuntimeMethodInfo rtmi, Object obj, BindingFlags invokeAttr, Binder binder, Object parameters, CultureInfo culture, Boolean isBinderDefault, Assembly caller, Boolean verifyAccess, StackCrawlMark& stackMark)
at System.Reflection.RuntimeMethodInfo.InternalInvoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean verifyAccess, StackCrawlMark& stackMark)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
at System.Reflection.MethodBase.Invoke(Object obj, Object[] parameters)
at System.Windows.Forms.Control.TASK.Invoke()
at System.Windows.Forms.Control._InvokeAll()
at System.Windows.Forms.Control.WnProc(WM wm, Int32 wParam, Int32 lParam)
at System.Windows.Forms.ContainerControl.WnProc(WM wm, Int32 wParam, Int32 lParam)
at System.Windows.Forms.Form.WnProc(WM wm, Int32 wParam, Int32 lParam)
at System.Windows.Forms.Control._InternalWnProc(WM wm, Int32 wParam, Int32 lParam)
at Microsoft.AGL.Forms.EVL.EnterMainLoop(IntPtr hwnMain)
at System.Windows.Forms.Application.Run(Form fm)
at Sunscape.Saver.Main()

even with the version you posted in post above smae thing happens

attached a verry low quality vdo of what happens...hope this helps you.
[Windows Mobile Development and Hacking General] :
Thanks!

Ok, two things... I've seen you've set the office update thread to 1 second. It's okayish but it's suffocating (Sunscape crashed on me directly with 1 second).

I also found a bug in the week days, and updated the initial post which was another cause for a crash.

Hmm... Can you please try with the latest version and tell me if the same thing happens? Try the default Sunscape.xml first...
[Windows Mobile Development and Hacking General] :
A new update, correction to weekdays, days at M$ start at 0 which, in their view is Sunday.

Sunscape.xml changes -> day_1 becomes Sunday, day_2 Monday etc...

Initial post updated!
[Windows Mobile Development and Hacking General] Grondinm:
same result for calls...and now days are wrong...my alaram for monday morning shows as sunday

edit:another low quality VDO of what happens..this is with no changes at all to config file...
[Windows Mobile Development and Hacking General] :
Ok, dates should be fixed now... I also added a delay, does this fix it?

Did stable work? Or any releases before this happened?
[Windows Mobile Development and Hacking General] Grondinm:
yhea it did work befor..well the sunscape caller id never showed up but i could answer calls with no error....i think the last version that worked was befor you added the quit after answer option...let me try this new version will update soon..
[Windows Mobile Development and Hacking General] :
Apparently SystemState.PhoneIncomingCallerContact doesn't get updated. I've seen this happen here too and I couldn't get any info as to why it doesn't get updated properly. The only workaround was to delay. Sunscape extracts all callerID from there and if it's not filled in, it blows...
[Windows Mobile Development and Hacking General] :
I'm bailing out for tonight, based on the videos and the last version test I'll figure it out tomorrow. Maybe change the callerID handling completely. It's very annoying because I can't replicate the bug at all! Thanks for the tests, surely there must be a solution to this, maybe somebody else can confirm it too so we can at least say it's global.
[Windows Mobile Development and Hacking General] Grondinm:
ok so after testing all aspects it does seem that the erro is ralated to the callerid...the system window always stays on top no matter what option i have selected in sunscape. the only time i get the error is if the phone part(callerid) is actually enabled...it still does not quit after answer....on a positive note dates are fixed...i going to test stable release then i'm out for the night as well.

Edit: Ok so stable version gave me same error when i got a call....i make more calls then i get so i never noticed this error befor...odd that it seems to be just me...can it be something wrong with my contacts database or something?
[Windows Mobile Development and Hacking General] ruebyi:
I tried last Version, and sunscape isn't closing anymore when an alarm comes in!

My Phone can't be unlocked anymore and reboots... over and over again... after the 4th time my Herald came back to WM :(

I'll try to test every new version and give a report!
[Windows Mobile Development and Hacking General] :
Ok new update. I fixed a bug in alarm times which might have been the cause for crashes. Also I changed the routine to hide "Phone - Incoming" however, I wonder if this will work on ROMs with different languages.

ruebyi do you use a different language ROM? Could you test this?

Initial post updated!
[Windows Mobile Development and Hacking General] :
Ok, alarms don't close Sunscape anymore. You just have to unlock it first and then dismiss them. I think that what you experienced was a hang because of the day offsets in alarms. It has been fixed now however.
[Windows Mobile Development and Hacking General] :
Yes, disabling the callerID practically disables all code related to phone handling. Thing is, I used to get some bogus callerID data too, and sempixel noticed this as well. Sunscape tests if SystemState.PhoneIncomingCall which returns true if there is a call, if there is a call then it retrieves the contact with SystemState.PhoneIncomingCallerContact and stores it in a variable and then applies all formating to it.

The logic is sound but for some reason on your machine it seems that this SystemState.PhoneIncomingCallerContact is not filled in properly. Thus you get a bunch of errors, exceptions and what not... I don't understand why it's not being filled since all documentation says it's filled as soon as there is a call and there is one since we test for SystemState.PhoneIncomingCall!
[Windows Mobile Development and Hacking General] ruebyi:
Hi!

Alarm is working now, but I can't unlock my screen with DPAD when the alarm went on, only with the touchscreen.

When the first Pressure point is shown on Screen I can use the DPAD.

Calls don't work as I suspected... the WM popup came in forground and I have to use the Touchscreen to aswer the call (hardware buttons are not working!). Then Sunscape stays in foreground and I have to unlock the screen to have acess to Speaker etc.

ROM: German O2 WM6

ruebyi
[Windows Mobile Development and Hacking General] :
Ok, this is normal: if we take the focus from the alarm it stops ringing (yes it's that stupid).

Just as I suspected. Different string for "Phone - Incoming" I'll switch it back to the way it was in a minute!

Thanks!
[Windows Mobile Development and Hacking General] ruebyi:
I just would like to use the DPAD immediately to unlock screen... Why do I have to touch the screen first?
[Windows Mobile Development and Hacking General] :
It depends where the focus is. If you have an alarm in the background and you use DPAD, it gets sent to the alarm and not Sunscape. When you touch your screen Sunscape gets the focus and then you can do anything.

If we steal the focus from the alarm, you can use the DPAD but the alarm stops ringing. :P It's checkmate... This also rules out non-touchscreen users since they can't grab the focus and unlock Sunscape with DPAD...

I switched to the current behavior since it seems that on some machines a new sms grabs focus too and makes Sunscape exit too (which we don't want).

I'm still thinking about it, maybe just parse the alarms and reminders ourselves and have Sunscape exit on either alarm and reminder without going through the focus mechanism.

Btw, a new release. This should hide the window...
[Windows Mobile Development and Hacking General] ruebyi:
OK! Works!

The first time I tried my PDA hang up, because it was loading some data in background!

I'll update my Skin later!

ruebyi
[Windows Mobile Development and Hacking General] :
Cool! :) I just need to sort out this alarm / reminder thing...
[Windows Mobile Development and Hacking General] creeater:
Is there a way to get sunscape to be on top of the wm password screen when I turn my phone on? Sometime I like to just turn on my phone to see if I missed a call or messages but at the moment I have to put in my password first in order to see the sunscape screen. Thanks.
[Windows Mobile Development and Hacking General] :
Tried it, bad news though. It seems that little sucker wants to be on top no matter what. I even tried some p/invoke calls to modify the Z-order of the form however, no results. I also notice that even activesync is blocked when that thing shows up. I'll keep reading up on it and see if anything can be done!
[Windows Mobile Development and Hacking General] ruebyi:
Hi SevenRains!

Got some new ideas :D How about Icons for `Volume, Phonestatus, Bluetooth and Wifi? Sorry, but when I'm sitting in University it would be very useful to see with one look, wether Sound is on or not...

ruebyi
[Windows Mobile Development and Hacking General] :
Yep, just a few days ago I was wondering what other gadgets we should add. I think some of those can certainly be done.

For the moment though, let's sort the alarm / reminder thing out so non-touchscreen users can properly use the program. This is going to be nasty but I'll attempt to restore the original quit-on-alarm and quit-on-reminder but do it manually since we already know when an alarm or appointment is due.

There are also Grondinm's problems which I didn't forget but I'm pulling my hair out since nothing seems to work. He's also a singled out case which makes it even more frustrating since I can't replicate what's happening and can't make heads or tails out of it.
[Windows Mobile Development and Hacking General] :
Ok new release with fixes for non-touchscreen users. Sunscape will now constantly have focus unless an alarm or reminder is "bound to fire". "Bound to fire" since Sunscape now checks if there is a calendar reminder or an alarm and terminates 5 seconds before it fires. This solves a number of things concerning the focus handling. It also solves the "minute" display in alarms, sometimes it was off by 1!

ruebyi which of those Volume, Phonestatus, Bluetooth and Wifi do you give priority to?

No Sunscape.xml updates in this one!

Initial post updated!
[Windows Mobile Development and Hacking General] ruebyi:
The Volume ;) need it for university ;)
[Windows Mobile Development and Hacking General] :
Ok! Will get to it in the morning! :D
[Windows Mobile Development and Hacking General] ruebyi:
Wow! You are one of the fastest developers her! RESPECT and THANKS!
[Windows Mobile Development and Hacking General] :
Cool, I'll make it an option to be able to switch between 12h and 24h format in the next release. :)
[Windows Mobile Development and Hacking General] :
Unfortunately yes, it seems you've done everything correct: install to main memory and .net at least 2.0. I've compiled a debug version available here. Could you please tell me what the error is?

Things to check: Did Sunscape get installed in Program Files\Sunscape? You should have Sunscape.xml, Sunscape Lock.exe, Sunscape Unlock.exe and Sunscape.exe in that folder besides the image files in img
[Windows Mobile Development and Hacking General] Ufufu:
Yeees request seconded :D if it's skinnable it will be awesome!
[Windows Mobile Development and Hacking General] nonegiven:
Lock on wake is what I'm waiting for. I use S2U2 because I get a lot of calls and texts and don't take my phone out of my pocket to get them when I'm busy. S2U2 keeps the screen from being pressed and turns the phone back off after my set amount of time. It works very well for me but I'm always looking for something with a smaller memory footprint.
[Windows Mobile Development and Hacking General] l3v5y:
I think it must be the German ROM. Looking at your source code, you have fixed paths, which will not work with localisations.

You can get around this by getting the path the application is running from, and then adding to it:

This gets the directory that the exe is in.

String strPath = System.IO.Path.GetDirectoryName(
System.Reflection.Assembly.GetExecutingAssembly().CodeBase);

So, for a file called "test.txt" in the "test" subdirectory, you can use the following:

strPath + "\\test\\test.txt"

If I'm not being clear, PM me and I can try and explain it better...
[Windows Mobile Development and Hacking General] :
Yep, yep! I thought so... That's why I asked him if he has Program Files\Sunscape.* since it would be the only explanation. This hasn't been changed since the last release. I seemed to have ignored localisations completely...

It should be GetExecutingAssembly().GetName().Codebase

Ty, I'll include the proper path handling! :)
[Windows Mobile Development and Hacking General] l3v5y:
The paths was the one thing I noticed in the code! :)

It's runnign smoothly on my Prophet, although some kind of "Lock On Wake Up" would be good! :)
[Windows Mobile Development and Hacking General] :
Initial post updated - thanks to l3v5y, no more unhandled exceptions!
[Windows Mobile Development and Hacking General] l3v5y:
It may also be possible to run it from the storage card now...

Haven't tested that as I'm halfway through flashing a ROM!
[Windows Mobile Development and Hacking General] :
Haha, just wrote that up... :P
[Windows Mobile Development and Hacking General] halfdriven:
looks like a cool app, gonna give it a try
[Windows Mobile Development and Hacking General] master athlon:
moved to post #35

Hey guys, please refer to post #35. That has all the new and updated img files and instructions needed.

Thanks,

master athlon
[Windows Mobile Development and Hacking General] :
Great! I had to make some default graphics files. The real problem are the weather icons. They're not complete. Every number represents a yahoo weather code and if you look it up, Sunscape doesn't have them all...

Anyhoot, that's the point of the app - to make everything customizable! You can change all graphics and positions in both portrait & landscape. A pretty good nest for ideas. If you do like it, go ahead and make a theme, name it, write something about it and I'll post it up on sourceforge.net alongside the program. :D
[Windows Mobile Development and Hacking General] :
Thanks for testing! :)
[Windows Mobile Development and Hacking General] master athlon:
Guess Who theme

"Riddle me this, riddle me that. Who's afraid of the big black bat?"

Guess Who is a Batman inspired theme that I made for SevenRains' Sunscape. All the graphics files, with the exception of weather icons, have been replaced/redone to create a mysterious, dark theme.

NOTE: The theme is for QVGA devices only and optimized for Portrait mode.

You're going to have to edit the heigh, width, x and y positions so that the theme looks like its supposed to.

Below you will find a screenshot and the zip file, which contains 'img' folder, .xml file, and a Readme file.

UPDATE: I've updated the theme to work with the latest stable version of Sunscape. I've also redone all of the graphics(except the weather icons of course.)

Thank you and feel free to comment.
[Windows Mobile Development and Hacking General] :
Added 12h clock support as well as time formats. Initial post updated!
[Windows Mobile Development and Hacking General] showaco:
The yahoo weather icons are the same as weather.com icons(Yahoo gets its forecast from weather.com in fact), so its shouldn't be hard find a complete set. I've got a few if you need a set. :) I also have accuweather sets if you make a change on weather feeds, the accuweather updates its data much more often and has a ton more data available.

Also, I have a samsung blackjack and s2u2 works somewhat on there, do you think there's a chance of this working?:)
[Windows Mobile Development and Hacking General] :
Yep, I see it runs WM6, also check that you have at least CF 2.0. Other than that it should run... Give it a try and complain here if it doesn't. :P We'll try to figure it out...
[Windows Mobile Development and Hacking General] showaco:
Ok, I'll try here in a bit, but I have 6.1 running currently.
[Windows Mobile Development and Hacking General] showaco:
Ok, installed fine and i got three shortcuts in start menu, sunscape, sunscape lock an sunscape unlock. When I click on sunscape, the screen goes to the lock screen, but I couldn't figure out how to "unlock". I have right soft key mapped to end apps, so I used it to close sunscape. So I guess thats another problem I have, keys are still active when lock screen is up. I know this is for ppc, and I'm assuming you know the blackjack is a smartphone with non-touch screen. On s2u2, the d-pad will unlock the screen, but all other keys are disabled. I wasn't sure what the lock and unlock shortcuts did exactly, when I clicked those, I got the wait cursor, for a few seconds and that was it. I had a few minor display problems since my device is landscape oriented instead of portrait, like the clock and date overlapping.

Any ideas? Or am i s.o.l. since I don't have a touch screen?:confused:
[Windows Mobile Development and Hacking General] :
Thanks! And thanks for the very nice GANT theme! :D
[Windows Mobile Development and Hacking General] ruebyi:
Sorry to dissappoint you, but the DPAD is still not working if alarm is ringing orwas ringing...

last test for me tonight!

ruebyi
[Windows Mobile Development and Hacking General] ollehal:
Small bug

When displaying appointments is looks funny with you have something with a big L in there.. like:

Meeting with Lena at someplace.

Will be Meeting with NEWLINE ena and no time displayed. Else a wonderful thing for my HTC Touch PRO. Thanks!

Oh, maybe add "Start app at startup" option in config so you don't have to manually link to startup folder?
[Windows Mobile Development and Hacking General] creeater:
I think its possible cause S2U2 was always on top. Thanks for looking into it. Great job.
[Windows Mobile Development and Hacking General] :
It should quit now on alarms and calendar reminders.
[Windows Mobile Development and Hacking General] :
Thanks for taking interest in Sunscape! Yes indeed, you are right... I've switched the newline handling to escape sequence \N. Now "Meeting with Lena" or the sorts should display properly. Thank you for reporting this!
[Windows Mobile Development and Hacking General] :
New release: this one fixes ollehal's bug with true newlines in appointments and phone strings (subjects like "Meeting with Lena" didn't display properly since 'L' was the keyword character for true newline). Some better alarm handling added.

No Sunscape.xml changes in this one either!

Initial post updated!
[Windows Mobile Development and Hacking General] ruebyi:
Sorry, but Sunscape is still infront when an Alarm comes in!

German rom?
[Windows Mobile Development and Hacking General] :
Perhaps... Hmm, so Sunscape doesn't quit when an alarm comes in?

EDIT: latest release?
[Windows Mobile Development and Hacking General] ruebyi:
The one before the latest!
[Windows Mobile Development and Hacking General] :
Try the latest... Schedule an alarm 2 mins forward, start Sunscape and see if it exits.

If not, does the alarm appear properly on the screen? Correct number of minutes?
[Windows Mobile Development and Hacking General] ruebyi:
Alarm Popup appears! Shows the correct ALarm Time, Sunscape didn't close! Last release!

ruebyi