I am making an app (software) for Windows. To run the app the user clicks on a .vbs file (or a shortcut to it). It takes a while to load up the main screen so I was wondering what's the easiest way to create a splash screen for my app? All it needs is to display an image on screen while it is waiting for the main window to appear. Once the main window appears, the splash screen can close.
Is there way a way to do that with a .vbs file? Happy to venture into Python or anything else but it needs to be simple to set up.
All I could find was related to Android which isn't relevant for me.
You can use a HTML-application (hta-file) to do this. Have a look at this description.
Related
We are building a Desktop app which has to activate keynote application on desktop automatically in slideshow mode.
The problem is that the slideshow is taking over the whole screen.
Is there a way to control the size of the keynote window in slideshow mode?
You can try SIMBL package and hook the functions of the window related to the full screen. You may use class dump to figure out what is going on in the Keynote app. However, you will meet another problems - your window is still without menu, you will be forced to handle resize events, etc.
OK, indirectly related to programming, but does anyone know how to capture a a screen that pops up for a few milliseconds in Windows? (The screen popups up when I double click an exe) and then terminates the process.
Its too fast to actually focus on the information its bringing up, but it is defnintly saying something
Is there some kind of software than can playback screen in ultra slow motion?
Is it a console app or a winforms app? If it's a console app, you could drop to a command line and run it manually. Then you can clipboard the output.
Generally to distribute a simple cocoa application we make dmg of its release folder. When we double click on it, it mounts its image and displays an un-editable window with .app and/or other files, such dSYM, contained within it. Right now the un-editable window appears with white background and icons of files within it.
My requirement is:
To customize un-editable window such
that I can display some images in
background, change location and size
of icons and customize other
appearance features within it. eg. Skype, Growl install windows.
Can anyone suggest how can I implement it?
Thanks,
Miraaj
The cheapest way would be to create the disk image normally, mount it, tell the Finder to open its window, and tell the Finder to set the window's background picture. Here's the source code for the Growl project's script for this.
The downside to this solution is that you pretty much can't use your Mac while the script runs, lest you throw the script off track.
The easiest way would be DropDMG.
An easy trick is:
Create a read/write enabled dmg, set
it up like you want it to look, load
the app and then convert it to a
compressed read only dmg.
cheers... :)
I need my application to launch in a specific display (assuming there's more than one display) and go to full screen. The app itself is a Flash app, but I can write a native executable for the mac to launch it, I just don't know how to dictate which display it opens in. This is a fairly simple thing to do in Windows, I was hoping there's a mac analog.
[EDIT] poking around COCOA app development seems to suggest that the NSScreen object is the way to go here.
Take a look at the documentation for CGDisplayBounds, CGDisplayCapture and CGGetOnlineDisplayList. With these functions you can get the list of displays, find the display bounds to create your window. And even capture the display so only your app can use it.
I would like to show the user a splash screen (a picture) while my Cocoa-based application launches. How would this be possible?
First thanks a lot. because my app running for a while time , so I want to show a splash before app running . Now if I show a window inside with a image , after that how to run the app? How to make sure that the app running after the splash showing ? How to do to get the sequence ?
First Thank you very much. And I show the window in applicationWillFinishLaunching method use orderFront,then hide it in applicationDidFinishLaunching: use orderOut,Now I found that the mainWindow not to show and the app terminate ,why ? How to do to resolute this question? Thanks!
Although Peter's answer is ultimately correct (you should rewrite your app to launch faster), sometimes that's not a practical option. For example loading code later in the application may take too long (e.g. a data acquisition application), forcing it to be loaded at startup. If you decide that you want to show a splash screen, the easiest way is to show it in the application delegate's applicationWillFinishLaunching: method. Create a splash window in your applications MainMenu.nib and add an outlet to your app delegate referencing that window. You can then put the window onscreen in applicationWillFinishLaunching: and hide it in applicationDidFinishLaunching:. Note that the main thread's NSRunLoop is not iterating during this time, so if you want to update the splash screen (with status, a progress bar, or such), you'll need to manage those redraw events yourself.
Again, think very hard about whether the long startup is necessary. If it is, showing a splash screen with a progess indicator is the minimum that you owe your users.
Why do you hate your users?
Seriously, don't do this. Don't make your users wait to use your app. Make your app launch quickly instead.
(And just in case you insist on an answer: Show a window with the image in it, then hide the window when you feel the user has waited long enough.)
Just put up a window with the image and close it when you are done with your launch initialization.
Barry's answer above does not seem to work for document-based apps. Showing a splash window within applicationWillFinishLaunching: interferes with the startup sequence of the app such that the document window isn't created. I've uploaded an example project here. In applicationWillFinishLaunching:, comment out [_splashWindow orderFront:self ] and the document window will come up.