Hi there.
Little question.
Let’s say I want my screensaver program (yes THAT again) to start running as soon as the main window opens.
Is that possible?
I can get the program to load when the OS (Mac Sonoma) starts with launchd, but when the main window opens that has the movies in it, it starts.
Regards
If it starts at window open time, everything is OK.
Of course, if I’m understanding you correctly. Put whatever code (or a call to that code) that you currently use to start the screensaver into the Open event of the “main window” (by which I assume you mean your application’s window).
Now that I have your response, Julie, I just had an idea.
If I go and into the App EventHandler.Opening, and add the code in my button (that I manually push now) the program should happily run, right?
Or am I wandering down the garden path.
Regards.
Update: Yet Another victory from Julia. :-D. (Need to do a little code modification) but her suggestion works!
You are a fountain of wisdom Julia. Take a bow…
Regards
1 Like
That’s perfectly fine, too 
If your window is only for user configuration and all your screensaver code is in App or a module, you don’t even need to open/display it on launch. Turn off the window’s ImplicitInstance property and set App’s DefaultWindow to None. Provide some way that the user can open the window when they need to, say via a MenuHandler in App, and there you can do something like
Var w As new MyMainWindow
w.show
I was actually thinking of using launchd
to load the program when the computer starts, and within my program, when it is started have it “idle” for a given period before running.
Since I want MY program to be my screensaver, I was going to use a command line to “disable” apple’s screen saver.
But thank you ever so much for the idea / suggestion!
Yeah I just wasn’t sure if you wanted your app’s window to be open and was pointing out that it doesn’t have to be.