Lately I have been using the program name to control the program execution. If the name has "random" in it then random. If it has "mix" in it then it plays / displays a mix of text and video - pictures - audio. The 3 program prompts are set based on the name. Great for testing and setting up super simple demo apps.
I check the program name in the code. And change the default to random search if the name has random in it. I.e. if the program name is ver01randommix.exe then no prompts are required. It opens ver01randommix.txt as the input file and does a random selection of LARGE font explaining the video or pic or audio file that follows.
Anyway. I find it very handy; using the program name like that...
Anything that I use my search engine / MultiMedia player for on a regular basis will have the new functionality.
loademailfriends.exe Will automatically find and load those emails that have "emailfriends" in the search line. One at a time. I only have a handful of these that I pass news and jokes on to. I do this 2 or 3 times a week.
Having a shortcut to loademailfriends.exe then the first one pops up with the email address loaded in the clipboard. Alt/Tab to switch to the email program and Ctrl/V to insert the address. What a great feature.
There will be many more of these quickie routines to come.
I have done similar things using the EXE-name to pass things normally stored in an INI or registry. For example an app to move the Form to a specific place on the screen on startup or setting default behaviour of the app base on numbers in the EXE-name.
Good to see others are thinking alike.
Help! I want to create a java program that finds the highest even integer among the values entered by the user. Stop asking values when a value less than 1 have been entered. If no even integer is entered, display "No Even Integer"
Hi, as I was told that my code doesn’t scale well at all, I thought perhaps I’d try to get a better understanding of interfaces/abstract classes and classes and the relationship between them.
I don’t want at this stage work on a big separate project as I've already got plenty ...