Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


Program auto starts on STARTUP, but how can I then minimize it?

 
Logged in as: Guest
arrSession:exec spGetSession 2,2,61920
 Active Users: There are 0 members and 0 guests.
 Users viewing this topic: none
 

 

 
  
  Printable Version
All Forums >> [Scripting] >> WSH & Client Side VBScript >> Program auto starts on STARTUP, but how can I then minimize it?
  Do you like VisualBasicScript.com? Link to us and help spread the word about our forum. Thanks!
Page: [1]
Login
Message << Older Topic   Newer Topic >>
 Program auto starts on STARTUP, but how can I then mini... - 6/27/2008 1:28:30 AM   
  Jaggernaut

 

Posts: 2
Score: 0
Joined: 6/26/2008
Status: offline
I'm using the following code, which I got from a forum, to put in the startup folder of my PC to automatically start a program after a 10 second delay. It works well. However can I add a line to open the program in a minized state in the taskbar?


      


< Message edited by Jaggernaut -- 6/27/2008 1:43:29 AM >
 
 
Post #: 1
 
 RE: Program auto starts on STARTUP, but how can I then ... - 6/27/2008 1:43:56 AM   
  Rischip


Posts: 502
Score: 2
Joined: 3/26/2007
Status: offline
Here are the params for .Run method

http://msdn.microsoft.com/en-us/library/d5fk67ky(VS.85).aspx

_____________________________

Rischip
Author of - The Grim Linker

(in reply to Jaggernaut)
 
 
Post #: 2
 
 RE: Program auto starts on STARTUP, but how can I then ... - 6/27/2008 3:29:08 AM   
  Jaggernaut

 

Posts: 2
Score: 0
Joined: 6/26/2008
Status: offline
ok thanks I've changed it and it will work for Microsoft Word, but the program I'm trying to open is ACT by Sage and it opens this but doesn't minimise it. I see that the page you pointed me to says that it doesn't work with every program, so is it because of this that it's not working or can anyone see an error in the code?


      

(in reply to Rischip)
 
 
Post #: 3
 
 RE: Program auto starts on STARTUP, but how can I then ... - 6/30/2008 12:23:41 AM   
  ebgreen


Posts: 5041
Score: 31
Joined: 7/12/2005
Status: offline
I would suggest using AutoIt if .Run is not minimizing properly.

_____________________________

"... when you are good and crazy, oooh, oooh, oooh, the sky is the limit!" - The Tick
Goog places to start:http://www.visualbasicscript.com/m_24727/tm.htm
http://www.visualbasicscript.com/m_47117/tm.htm

(in reply to Jaggernaut)
 
 
Post #: 4
 
 
 
  

If you found our site useful please link to us <a href="http://www.visualbasicscript.com">VisualBasicScript.com</a>.
All Forums >> [Scripting] >> WSH & Client Side VBScript >> Program auto starts on STARTUP, but how can I then minimize it? Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts