Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

My problem is that I want to assign a keyboardshortcut for Dreamweaver CS4 and I have it like this: "C:\Program Files\Adobe\Adobe Dreamweaver CS4\Dreamweaver.exe" Thats ok so far.

But when I press the key it doesn't place itself infront of everything else like Outlook and Visual Studio does for example, instead it blinks in the taskbar, and I have to click there anyway to get back to Dreamweaver.

Is there any switch or something I can assign for Dreamweaver to get back AND have it "popup?"

share|improve this question

Simple Solution

Try the following, it may solve the problem.

Right click the shortcut, and click on Properties. In the Shortcut tab, click the drop-down option beside Run:, and select `Maximized.

Hit apply, close the box, run 'er, and see what happens.

There's two other things you can try.

More Advanced Solution

The first is a simple VBScript to launch an application. What you need for this is the window title of Dreamweaver when it first launches. The code is as follows:

set oshl = createobject("Wscript.Shell") "C:\Program Files\Adobe\Adobe Dreamweaver CS4\Dreamweaver.exe", 10, false
    'search for name of window to activate
    retval = oshl.AppActivate("**DREAMWEAVER WINDOW TITLE GOES HERE**")
    if retval then exit do
    wscript.sleep 100
    count = count + 1
loop until count = 50 'loop for 5 seconds - change this if you need

Copy & paste that into Notepad, replace **DREAMWEAVER WINDOW TITLE GOES HERE** with the window title of Dreamweaver, save it as "launchDreamweaver.vbs", and launch that instead of the Dreamweaver executable.

Even More Advanced Solution

If that doesn't work, if you're a tad ambitious, you can write a program and invoke the BringWindowToTop function in user32.dll (see this MSDN article for method details). Then you could write a simple C#/C++/VB program to launch the program, and then set the Z-order.

I know that this may not be the most preferred method, but I don't believe you can invoke user32.dll using VBScript...

share|improve this answer
Allright, seems like some great stuff to dig into, but after a quick readthrough, how do I get the windowtitle of DreamWeaver? Thanks! /Christer – Chris_45 Sep 4 '09 at 14:27
Just look at the window title in the taskbar or the actual window itself (or if you go to the Task Manager, it will be the entry in the Task column). – Breakthrough Sep 4 '09 at 15:00

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .