Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

1 Answer 1

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")
oshl.run "C:\Program Files\Adobe\Adobe Dreamweaver CS4\Dreamweaver.exe", 10, false
do
    '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
1  
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
1  
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

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.