Windows 7 Forums

Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: Force shortcut/program to start minimized?

09 Jul 2013   #1
b00t

Windows 7 Ultimate 32bit
 
 
Force shortcut/program to start minimized?

Well, basically I want to force a program to start minimized.

I tried making a shortcut and changing the Run property value from "Normal window" to "Minimized". Sadly, that didn't seem to do anything this time...

Just for the record (I hope I'm not breaking any rules), here's the program I'm talking about: Download | experienceit.pl


My System SpecsSystem Spec
.

09 Jul 2013   #2
MilesAhead

Windows 7 32 bit
 
 

Search "RunInTrayMod" if starting hidden to tray will suffice. Forcing minimization tends to mess up the state of the client app's window.
My System SpecsSystem Spec
09 Jul 2013   #3
b00t

Windows 7 Ultimate 32bit
 
 

That sounds nice, but I can't figure out how to use it.

I mean, I get that I'm supposed to use it as an AutoIt script, but I'm not sure where and what exactly I need to enter as specific information to make it work (inside the script itself).
My System SpecsSystem Spec
.


09 Jul 2013   #4
MilesAhead

Windows 7 32 bit
 
 

You can get an AutoIt installer from here

Once installed, you can run the script by double clicking. Just save the script to file name RunInTrayMod.au3

If you wish, it can be compiled to an exe that has the AutoIt intrpretter code built in. That way it will run on systems that don't have AutoIt installed. The exe will also run on systems that have AutoIt installed, but it will ignore the installed version and use the embedded interpreter.

For help getting scripts to work, compiling them etc.. you can post on this forum:
AutoIt Forums

Another similar tool is AutoHotkey_L. Between the 2 of them you can customize many actions in Windows. Especially hitting a hotkey to perform some action.

Both programming languages and libraries are free. Also both have code contributed by users to make certain operations easier. The forums are a fun place to ask questions and contribute/download user code.

(In my original reply I had a bunch of detail lost when typing into a library PC. So before trying to remember it all I decided to find out if you were interested in the hide to tray concept. Guess I need to type into Notepad first in case the PC connection glitches in the future.)

edit: btw I hope you are using the RunInTrayMod script that was put through Obfuscator as it is stand-alone. You won't have to include other files to get it to compile. I mean the one on this Page
My System SpecsSystem Spec
09 Jul 2013   #5
b00t

Windows 7 Ultimate 32bit
 
 

I must be doing something wrong, because I get an error...

Here's what I did:
- went on the page you linked and copied everything from "#Region ;**** Directives created by AutoIt3Wrapper_GUI ****" to "EndFunc ;==>_WinGetByPID".
- pasted it on SciTE and saved the file as .au3
- launched it with AutoIt3

And here's the error (I can't make anything out of it, I'm afraid...):

"Line 254 (File "D:\test.au3"):

Here's the source for the shortcut generator stripped of includes. See zip attachment for custom icon.

Error: Unterminated string."

Man, I'm confused.
My System SpecsSystem Spec
10 Jul 2013   #6
MilesAhead

Windows 7 32 bit
 
 

You can get the shortcut generator from here

The original idea is to start a program in the tray by putting a shortcut to it in the Startup Folder. Since RunInTrayMod has to launch the client program I made a shortcut generator to simplify creating a shortcut with the proper delay and other switches.

Sorry, but I've been away from this stuff for awhile and not having my web site running is a pita. Maybe I'll recreate the web page using space on DonationCoder. But it's tough to do anything with hamstrung public PCs. Looks like I need to get a laptop or other WiFi capable machine soon.


edit: you don't have to use the shortcut generator. It's just a convenience. But since there are quite a few command line arguments it's simpler. You can always drag the created shortcut from the Startup Folder and drop it anywhere.
My System SpecsSystem Spec
10 Jul 2013   #7
b00t

Windows 7 Ultimate 32bit
 
 

Oh, now I feel like an idiot. I didn't even think about the possibility that the source code ends earlier on... Oh well, thanks for the help once again. Now it works.
My System SpecsSystem Spec
10 Jul 2013   #8
MilesAhead

Windows 7 32 bit
 
 

Glad you got it going. Stuff that's run through the obfuscator is confusing. But it has the advantage of avoiding include files.. which can be tough or a nuisance to chase down. The main reason I did it as stand-alone was I got a msg from the author of the original RunInTray and wanted to provide my mod as a single file. Turns out he never posted the mod anyway that I know of. But the obfuscator is a useful tool.
My System SpecsSystem Spec
Reply

 Force shortcut/program to start minimized?




Thread Tools





Similar help and support threads
Thread Forum
Program opens minimized and can't resize
Hey everyone, first post here. When I try to open my Trend Micro Console it opens completely minimized and i can't resize it at all. I've attached an image of what it looks like. I can right click and get to the move, minimize and close menu but nothing else. I can't even click on the edges to drag...
General Discussion
Permssions won't allow shortcut change to run Minimized?
I created a shortcut icon to taskmgr.exe and placed it in the proper Startup folder so it would run at start up. It runs fine but I want to change the properties to run Minimized vs Normal Window so it will just appear minimized in the system notfication area on start up. Permissions says I...
System Security
Program opens minimized, will not maximize
I have a program (Virtual DJ) which up until recently has worked fine, but now opens minimized on the task bar and will not maximize. Task manager shows program is running. PC is a laptop which is not set up for multiple display so window is definitely not open on wrong screen. any suggestions very...
General Discussion
Task scheduler program start minimized
Hello all, I just discovered the task scheduler and I am using it to start programs at logon, like eraser. The only problem is I would like to start them minimized and I can't quite figure out how to do that. I have set the program properties to run minimized but it doesn't want to play nice. Is...
Software
Almost all software shortcut gone in Start menu>Program files
I left my computer on throughout the night while trying to format an external HD. When I woke up this morning I noticed the most common software used are games. When I check the folders in the program files (start menu directory), I see the folders, but the shortcut contents are all "(empty)"....
General Discussion
Start Menu Shortcut Program
Download a Shortcut that Opens the Start Menu in Windows This Start Menu program acts as a shortcut that will open the Start Menu just as if you had pressed CTRL+ESC in Windows 7 or Vista.You can copy and use the Start Menu.exe file below in any user account (administrator or standard) to open...
Tutorials

Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 03:39.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App