[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

force application minimize to task bar, registry key

Posted on 2012-03-27
3
Medium Priority
?
638 Views
Last Modified: 2012-03-30
Is there something I can add to the registry that will force a select application to minimize to the task bar with custom key combination?  Something is weird where it stays running even if I hit the windows key.   If I can tell windows to force the application to mimimize using something simple (like windows key), that would be awesome.
0
Comment
Question by:icecom4
3 Comments
 
LVL 17

Expert Comment

by:Kent Dyer
ID: 37775156
Right here..

C:\>start /?
Starts a separate window to run a specified program or command.

START ["title"] [/D path] [/I] [/MIN] [/MAX] [/SEPARATE | /SHARED]
      [/LOW | /NORMAL | /HIGH | /REALTIME | /ABOVENORMAL | /BELOWNORMAL]
      [/NODE <NUMA node>] [/AFFINITY <hex affinity mask>] [/WAIT] [/B]
      [command/program] [parameters]

    "title"     Title to display in window title bar.
    path        Starting directory.
    B           Start application without creating a new window. The
                application has ^C handling ignored. Unless the application
                enables ^C processing, ^Break is the only way to interrupt
                the application.
    I           The new environment will be the original environment passed
                to the cmd.exe and not the current environment.
    MIN         Start window minimized.
    MAX         Start window maximized.
    SEPARATE    Start 16-bit Windows program in separate memory space.
    SHARED      Start 16-bit Windows program in shared memory space.
    LOW         Start application in the IDLE priority class.
    NORMAL      Start application in the NORMAL priority class.
    HIGH        Start application in the HIGH priority class.
    REALTIME    Start application in the REALTIME priority class.
Press any key to continue . . .

Open in new window


HTH,

Kent
0
 

Author Comment

by:icecom4
ID: 37777400
I tried launching from the start command, and all the different switches, it makes no difference, while in the application, if I press the windows key it it keeps the application running, and only shows the start menu and task bar.  It is possible to go into the task bar, find the application running, then minimize, but I am looking for an easy solution for users in the application.  

I am thinking this will require a registry edit.
0
 
LVL 2

Accepted Solution

by:
Kubejunkie earned 2000 total points
ID: 37789218
you can use AutoHotKey to perform that function with a keystroke.

http://www.autohotkey.com/

depending on the application you can set it to run then minimize.

Example:

;This will Run notepad then minimize once launched using the key combo Ctrl+Alt+F
^!f::
Run, notepad.exe
WinWait, Untitled - Notepad
WinMinimize ; use the window found above


;This will Minimize the active window with the key combo Ctrl+Down Arrow
^Down::WinMinimize, A

you can create the hotkey file and compile to .exe and run from there. *note if you compile then you do not need to install autohotkey on any machine but the one you use to build the script.

if you need help customizing for the application i can assist with that as well.
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Windows Server 2003 introduced persistent Volume Shadow Copies and made 2003 a must-do upgrade.  Since then, it's been a must-implement feature for all servers doing any kind of file sharing.
When you put your credit card number into a website for an online transaction, surely you know to look for signs of a secure website such as the padlock icon in the web browser or the green address bar.  This is one way to protect yourself from oth…
The viewer will learn how to successfully create a multiboot device using the SARDU utility on Windows 7. Start the SARDU utility: Change the image directory to wherever you store your ISOs, this will prevent you from having 2 copies of an ISO wit…
If you're a developer or IT admin, you’re probably tasked with managing multiple websites, servers, applications, and levels of security on a daily basis. While this can be extremely time consuming, it can also be frustrating when systems aren't wor…

834 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question