ATTENTION: You are viewing a page formatted for mobile devices; to view the full web page, click HERE.

DonationCoder.com Software > Finished Programs

DONE: Move Window without it gaining focus?

(1/4) > >>

AndyM:
A feature I miss from OS/2 that I'm wondering if someone can give me
back for XP Pro SP2:

To be able to click and drag a window that doesn't have focus and not
have it get focus.  In OS/2 one could do this by holding down the ALT
key and dragging the window.  I don't remember if you had to grab the
title bar or if you could drag any part of the window.  Either way
would be ok with me.

If I have part of a window sticking out from under my active window,
it would be nice to be able to adjust it's position while still
leaving the active window on top.

Andy

jgpaiva:
I already searched a bit for something similar to that, but couldn't find it :(
But imagine this:
You'd press alt+drag to move the other window, and when you released alt or mouser button, the focus would be returned to the last window active.
Do you think this'd do?

wr975:
Guess there's a better solution somewhere, but I use a always-on-top toggle for such situations. Any keyboard shortcut application should offer such function. Here's the one I use in my Autohotkey shortcuts script:


--- ---#a::
WinGet, ExStyle, ExStyle, A
if (ExStyle & 0x8)
{
   WinSet,AlwaysOnTop,off,A
   ToolTip,Disabled
}
else
{
   WinSet,AlwaysOnTop,on,A
   ToolTip,Enabled
}
Sleep,2000
ToolTip
return

Press WIN+A to toggle always-on-top on/off.

AndyM:
Thanks jgpaiva and wr975 for your suggestions.

I have a "keep on top" toggle, both hotkey and titlebar button that I
use often.  I was hoping for an Alt-click alternative when I wasn't
keeping the active window on top.

  > You'd press alt+drag to move the other window, and when you
  > released alt or mouser button, the focus would be returned to the
  > last window active.
 
That's probably not worth the trouble, since the active window would
be temporarily covered by the window I was moving.

I thought about a method that would

 1. Make the active window "keep on top"
 2. Allow me to move an unfocused window
 3. Restores focus to the original active window and toggle off "keep
    on top"
   
I can't figure out how to do step 1. when the first Alt-click would
change focus.  Is there a variable that would identify the last
(previous) window to have focus?

Now that I reread the posts, what did you have in mind when you said
"returned to the last window active"?  How would you identify that
window?   
 
 

skrommel:
:) Try MoveInactiveWin!

MoveInactiveWin - Move a window without activating it.

Features:
- Alt-Click and drag to move.
- Click anywhere within a window to move it!



You'll find the downloads and more info at 1 Hour Software by Skrommel.


Skrommel

Navigation

[0] Message Index

[#] Next page

Go to full version