I was wondering what type of changes I have to make to the registry or the lnk or exe file to get a program to run on startup and minimized?
Thanks
Thanks
Yea it can be done with MortScript. I did it. Your script should look something like:
Run ( HiCalculator.exe )
Sleep ( 5000 )
Minimize ( HiCalc )
You have to refer to the mortscript manual for more info.
Basically the above script starts the program, waits 5 seconds, then mortscript will look for the window title and minimize the window
Run ("HiCalculator.exe")
WaitForActive ("Hicalc", 5000)
Minimize ("HiCalc")
Even better way to do this is to use the WaitForActive() command. It waits for a window to become active, but no longer than a defined time period.
This way if the window is displayed after 1 second, the script minimizes it and ends. Your version would always wait 5 seconds before minimizing the program, no matter how fast it's launched - why waste so much time?Code:Run ("HiCalculator.exe") WaitForActive ("Hicalc", 5000) Minimize ("HiCalc")