Solved

force application minimize to task bar, registry key

Posted on 2012-03-27
3
622 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 500 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

Zoho SalesIQ

Hassle-free live chat software re-imagined for business growth. 2 users, always free.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Asus ks2003 driver XP 32 33 72
WinZip64 OS Command to Unzip a file. 10 36
Linux Scripting 3 59
Changing the domain admin password 9 40
Active Directory replication delay is the cause to many problems.  Here is a super easy script to force Active Directory replication to all sites with by using an elevated PowerShell command prompt, and a tool to verify your changes.
If you get continual lockouts after changing your Active Directory password, there are several possible reasons.  Two of the most common are using other devices to access your email and stored passwords in the credential manager of windows.
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…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

747 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now