AutoHotkey Community

It is currently May 26th, 2012, 2:16 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 5 posts ] 
Author Message
PostPosted: January 16th, 2009, 8:45 am 
Offline

Joined: July 30th, 2007, 11:32 pm
Posts: 581
After checking out WindowPad from Lexikos, I realized that the ability to neatly organize windows is extremely useful, especially across multiple monitors. But I felt like using the keyboard wasn't as intuitive as using the mouse. So, I created WinMouse! Because it feels so intuitive, I found it much faster than WindowPad. Here is the introduction from the documentation:

Quote:
WinMouse allows you to move and resize windows into predefined positions around the screen(s) using
your mouse. All you have to do, is to hover the mouse (no need to click) over the window you wish
to move, then press (and hold) the Capslock key to lock onto the window. As you move the cursor
around the screen, WinMouse will highlight the different locations (or "drop zones") where you can
place (or "drop") the window. Once you've chosen your drop zone, simply release the Capslock key to
drop it to the highlighted drop zone.

Screenshot showing a highlighted drop zone, as well as the AutoHotkey Help window which was dropped in the lower-right drop zone:
Image

The included config file is a good general beginning file which shows the capabilities of WinMouse. The documentation (after INI entries in WinMouse.ini) is quite thorough, but do not hesitate if you have any questions :) As always, any (constructive) criticism/comments/suggestions are welcome!

Download
To make sure your browser downloads the latest version, make sure you clear your cache.

Changelog

Jan 16, 2009

- Added the ability to restore a moved window to its previous position by pressing Capslock + Space
- Fixed up documentation (eg. changed Monitor 2 example to a 16-drop-zone configuration)
- Added ReverseNumPad key in WinMouse.ini -> allows you to invert NumPad superimposition.
- Added StringReplace -> you can now have spaces and tabs in the drop zone definition
- Added a few more comments in the script


Last edited by TheGood on February 4th, 2009, 3:29 am, edited 6 times in total.

Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: January 16th, 2009, 4:44 pm 
Offline

Joined: June 18th, 2008, 8:36 am
Posts: 4923
Location: AHK Forum
Nice idea, is there a way to restore previous window size?
As far as I understood I can define as many areas as I like, right? Can you post another ini having 16 instead of 4 areas?

Suggestion:
It would be great if you could spread all window in separate area automaticaly to get better overview, is it possible?

Thanks for sharing this script

_________________
AHK_H (2alpha) AHF TT _Struct WatchDir Yaml _Input ObjTree RapidHotkey DynaRun :wink:


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: January 16th, 2009, 5:06 pm 
Offline

Joined: July 30th, 2007, 11:32 pm
Posts: 581
HotKeyIt wrote:
As far as I understood I can define as many areas as I like, right? Can you post another ini having 16 instead of 4 areas?

Yes it is definitely possible. I don't have the time right now, but the [Monitor X] section would start off something like this:
Quote:
PointCount = 16
;First row
Point1 = 1-15
Point2 = 12-25
Point3 = 2-35
Point4 = 23-36
;Second row
Point5 = 14-45
Point6 = 15-5
Point7 = 25-56
Point8 = 26-6
[etc... It's easier if you try imagining it in your mind.]

I also have to update the documentation to specify that if a range contains two points which are on the same X (or Y), the drop zone will be a pane (for example, 2-5 indicates a horizontal pane (ie. which touches the left and right edges of the monitor) starting at 2 and ending at 5).

HotKeyIt wrote:
Nice idea, is there a way to restore previous window size?
Suggestion:
It would be great if you could spread all window in separate area automaticaly to get better overview, is it possible?

Great ideas. The first one might be tricky to do (doable, but it would add too much complexity to the script I fear), but the second is a great idea!
I have to go right now, but I'll work on it later today.

HotKeyIt wrote:
Thanks for sharing this script

Glad you like it! :D


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: January 16th, 2009, 8:25 pm 
Offline

Joined: July 30th, 2007, 11:32 pm
Posts: 581
TheGood wrote:
PointCount = 16
;First row
Point1 = 1-15
Point2 = 12-25
Point3 = 2-35
Point4 = 23-36
;Second row
Point5 = 14-45
Point6 = 15-5
Point7 = 25-56
Point8 = 26-6
[etc... It's easier if you try imagining it in your mind.]


I don't know why, but I was confused when I wrote that (I thought 1 was in the upper-left). Here is the complete section in order to split the screen in 16 drop zones:
Quote:
PointCount = 16
;First row
Point1 = 7-48
Point2 = 78-85
Point3 = 8-59
Point4 = 89-96
;Second row
Point5 = 74-45
Point6 = 48-5
Point7 = 85-56
Point8 = 59-6
;Third row
Point9 = 4-15
Point10 = 45-52
Point11 = 5-26
Point12 = 56-63
;Last row
Point13 = 14-12
Point14 = 15-2
Point15 = 25-23
Point16 = 26-3


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: January 16th, 2009, 10:10 pm 
Offline

Joined: July 30th, 2007, 11:32 pm
Posts: 581
Updated WinMouse with the following changes:
Quote:
- Added the ability to restore a moved window to its previous position by pressing Capslock + Space
- Fixed up documentation (eg. changed Monitor 2 example to a 16-drop-zone configuration)
- Added ReverseNumPad key in WinMouse.ini -> allows you to invert NumPad superimposition.
- Added StringReplace -> you can now have spaces and tabs in the drop zone definition
- Added a few more comments in the script


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 17 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group