Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,740,721 Members 50,775 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,936
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 120
Posts: 420
Join Date: Dec 2007
Location: Markham, Ontario
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 90
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:
Select 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 120
Posts: 420
Join Date: Dec 2007
Location: Markham, Ontario
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:
Select 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


XDA PORTAL POSTS

Play Your Hits and Learn the Lyrics with NextGen Music Player

There are plenty of music players for Android available in Play Store. They … more

Control Your Toast Notifications with SlicedToasts

Toasts are delicious, even in their Android flavor. In Android, toast doesn’t lead … more

Rotation Lets You Take Full Control of Your Device’s Orientation Settings

To be brutally honest, the native options for screen … more

Change the Alarm Icon in the Status Bar with Xposed

It’s hard to find a more hated object than your alarm clock. They wake us up nearly … more