News:

Download Pelles C here: http://www.pellesc.se

Main Menu

Simple Calendar

Started by John Z, February 21, 2025, 10:11:35 PM

Previous topic - Next topic

Marco

Hi John,

Thank you for this update!

I tested the program on a PC without PowerShell 7 installed. When I click the 'Settings' button, the 'Use PowerShell 7' option is correctly disabled. After closing the program, as a test, I manually opened the 'zcalendar.ini' file and set the 'Method' key to 4. When I reopen the program and then the 'Choose method' dialog box, the 'Use PowerShell 7' option is both disabled and selected. In fact, when I then try to create a task, at the confirmation stage, the program naturally displays the 'Failed CreateProcess' error window with the message
"C:\Program Files\PowerShell\7\pwsh.exe" -WindowStyle Hidden -FILE "R:\Temp\calendar_exe\SCR1.PS1"

This is a deliberately unusual test scenario, but I simulated having subsequently uninstalled PowerShell 7 after setting it as the default task creation method in the program.

Marco

John Z

#16
Thanks Marco!

I really appreciate you taking the time and providing testing feedback.👍👍👍

From your test I should deselect PowerShell 7 in Choice Dialog and default back to C, I think that will correct the 'selected but disabled situation'.  Great test.

I also added checks in a few other places too just in case you really go wild  ;D , and improved messaging text. 

Nice to think outside the box!  Thanks again.

Version 2.0.1 attached.

John Z

P.S. I was testing PowerShell 7 absence just by renaming pwsh.exe - much easier than uninstall.

Update 7/17 removed attachment to conserve space.  Newer sources 2.0.2 attached further down.

Marco

Hi John,

I'm glad you found my feedback helpful. The issue has been fixed! During my testing, I found that I missed a 'Set current time' button. I think it would be helpful to have a way to reset the start time to the current time, which would be consistent with the "button" that sets the current date. Anyway, this is just a small suggestion.

Marco

John Z

Hi Marco,

Thanks for the feedback.  I'll look into adding a button (no guarantees though).
I'm in the middle of the next thing though, so it might be a bit for enhancement, as well as now testing the new 14.5  :)

John Z

Marco

Hi John,

QuoteI'll look into adding a button (no guarantees though).
Thank you for taking this into consideration. As I said, it's just a small suggestion. I like consistency in software. But this is just a personal preference.

Quoteas well as now testing the new 14.5  :)
Yep, me too  :)

Marco

John Z

Hi Marco,

Here is a version 2.0.2 that enables setting the Alert time to the current system time.  It does so without using a button, as I don't think it would be used very much, and space is limited without a significant GUI change.  The Alert time is not meant to be another system time clock. I suppose I could 'disable' scheduling unless the Alert time was changed but that seems burdensome to a user.

Right click in any open area of the controls line to set the Alert time to the current system time. 

So this may be an interim, or final solution, as I think on it more (after the next big thing  ;) )

I hope you don't mind that I acknowledge your assistance in the help file.

Thanks,
John Z

Full project sources zip attached. Also attached 7z which is just the program and help file for those that don't want/need the sources.

Marco

Hi John,

QuoteRight click in any open area of the controls line to set the Alert time to the current system time.
Thank you for taking the time to implement this feature.

QuoteI hope you don't mind that I acknowledge your assistance in the help file.
No problem at all! In fact, thank you. I do the same when a user reports a bug to me regarding WinContig.

Marco