Windows 7 Forums

Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: Cannot drag windows above top screen boundry.

02 Sep 2015   #11
vsub

Windows 7 Ultimate x64 SP1
 
 

Um what exactly do I have to explain....install Autohotkey=>create a new autohotkey file(it's actually text file with ahk extension)=>paste the code inside=>save and run the script.

Or do I have to explain what each line in the script does


My System SpecsSystem Spec
.
02 Sep 2015   #12
Berton

Windows 7 Ultimate 64-bit, Windows 8.1 64-bit, Mac OS X 10.10, Linux Mint 17, Windows 10 Pro TP
 
 

Not everyone uses the program or even knows about it. Providing instructions in a friendly manner helps other folks understand what a program does and how to make use of it.
My System SpecsSystem Spec
02 Sep 2015   #13
UsernameIssues

W7 Pro SP1 64bit
 
 

Quote   Quote: Originally Posted by vsub View Post
I made this autohotkey script to move windows.

Code:
~#LButton::
SetWinDelay,30
MouseGetPos,x,y,w
Loop
{
  GetKeyState,lbutton,LButton,P
  GetKeyState,LWin,LWin,P
  If (lbutton="U" Or LWin="U")
    Break
  MouseGetPos,mx,my
  WinGetPos,wx,wy,ww,wh,ahk_id %w%
  wx:=wx+mx-x
  wy:=wy+my-y
  WinMove,ahk_id %w%,,%wx%,%wy%
  x:=mx
  y:=my
}
Return
Win+LButton - hold the windows key and drag any window anywhere you click on it(not just the titlebar)
Quote   Quote: Originally Posted by vsub View Post
Um what exactly do I have to explain....install Autohotkey=>create a new autohotkey file(it's actually text file with ahk extension)=>paste the code inside=>save and run the script.

Or do I have to explain what each line in the script does

What is Win+LButton?
My System SpecsSystem Spec
.

02 Sep 2015   #14
vsub

Windows 7 Ultimate x64 SP1
 
 

Quote   Quote: Originally Posted by UsernameIssues View Post
What is Win+LButton?
Quote   Quote: Originally Posted by vsub View Post
I made this autohotkey script to move windows.
Win+LButton - hold the windows key and drag any window anywhere you click on it(not just the titlebar)
Win - Windows key
LButton - Left mouse button
My System SpecsSystem Spec
02 Sep 2015   #15
UsernameIssues

W7 Pro SP1 64bit
 
 

Thanks - I should have spent more time looking at your code.
The answer was right there in the GetKeyState lines :-)

I used that syntax for several years with early versions of AutoIt. When the AutoIt devs changed syntax, some devs left and started AHK. I stuck with the old syntax for a while and then converted. I've been away from that "AHK syntax" for more than a decade.

Anyway - let's hope that the OP returns to this thread and makes use of your code. You are kind to offer it.
My System SpecsSystem Spec
Reply

 Cannot drag windows above top screen boundry.




Thread Tools Search this Thread
Search this Thread:

Advanced Search




Similar help and support threads
Thread Forum
How to disable drag copy in windows 7?
yesterday I downloaded 7 files, but what happened is: i selected the 7 files & dragging the files to another folder (I am copying the files by dragging), then suddenly my bro disturbed me, then I accidentally dragged in same folder, so files copied again in same folder, so while deleting...
General Discussion
Drag and Drop Problem Windows 7
I have just been using my computer and all of a sudden i noticed that i can't drag and drop anymore. I am currently running Windows 7 Professional Service Pack 1. User Account Control is turned off and i have tried using another mouse and that's got the same problem. I am only dragging and...
General Discussion
Drag and Drop in Windows 7 does not function...
Hi everyone.. Thank you for having a look at this question... I have a Dell Studio laptop which has 4GB ram and a core 2 duo processor with a Windows 7 OS.. The problem with this laptop is that, I am not able to drag and drop icons on the desktop nor in the folders... Drag ...
General Discussion
No show desktop and switch screen,unable to drag icon to quicklaunch..
(No 'show desktop' and 'switch screen', unable to drag any icons to quicklaunch bar) Hello All, I install and run window developer preview on Seagate FreeAgent Go external HD using window 7 system. However, when adding quicklauch bar by adding new toolbar...
General Discussion
How to drag windows off the screen on the top?
I turned off the feature that maximize windows when I tried to drag 'em off screen. But now I can only drag windows off screen from the side, not the top... Why is that? :rolleyes:
General Discussion
Drag windows from one PC to the other?
I have a Windows 7 Home Premium 64bit laptop and a Windows Vista Home Premium 32bit desktop and I was curious if you could drag a window from my desktop to my laptop and control it on my laptop, and then drag it back. Is this even possible?
Customization


Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 04:45.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App