Hello -
I've wanted to set up a timer script to run continuously in the background. I've found that I can't associate timers with the main window, because DayBack utilizes its own timers for various reasons, and mine get bumped.
My question is: is there a point where all of your timers have performed their checks, etc., and I can then install my own for the duration of the user session?
I've used the strategy of setting up an off screen window and associating my timers with that, but that is a less than satisfactory, as the window sometimes pops on screen, and often confuses users who have closed all visible windows, but find that they can't relaunch the Calendar (because the file still open with the window off screen).
Thank you!
Timer scripts associated with Main Calendar Window
3 posts
• Page 1 of 1
Posts: 66
Joined: Wed Nov 27, 2013 5:51 am |
|
Hi wsmiii,
That's a tricky task with DayBack. I'll dive into this a bit and let you know what I find! Regards, KC |
|
Hi wsmiii,
The idea of the off-screen window really is probably the best way to accomplish your own persistent ontimer methods, as DayBack uses quite a few OnTimer script throughout the use of the file, especially when using your own event layouts. If the off-screen window is coming into view, one of your scripts is possibly leaving the focus on the off-screen window when another script runs in the context of the current window (which is currently your off-screen one). So in your scripts, make sure to return the focus to the original window, or the $$sc_SolutionWindowName window. Additionally, you could have your ontimer script monitor to see if there are any other windows open, or if the $$sc_SolutionWindowName window (the main calendar window) has been closed, and then close itself so it is not left open after all the remaining windows are closed. I hope that helps! Regards, KC |
|
3 posts
• Page 1 of 1
Return to DayBack Calendar for FileMaker
Who is online
Users browsing this forum: No registered users and 2 guests