DonationCoder.com forum
 
Read-only archive. This is a static copy of the DonationCoder.com forum. Reading and searching work as before; logging in, posting and private messages do not.
Archive of 2026-10-21 · About this archive · Main site

Author Topic: quick ahk idea: resize window with mouse click and scroll wheel  (Read 15,123 times)

nudone

  • Cody's Creator
  • Columnist
  • Joined in 2005
  • ***
  • Posts: 4,119
    • Cody Award
a simple idea (that might be already covered by a small util).

hold the left mouse button down and scroll the mouse wheel to make the current window taller.

hold the right mouse button down and scroll the mouse wheel to make the current window wider.

maybe hold both left and right buttons down and scroll to make the window larger in all directions.

(not thought about this for more than a few seconds so maybe those actions would conflict with other things.)

lanux128

  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 6,277
    • Coding Snacks
    • Volunteers/Staff
    • Gathering Badge
    • Participated in NANY Challenge Once
    • Linux User
Re: quick ahk idea: resize window with mouse click and scroll wheel
« Reply #1 on: September 28, 2008, 01:03 AM »
nudone, just gave a quick try on this one so please assume this as a beta script. :) based on the direction & mouse button, the scroll wheel shrinks or stretches the window. for smoother transition, edit the .ahk & change the 'NotchMove' value (see pic).

also, i can't get 'hold both buttons' thing to work so i switched the scroll wheel to be used with either 'Control' on the keyboard or the 'Back' button on the mouse (XButton1 in AHK-speak).

briefly the hot-keys:
LMB + Scroll Wheel -> Vertical
RMB + Scroll Wheel -> Horizontal
Control + Scroll Wheel -> Incremental
XButton1 + Scroll Wheel -> Incremental

ws-MouserSize-1.png

nudone

  • Cody's Creator
  • Columnist
  • Joined in 2005
  • ***
  • Posts: 4,119
    • Cody Award
Re: quick ahk idea: resize window with mouse click and scroll wheel
« Reply #2 on: September 28, 2008, 07:22 AM »
heheh, great job. i like it.

thanks lanux, have some credits...

lanux128

  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 6,277
    • Coding Snacks
    • Volunteers/Staff
    • Gathering Badge
    • Participated in NANY Challenge Once
    • Linux User
Re: quick ahk idea: resize window with mouse click and scroll wheel
« Reply #3 on: September 28, 2008, 11:43 AM »
thanks for the credits, nudone. :-* since it's working fine, i'll try to add an .exe version very soon.

icekin

  • Supporting Member
  • Joined in 2007
  • **
  • Posts: 264
Re: quick ahk idea: resize window with mouse click and scroll wheel
« Reply #4 on: October 09, 2008, 12:43 AM »
Volumouse can do something similar through the MoveResize Plugin.

Original address: https://www.donationcoder.com/forum/index.php?topic=15108.0