How to close all Event Windows

Support for our integrated Contact Manager, Calendar, and Project Tracker.
Posts: 14
Joined: Thu Jul 12, 2012 12:24 am
PostPosted: Tue Oct 08, 2013 7:46 am
Hi guys,
some time ago I made a post to modify the behavior of Event Windows so that they won't close when jumping to my event, and JasonYoung suggested this solution, which was perfect: http://www.seedcode.com/support/viewtopic.php?f=25&t=3727

Now I'd like to be able to close all Event Windows but not immediately after jumping to my Event, I'd like to close them later on.
I tried to copy-paste a portion of your script "Jump to related Project's Layout (Project ID)" and enclose it in a loop as follows:

Image

The script works but only if the selected (highlighted/current) window is one of the Event Windows.
If the current window I'm working on (!= Event Window) calls the script in the figure attached nothing happens.

I hope everything is clear!

Can you point me in the right direction please?

(A script that closes ALL windows except for the current one I'm working on would be fine for me as well).

Thank you very much, and thank you for Seedcode Calendar, it's awesome!
SeedCode Staff
SeedCode Staff
Posts: 475
Joined: Wed Jan 02, 2013 11:47 am
PostPosted: Tue Oct 08, 2013 9:04 am
I'm glad you're enjoying using the Calendar! How about this for your script?
Attachments
Screen Shot 2013-10-08 at 11.01.51 AM.png
Screen Shot 2013-10-08 at 11.01.51 AM.png (36.33 KiB) Viewed 4824 times
Posts: 14
Joined: Thu Jul 12, 2012 12:24 am
PostPosted: Thu Oct 10, 2013 2:01 am
Thank you very much jeffalmquist, your script works like a charm.

I just added as first line an "if" to prevent closing the only open window since in my solution the script could get called without any Event Mini Window open

Code: Select all
if [ValueCount ( WindowNames ( Get (FileName) ) ) ] > 1;
-jeffalmquist's Close All Event Mini Windows-
End if;
SeedCode Staff
SeedCode Staff
Posts: 475
Joined: Wed Jan 02, 2013 11:47 am
PostPosted: Thu Oct 10, 2013 7:59 am
Great!

Return to SeedCode Calendar

Who is online

Users browsing this forum: Google [Bot] and 2 guests

cron
(855) SEEDCODE
[email protected]
Follow us: