5,596,354 Members 38,716 Now Online
XDA Developers Android and Mobile Development Forum

How to force a program to start and run minimized on start up

Tip us?
 
heartpumper77
Old
#1  
Member - OP
Thanks Meter 0
Posts: 33
Join Date: Nov 2007
Default How to force a program to start and run minimized on start up

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
 
irus
Old
#2  
Senior Member
Thanks Meter 2
Posts: 1,935
Join Date: Jun 2007
well this is how i do it, make a mortscript that runs that app waits a couple of seconds then use vijay555 ok button app to close it. thats the best way i know how.
In H&T
irus
PG #68

HTC X7500 WM6.1 > AT&T fuze > AT&T Tilt2 > AT&T Captivate :\ > AT&T Atrix
 
kareeem
Old
#3  
kareeem's Avatar
Retired Senior Moderator
Thanks Meter 168
Posts: 4,021
Join Date: Oct 2006
Location: Southern California

 
DONATE TO ME
It doesn't really have to do with the registry and is pretty simple. Just get the .lnk or .exe and navigate to Windows>Startup and whatever you want to start up, just place the shortcut there.
If I have helped you in any way, shape or form, please consider donating to the Syrian American Council (SAC) to help aid the helpless refugees.
 
heartpumper77
Old
#4  
Member - OP
Thanks Meter 0
Posts: 33
Join Date: Nov 2007
Yeah I have done that and the program starts, I would like it run minimized though...

Thanks
 
sean222
Old
#5  
sean222's Avatar
Senior Member
Thanks Meter 101
Posts: 368
Join Date: Dec 2007
Location: Markham, ON
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
 
mr_deimos
Old
#6  
mr_deimos's Avatar
Senior Member
Thanks Meter 89
Posts: 386
Join Date: Nov 2007

 
DONATE TO ME
Quote:
Originally Posted by sean222 View Post
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
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.
Code:
Run ("HiCalculator.exe")
WaitForActive ("Hicalc", 5000)
Minimize ("HiCalc")
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?
 
sean222
Old
#7  
sean222's Avatar
Senior Member
Thanks Meter 101
Posts: 368
Join Date: Dec 2007
Location: Markham, ON
Quote:
Originally Posted by mr_deimos View Post
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.
Code:
Run ("HiCalculator.exe")
WaitForActive ("Hicalc", 5000)
Minimize ("HiCalc")
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?
Nice! Thanks As you know the Mortscript manual is huge, I just skimmed through it
 
heartpumper77
Old
#8  
Member - OP
Thanks Meter 0
Posts: 33
Join Date: Nov 2007
Thanks guys,

Guess I will be reading more of the Mortscript manual....

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


TRENDING IN THEMER...