Cannot drag windows above top screen boundry.

Page 2 of 2 FirstFirst 12

  1. Posts : 66
    Windows 7 Ultimate x64 SP1
       #11

    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 Computer


  2. Posts : 1,519
    Windows 7 Ultimate 64-bit, Windows 8.1 64-bit, Mac OS X 10.10, Linux Mint 17, Windows 10 Pro TP
       #12

    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 Computer


  3. Posts : 10,485
    W7 Pro SP1 64bit
       #13

    vsub said:
    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)
    vsub said:
    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 Computer


  4. Posts : 66
    Windows 7 Ultimate x64 SP1
       #14

    UsernameIssues said:
    What is Win+LButton?
    vsub said:
    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 Computer


  5. Posts : 10,485
    W7 Pro SP1 64bit
       #15

    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 Computer


 
Page 2 of 2 FirstFirst 12

  Related Discussions
Our Sites
Site Links
About 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 22:20.
Find Us