DonationCoder.com Forum

DonationCoder.com Software => Coding Snacks => Post New Requests Here => Topic started by: nudone on May 28, 2006, 03:59 PM

Title: IDEA: drag window to edge automatically resizes it
Post by: nudone on May 28, 2006, 03:59 PM
i'm about to describe something that has 'probably' been done already elsewhere - if so can someone please let me know what the program is called...

if not, then i think this is another autohotkey task - i'd have a go myself but i much prefer to dish out the DC credits to someone that can save me the headache.

anyway, this is my request:

i've a 24" widescreen monitor (which i seem to keep telling everyone) and i'd really like to make full use of it, well, as it's so wide i'd like to use it like a dual monitor layout sometimes.

i'd like to be able to drag a window to the left or right edge of the screen and after a short pause the window would resize itself to fit the right half or the left half of the monitor.

this could be extended so if i drag a window the the bottom edge it will resize to fit the bottom half OR some other resize.

this type of drag window auto resize could be extended further so that there would be specific areas along the left and right and bottom edges of my screen (NOTE HOW I SAY BOTTOM - that's just because i have the system taskbar and system tray at the top of my screen), these specific areas would act as the triggers to auto resize the window to preset window sizes and locations.

so, as an example, i'd drag my web browser to the left of the screen - when the mouse cursor reaches the edge of the screen i pause and hold the window title a bar a second or two then it auto resizes to fit just the left part of my monitor.

if i drag to the window and pause on LOWER left side of the screen then the window auto resizes to fit the lower left quarter - a similar thing would happen on the right hand side of course if i dragged it there.

the bottom and top edges of the screen could trigger several other window sizes and positions, say, drag to the top middle and the window centers and resizes to 1024x768 or whatever.

i think this idea could be extended further - these are just the things that occur to me straight away.

i know there are keyboard shortcuts for this sort of the thing that have been done before - which is great - i'd really like to have both features really: user definable keyboard shortcuts for the main auto resizes and mouse drag trigger borders too.

thanks for listening.
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: jgpaiva on May 28, 2006, 05:25 PM
You definitelly are looking for Acer GridVista (http://www.acer.co.th/product/travelmate/AcerGridVista.htm).
Now, the question here is if it can be used by non-acer computers.
And if there's another alternative.
But i have that software, and it works just perfectlly. Unfortunatelly, my screen is too small to give it some real use.
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: Carol Haynes on May 28, 2006, 05:39 PM
Nice find ... Just tried it on my MSI Based AMD computer (using WinXP Pro) and it seems to work great.

You can download it from this page (http://www.acer.com.hk/english/services/download/driver.php?model=AS1690) - though you get a dire warning about BIOS upgrades - which of course this isn't ;)

Here are a few screen images to show you how it works ...

First it adds and icon to the system tray, where you can select the screen layout you want ...

(http://static.flickr.com/76/155097158_144520e0e7_o.png)

Three icons are added to all windows' title bars during installation...

(http://static.flickr.com/61/155098665_d01798a940_o.png)

Unfortunately there is no way to reposition or diable these buttons which is a nuicance if you PS HotFolders installed as you can't see all of the HotFolders icon because the third GridVista button is drawn dynamically over it. You can see enough to use PS HotFolders but it is slightly annoying. The PS right click menu works fine (even if you right click on the GridVista icon over it!!) but requires a degree of accuracy for left click.

The left button allows you to place this window in a predetermined area of the screen by the grid layout you chose at the system tray:

(http://static.flickr.com/56/155100144_3e48018430_o.png)

You may also notice that you can make the window transparent from that button too (though there are no choices for levels of transparency - I'd guess it is about 50% transparent).

The button 1 options are also added to the window menu (right click on the title bar).

Once you have locked the window to a particular region moving the window about the screen locks it to the nearest grid region when you release it.

The centre button allows you to enable or disable the lock to grid feature.

The pin button gives a quick always on top feature for the window.

If you have placed the window in the grid then double clicking the title bar or hitting the maximize button returns the window to its original location even if you have moved it round the grid previously. Hitting the maximize button a second time actually maximizes the window to full screen.

Also if the grid lock is enabled when you drag a window the underlying grid is displayed on screen and you can simply drop the window into predetermined places.

(http://static.flickr.com/72/155106186_1c1422173f_o.png)
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: nudone on May 29, 2006, 02:47 AM
many thanks jgpaiva and Carol.

i'll download and play with it right now...
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: mouser on May 29, 2006, 02:58 AM
standard reminder: this is what credits are made for :)
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: nudone on May 29, 2006, 03:06 AM
i've had a quick play with it but it's not really what i'm after - picky aren't i.

i'd still very much like what i described above as it would be far more versatile and powerful - it would also work smoother and be less complicated in use.

i'll keep trying gridvista as it's almost there and maybe i'll get used to it - anyone wishing to try to fulfil my original request will be rewarded of course.
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: nudone on May 29, 2006, 03:18 AM
i think i prefer skrommel's 'winwarden' to gridvista - i know, i know, it hasn't got the 'drag' functions that gridvista has but i prefer the number of options it does provide.

Title: Re: IDEA: drag window to edge automatically resizes it
Post by: jgpaiva on May 29, 2006, 03:53 AM
i think i prefer skrommel's 'winwarden' to gridvista - i know, i know, it hasn't got the 'drag' functions that gridvista has but i prefer the number of options it does provide.
Yes, i also noticed that gridvista is quite incomplete, with a few more options, it might be just perfect.
I think the most important features it misses are the resizing of the grid and the adjustment of how many grids there can be.
I would do the coding snack myself, but i'm a bit scared, since my recent problems with ahk window moving / resizing (from dialogMove).
Still, if noone answers this request, i can give it a go.
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: nudone on May 29, 2006, 05:14 AM
:D i think this is the perfect project for you, jgpaiva.

with the dialogmove project you must be an expert on window moving.

there's also a util i have from years back that allowed resizing the grid (i'm trying to remember what it's called) but it didn't have the auto drag resize options i want so i never really used it. i'll try and find it.

anyway, i hope you take up the challenge, jgpaiva - cody has something nice for you after all...
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: jgpaiva on May 29, 2006, 05:21 AM
with the dialogmove project you must be an expert on window moving.
That's exactly my problem, do you remember what dialogMove does to some windows, that problem might appear again, but as they say in the movies, "in an unparallel dimension", since it can't be avoided (but in dialogmove, it can, because of the exceptions).

I think this is something more in line with skrommel's winwarden, but you're right, some of the code of dialogMove can be reused to this util.
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: skrommel on May 29, 2006, 07:18 PM
:) Try this one!

(https://www.donationcoder.com/Software/Skrommel/ZoneSize/ZoneSize.gif) ZoneSize  (http://www.1hoursoftware.com) - Define zones that autosize windows dropped on them.

Features:
- Hold a window over a zone for .5 sec to autosize it.
- Doubleclick the tray icon to center the active window.

(https://www.donationcoder.com/Software/Skrommel/ZoneSize/ZoneSizeScreen.gif) (http://www.1hoursoftware.com)

You'll find the downloads and more info at  1 Hour Software by Skrommel (http://www.1hoursoftware.com).

It went from a ten-liner to an ugly big mess, so there's probably bugs in there.

Skrommel
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: nudone on May 30, 2006, 01:13 AM
that looks great, thank you very much skrommel.

will download and try now.
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: nudone on May 30, 2006, 02:41 AM
skrommel's 'zonesize' is a great improvement upon 'gridvista' - you can define you own zone with it.

BUT, it's still not what i was hoping for - sorry to be a pain.

i've included a screen grab to try and clarify what i meant.

the 'trigger zones' are at the edge of the screen - nothing happens unless the mouse cursor and a window title bar are within one of the 'trigger zones' (this would also mean that the left mouse button is being held down on the title bar - because it has just been dragged to the side of the screen).

the 'trigger zones' would only have to be 1 pixel wide down the edge of the screen and would hopefully be definable so that various 'trigger zones' could be set up around the edges of the screen.

this edge based 'trigger zone' method appears to be more of a powerful idea to me as you would only 'trigger' the auto size function to work when all the criteria of was met, i.e you wouldn't accidentally trigger an auto size window function unless you really wanted it - this is unlike the gridvista/zonesize methods that assume you want a window to auto resize as soon as it is dragged within a large zone area somewhere on your screen - which you most often will not want if you are simply moving windows around the place.

(the edge trigger zone method could of course be extended to 'trigger' off macros as already seen in other programs.)

would it be 'simple' to modify the 'zonesize' script?

i wouldn't know where to start but if either you, skrommel, or jgpaiva could do it i'd be very grateful.
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: nudone on May 30, 2006, 03:28 AM
to clarify things a bit further, here are the 'typical' zone layout that the windows would auto resize to after the 'trigger' has been activated...
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: jgpaiva on May 30, 2006, 04:03 AM
 ;D ;D
I was now going to reply saying i was going to do this, because i got how to do it. Looks like i came a bit too late ;)
Nudone: I got what you mean, but i think there's a better way to do it:

How about if you can define lots of squares in your workspace, and then, when a window is being grabbed (with the left mouse button), if you press the right mouse button, the window would grab to that area.
The advantage of this would be that you could have something like this:

[ You are not allowed to view attachments ]

Where you could have a bunch of windows on the left, just as if it was a taskbar.
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: nudone on May 30, 2006, 04:28 AM
i'm happy to go with your right click method, jgpaiva.

all i really wanted was a quick way of resizing a window to fit either on the left half or the right half of the screen without having to use keyboard shortcuts or several mouse clicks - the drag to screen edge seemed like a simple 'flowing' method of creating a trigger.

if you could create the zones and the 'right click' to trigger window resize/position script, without any annoying slow window refreshing that gridvista and zonesize appear to suffer from, then i think it will be a great job.
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: kimmchii on May 30, 2006, 05:50 AM
i found SplitView (http://www.splitview.com/), you might wanna give it a try.
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: jgpaiva on May 30, 2006, 06:00 AM
i found SplitView (http://www.splitview.com/), you might wanna give it a try.
I haven't tried it, but it looks like a great find, kimmchii!
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: jgpaiva on May 30, 2006, 06:37 AM
I like this program! I hope I can make it work flawlessly, because i'd even use it myself!

Ok, here's GridMoveAlfa1 (http://jgpaiva.dcmembers.com/CS/GridMove/GridMoveAlfa1.ahk)!
Right now, it's more of a beta (or would it be alfa?), since i only want to have your opinion, nudone.
It works like this:

At the beggining of the file, there's something with this sintax:
Spoiler
NWindows=4

top1=0
Right1=250
Left1=0
Bottom1=250

top2=250
Right2=250
Left2=0
Bottom2=500

top3=500
Right3=250
Left3=0
Bottom3=750

Top4=0
Right4=1280
Left4=250
Bottom4=770


NWindows has the number of areas there are. the following blocks of 4 lines, each represents an area of the screen.
In this example, it's for a 1280*800 screen, with 4 areas, positioned like this:
Spoiler
***************
*  1  *                *
*****                *
*  2  *       4        *
*****                *
*  3  *                *
***************


This script monitors the mouse position. So, drag a window, until the mouse is in any of the areas, release the mouse, and click again. (with the left mouse button)

I say again: this is a BETA version, still has a few bugs, not related to the window moving, but with the detection of the mouse clicking and such.

I only have one question: would you consider having it working just the way it works now, but instead of a cecond click, having a 'space' press?
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: jgpaiva on May 30, 2006, 08:15 AM
I really am loving this program!
I've made a small change, Now, to move the window, you have to drag it, then press space (at maximum, one second after you drag the window)

Here's the link: GridMove Alfa2 (http://jgpaiva.dcmembers.com/CS/GridMove/GridMoveAlfa2.ahk) (the url in the earlier thread points to the alfa1).
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: nudone on May 30, 2006, 08:19 AM
my initial thoughts on 'gridmove' are that it work very well - the 'click again' to resize the window is a clever idea and it is simple enough for it to be 'painless' to do.

i wouldn't really go for the 'hit space bar' to resize as was trying to stay away from using the keyboard completely - maybe i'm the only person like this but sometimes i really find moving my left arm a real chore just to press one key for something.

but, of course, it would be great to offer keyboard functions within the program that could be enabled or disabled by the user.

the only problem i see at the moment with the 'click again' to resize function is that an accidental 'click again' would be easy to do. i did it a couple of times whilst testing so maybe it would be nice to offer the user how they would like the 'trigger' to work, i.e. they could have a 'second left click' or a 'single right click' or a 'hit space bar' or whatever to initiate the auto resize process.

great work so far, jgpaiva - i think you are heading in the right direction with the 'click again' feature - or something equally unobtrusive.

more on the 'click again' feature:
i've just tried it a few more times and it appears to me that the problem with all the solutions that have been offered so far all suffer from the same problem, i.e ZONES.

because the trigger zones are so large it's easy to trigger them off even though you may only be moving a window to a different location on the screen without wanting it to auto resize. gridvista, zonesize and now gridmove have all resized a window when i didn't really want it to.

maybe the 'right click' method would help resolve this with gridmove but i'm wondering would things become confused if you were to move a window then right click to open the context menu and then the auto resize would be triggered by accident - all because the window falls within one of the large trigger zones.
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: jgpaiva on May 30, 2006, 08:30 AM
Ok... You gave me a good idea, that i think might be the perfect solution.
Drag the window, release it, then do right click. (note you have to release it before clicking)

I think this might be the best solution (i also am not much for the spacebar solution, because it needs the other hand).
Here's the link:  GridMove alfa2 (http://jgpaiva.dcmembers.com/CS/GridMove/GridMoveAlfa2.ahk)
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: nudone on May 30, 2006, 08:54 AM
i don't seem to be able to download the new 'alfa2' version????
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: jgpaiva on May 30, 2006, 09:02 AM
Good thing you can't, I've changed it.
Now, it's drag + left click. It seems to be working fairly well, actually.
I've also limited this to the caption (actually, to the 25 topmost pixels of the window). So, the second click has to be done in that area.

GridMove Alfa2 (http://jgpaiva.dcmembers.com/CS/GridMove/GridMoveAlfa2.ahk)
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: nudone on May 30, 2006, 09:11 AM
i like the way the latest version is going but there still is the problem of accidental clicks...

the scenario is like this: you move the window within a trigger zone, then you decide to move it a little bit but 'gridmove' thinks you want to auto resize the window (again).

can we have a more intelligent mechanism for detecting the 'trigger' click - maybe a longer duration that the left mouse button has to be held down or something like that without it moving at the same time.

i've also noticed a side effect where the window can be dragged even when the cursor is not over the title bar - this has been done in other programs several times before but maybe it would be nice to incorporate it into gridmove - only if it's a simple thing to do and it didn't create further problems - maybe it could work if both mouse buttons were held down at the same time?
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: nudone on May 30, 2006, 09:20 AM
oh, and thanks for the link, kimmchii.

i think 'gridmove' is the better program, though.
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: jgpaiva on May 30, 2006, 09:30 AM
the scenario is like this: you move the window within a trigger zone, then you decide to move it a little bit but 'gridmove' thinks you want to auto resize the window (again).
Did that happen to you? I tried doing it, but all i got was a bit of flicker, since it was moved to the place, and then moved back.
The thing is: Right now, i reduced the time between the drag and the click, to avoid such situations.
Making the trigger click be longer, is not a big deal, i just am not sure if it would compensate having the work of stoping the mouse, and clicking longer, to the other effect. Still, worth a try.

i've also noticed a side effect where the window can be dragged even when the cursor is not over the title bar - this has been done in other programs several times before but maybe it would be nice to incorporate it into gridmove - only if it's a simple thing to do and it didn't create further problems - maybe it could work if both mouse buttons were held down at the same time?
Sorry, I didn't understand. Did you get that effect, or would you like it to be implemented?

Having it in clicking with both buttons can be done, but will conflict with other apps (like opera), and might be buggy (i'm not sure, though).
Do you have a mouse with more than 2 buttons? ;)
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: nudone on May 30, 2006, 09:45 AM
i probably just need to try using the current version for a bit longer - then it probably won't have the side effects i mention.

i can drag the window when it's not over the title bar if i let the window auto resize/move and i don't release the left mouse button - so, really, the window is jumping to fit the grid zone but my mouse cursor is remaining in the same place on screen - if i keep the left mouse button down it gives the appearance that i'm dragging the window without using the title bar. it's not a problem.

the two button thing isn't worth the hassle nor is the moving windows without clicking on the titlebar.

the auto size to zone is all i wanted to i'm happy with how things are - i just need to use it a while longer to see if any other problems pop up.

thanks for the work so far.
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: nudone on May 30, 2006, 09:57 AM
i'm still finding the large trigger zones a problem.

this becomes especially problematic when manually adjusting a window to reduce it's size after it has taken up one half of the screen (but will be a problem also when just manually changing a window).

because the large zones make in very difficult to be out of a trigger zone it's very easy to set the trigger off just be resizing and repositioning a window. i don't really want to have to become super careful when trying to manually resize a window as it will defeat the object of having a tool like 'gridmove' automate things for you.

maybe the delay trigger unless the mouse is held down on the title bar (whilst the mouse and titlebar remain stationary) for a couple of seconds will help???
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: jgpaiva on May 30, 2006, 10:49 AM
Ok... I've restricted the trigger.
Now, the trigger has to be a single click. If the person tries to drag the window after dragging it once, it will not snap the window, but move it. Let's see if this makes more sense.

I'm now working on the moving windows in places other than the title bar, as i also want it ;)
(you didn't answer me: does your mouse have a mouse wheel button?)

[edit]forgot the link.. GridMove Alfa2 (http://jgpaiva.dcmembers.com/CS/GridMove/GridMoveAlfa2.ahk)[/edit]
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: nudone on May 30, 2006, 11:18 AM
sorry, my mouse has 8 buttons so the middle/third button would be available for use.

i shall now try the new gridmove...
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: nudone on May 30, 2006, 11:23 AM
WOW, the latest gridmove feels like a fully pollished util now.

if it's possible to include keyboard shortcuts and the drag window without using title bar then it's going to be one fine program.  :Thmbsup:
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: nudone on May 30, 2006, 11:28 AM
time to throw a spanner in the works...

what happens if grid zones overlap?

i was thinking that it would be nice to have a 'central' grid zone in the center of the screen that would resize windows to a nice default type of size, say 1024 x768 (i'd probably use larger) but this would overlap other grid zones - especially the type of grid zones that occupy one half of the screen. i can see that if you were careful it wouldn't matter about the overlap and i'm assuming that as it's a script the first 'zone' that is defined would take precedence.
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: jgpaiva on May 30, 2006, 11:30 AM
Ok... I'm loving this!
I think it's almost ready to evolve to beta ;)

You can now move a window with middle mouse button + right button.
But only the middle mouse button has to remain pressed. Which means you can do the following:
Press middle mouse button, press right button, release right button, drag window, release middle mouse button. (sorry for the lame description, i couldn't find a better one)

Another important issue is that when you move a window this way, after you release it, it gets snapped. I've been playing with it, and it looks soooo neat!

Let's see your opinion: GridMove Alfa2 (http://jgpaiva.dcmembers.com/CS/GridMove/GridMoveAlfa2.ahk)
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: jgpaiva on May 30, 2006, 11:32 AM
what happens if grid zones overlap?

Here's your answer:
i'm assuming that as it's a script the first 'zone' that is defined would take precedence.
:P

Yes, that's exactly it. This script goes from the first area, to the last, in order, checking if the mouse is inside that area. If it it, it moves the window, and stops.
This means, that if you define the big area as the first one, it will be prioritary.
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: nudone on May 30, 2006, 11:43 AM
it's certainly i nice feature but can we have it so that the third mouse button drag feature can be toggled on whether it snaps to grid or not?

i'd probably just use the 3rd mouse way just to move windows around without them snapping to grid but i can see the appeal of it doing the snap to grid also.

this isn't quite the same and maybe it's just less intuitive but how about just using the 3rd mouse button (without a right mouse click) to drag window contents but only if the cursor is positioned over the edge of a window. it may sound kind of strange but this would behave in a manner that 'windowblinds' skins work when they have a thicker window border as part of the skin - it uses the left mouse click, though, as there is a definable border to click on.

this 3rd button click on edge to move window would also be like how many of us are used to moving skinned windows around in some programs where you don't have to click on the title bar.

i'm just suggesting this method as it's a bit fiddly for me to click the 3rd mouse button and then the right mouse button and drag the mouse at the same time...


(that's a good point about the most important window coming first in the script - looks like i can define what i was after.)
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: jgpaiva on May 30, 2006, 12:06 PM
Yes, it'll be possible to choose whether to snap or not to the grid. Possibly in the next version.
Making the window movable when pressing the middle mouse button, and close to the border is also easy.

As for moving the window like it's right now, it's similar to what you're referring. Notice this: you only have to press the middle mouse button, then click the right button, and drag the window. I find it very useful ;)

Ok.. Now, i'll use it the rest of the day, see if there are any bugs, and if not, tomorrow i should have a more complete version (with settings storing, gui, and such ;) )
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: nudone on May 30, 2006, 12:29 PM
excellent. i look forward to the next version.

if it's not a problem to implement all the features, i.e. the 3rd mouse button + right click to drag from anywhere and the 3rd mouse button solo to drag from window edge then i can't really ask for more.

the keyboard shortcuts are going to be something that users will expect so it would be nice to allow that for specific grid zones.

it's a fantastic job so far.
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: jgpaiva on May 30, 2006, 12:50 PM
if it's not a problem to implement all the features, i.e. the 3rd mouse button + right click to drag from anywhere and the 3rd mouse button solo to drag from window edge then i can't really ask for more.
Nope, no problem at all, that's only 4 more 'if' instructions ;)

the keyboard shortcuts are going to be something that users will expect so it would be nice to allow that for specific grid zones.
Good point, i had forgotten about that. But i also want them ;)


Now.. Just to get your opinion, check this out: GridMove Alfa3 (http://jgpaiva.dcmembers.com/CS/GridMove/GridMoveAlfa3.ahk)
This one, works just like you asked in the first place! (at least, it should ;) )
It's faster, and easier, but i think it's more limited (this was the reason that made me not adopt this system), since it can't have any groups in the middle of the screen, and also a bit more anoying, since if you accidentally drag something out of the borders, you get some incorrect behaviour.
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: nudone on May 30, 2006, 01:39 PM
i like the alfa 3 version - for it to work properly it requires a timer feature so there is a delay between the drag and then the resize - this should avoid the accidental resizes i would hope, i.e. you have to hold the mouse down at the edge of the screen and on the title bar for a couple of seconds.

the second click feature that you've implemented so far does feel good, though, so i'm not too concerned about my 'screen edge' zones being discarded.

it was nice to see it working, so maybe if it was tweaked a bit further the 'screen edge' method could be a nice feature to enable or disable in 'gridmove'.

if you can provide the slight delay feature before the 'edge' triggers went to work then i'd have a better idea of whether the method was worthwhile. their would be a slight difference to how you've done things, though, as the 'screen edge trigger' wasn't really meant to be a part of the 'window resize zone'.

my idea was that there are two zones for each action. there is the 'trigger zone' this could be anywhere around the edge of the screen - and then there would be it's corresponding 'window resize zone' which could be anywhere on the screen.

so, as an example, i could drag and hold a window title bar over at the bottom right edge of the screen and after two seconds the trigger would be activated and the window i was holding would automatically jump to the center of the screen and resize to 1024 x 768 - there is no need for the trigger zone and the resize grid to be next to each other. i appreciate that wouldn't be very intuitive but my main aim was to just have something that 'flowed'.

i suppose it was really a bigger version of what you get when working with panels/panes inside macromedia software and acdsee - you just drag and release - no extra mouse clicks. i just extended it a bit further by not having the 'resize zone' as part of the trigger as i thought this would be more powerful.
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: jgpaiva on May 30, 2006, 01:47 PM
Hum.. I can see your idea. But i dislike the delay, as it takes some time. (Can, and i think will, be implemented, though)

Ok.. I have yet another version for you to test. In my opinion, this is the best one so far.

I've realized that when someone uses the midle mouse button, it's only for one click, not for click and drag. So, i made one version that on click with that button, sends a click, and on drag, moves the window.
This might have conflicts with other programs that need to have the dragging with that button, though, so, i can easily make it be configurable (like using mouse-button4 or 5 instead).

GridMove Alfa3 (http://jgpaiva.dcmembers.com/CS/GridMove/GridMoveAlfa3.ahk) (it's similar to the other one, but has the feature on the mouse middle button)
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: nudone on May 30, 2006, 02:15 PM
i still like the 'click again' with left mouse button to resize window when it falls within a 'resize zone' - it just felt so precise they way it worked.

the 3rd mouse drag does indeed conflict with certain programs - i think maya and 3d max are two i know of - but as you say, if you allow it to be user definable then problem solved - i'd still like to see the 3rd mouse window edge drag thing working too.

if you can implement all the methods that have been described so far but allow them to be turned on and off by the user then everyone will be happy - it's going to be one hell of a super mouse app. i can see cody dancing up and down on that keyboard with glee already  :D (okay, so it's in my minds eye and not on the forum page.)
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: nudone on May 31, 2006, 03:11 AM
here's the little app i was trying to remember earlier on...

HandyThing: http://www.starfishbay.com/handything/basics.shtml

it doesn't really compare with gridmove. i just thought i'd include it here as another example.
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: jgpaiva on May 31, 2006, 01:47 PM
Ok... I think i've got to a final conclusion about the right interface.
I fixed the drag+right click interface, and it looks like the best one so far (the drag,release,left-click is a bit uncertain, sometimes, it can not do anything).

I also added a gui, that appears 1second and a half (in the next versions, it'll be costumizable), and has information on where the groups are.

The middle-button drag + right-click interface is also enhanced, it looks really good now. (try it, i'm sure you'll love it ;) ).

I also have been testing with overlapping groups, and it works great, and has a fantastic effect.

I've had another idea (which i think is similar to your original idea):
Instead of having only areas, we could make each of the areas have a specific "trigger area", which might (or might not, depending on how the user wants it) be different from the area itself. The big advantage of it would be that the program might actually work only by dragging, and if the mouse was in a trigger zone, the window would be resized to fit the corresponding area.

(now that i think about it... this was exactly your first idea wasn't it? i'm sorry, i think i only understood it now)

GridMove Beta1 (http://jgpaiva.dcmembers.com/CS/GridMove/GridMoveBeta1.ahk)
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: nudone on May 31, 2006, 02:46 PM
I've had another idea (which i think is similar to your original idea):
Instead of having only areas, we could make each of the areas have a specific "trigger area", which might (or might not, depending on how the user wants it) be different from the area itself. The big advantage of it would be that the program might actually work only by dragging, and if the mouse was in a trigger zone, the window would be resized to fit the corresponding area.

(now that i think about it... this was exactly your first idea wasn't it? i'm sorry, i think i only understood it now)

GridMove Beta1 (http://jgpaiva.dcmembers.com/CS/GridMove/GridMoveBeta1.ahk)

er, yes, that was the original idea but i'm glad that you came around to it in the end  :D better late than never as they say (they do in the UK anyway).

i shall now download the new beta1 version and let you know what happens...
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: nudone on May 31, 2006, 02:50 PM
unfortunately, i can't use the new beta1 version at all - as soon as i click on a window title bar and drag it my mouse cursor become locked onto the title bar and won't release ????????????????

oh dear.  :huh:
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: jgpaiva on May 31, 2006, 03:20 PM
WTF.... I can't reproduce that, in any of the computers i am trying. I'll look into it!
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: nudone on May 31, 2006, 04:46 PM
thought i better try it again but whatever i do as soon as i click a title bar it sticks to my cursor.

 :(
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: nudone on May 31, 2006, 06:08 PM
tried again...

the title bar always becomes stuck to the mouse cursor when i click on it...

but, i can release the title bar by left double clicking - the window doesn't resize or do anything after that.

the good news is that i've seen the 'grid overlay' mechanism - and i've realised how it works (on my machine, at least).

does this sound right:

3rd mouse button click and hold inside window then right mouse click to bring up the 'grid overlay' then move cursor and right click to select 'grid'.

i've also had the 'side triggers' working - in a similar way to the above but without the 3rd mouse button click.

i've also noticed that i can't minimise or restore windows when the new beta version is running.

i can see the potential of this mechanism - it appears that the only difference to what i originaly suggested is that the edges of the screen act as a single trigger and then you move the mouse cursor to select the grid you want to resize the window into.

this seems like a very nice way of working i wish i could test it more but it's not really practical to use at the moment on my system.

i hope trying to solve it isn't too much of a headache??????
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: jgpaiva on June 01, 2006, 09:22 AM
I've tried it already in 4 different computers, some even without ahk installed, and never could reproduce the problem you had.

Let's try a few stuff: please download the latest version of ahk, and test the script i've attached to this post. (just run it, and follow the message boxes). Then, post if it worked correctly.

BTW, which OS are you running?

The problem you mentioned is exactly what would happen if in the following lines:
SnapWindow:
  send, {LButton up}
was
SnapWindow:
  send, {LButton down}
instead.

I'm finding it a bit odd, but let's try to find out if that's it.
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: nudone on June 01, 2006, 10:06 AM
 ;D fantastic.

i dowloaded the latest version of autohotkey and now the beta1 version appears to be working.

your little test 'nudonetest.ahk' worked perfectly too before i updated autohotkey.

it looks like you can continue to the next beta version - great job that you figured out that there couldn't be anything wrong with the script so it had to be autohotkey itself.

as for how it works - i wasn't expecting a right click would be necessary to confirm the resize but i'm getting used to it.

so far the method of dragging the title bar and then pausing with the left mouse button down seems like the nicer idea - could this not be made a little more automatic so once the transparent grid appears all you need to do is keep dragging the title bar onto the 'grid zone' you want to resize into - AND then release the left mouse button, i.e. no right clicking or 3rd button clicking.

i can see that the method i've described might cause a problem if you decide that you don't actually want to resize to a grid zone (if you change your mind or have accidently held the left mouse button down on the stationary title bar for too long) - but maybe it would be good to have a 'right' mouse click act at the 'cancel' operation.

i'm just trying to suggest ways of keeping 'gridmove' a 'flowing' type of interface - left clicks always feel more natural and the less clicks there are the more refined the program will feel.

great work again, jgpaiva.

can we have the grid a bit more transparent in the next version, please.  :D
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: jgpaiva on June 01, 2006, 10:14 AM
Great to know it's now fixed!

so far the method of dragging the title bar and then pausing with the left mouse button down seems like the nicer idea - could this not be made a little more automatic so once the transparent grid appears all you need to do is keep dragging the title bar onto the 'grid zone' you want to resize into - AND then release the left mouse button, i.e. no right clicking or 3rd button clicking.

i can see that the method i've described might cause a problem if you decide that you don't actually want to resize to a grid zone (if you change your mind or have accidently held the left mouse button down on the stationary title bar for too long) - but maybe it would be good to have a 'right' mouse click act at the 'cancel' operation.
I fully agree with you, and i think this can be done.

can we have the grid a bit more transparent in the next version, please.  :D
The first one was already supposed to be fully transparent, but for some reason, it only worked right in my computer. I have already fixed this, i'll post the fixed version soon.


Just another comment on the 3rd button drag. I think it's not quite clear how it works, but i'll try to explain it a bit better. It's press+hold 3rd button, click rbutton for the grid to appear, and then, drag, and release the 3rd button to adjust to the grid.
For me, this is the best way to use this program, much handier than moving the title bar, i think.
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: nudone on June 01, 2006, 11:42 AM
Just another comment on the 3rd button drag. I think it's not quite clear how it works, but i'll try to explain it a bit better. It's press+hold 3rd button, click rbutton for the grid to appear, and then, drag, and release the 3rd button to adjust to the grid.
For me, this is the best way to use this program, much handier than moving the title bar, i think.

yes, i understand - it's just something i need to use for a bit then it will feel natural using the 3rd and right mouse buttons in that way.

or...

if you can still provide the various options that have been tried so far (well, i suppose not all of them - what do you think) then the user will be free to choose the method that best suits there style of moving around in the operating system.

being able to drag a window using the just the 3rd mouse button is a cool idea - and i'd be content for it to work by having to click a window border to make the drag work - so it didn't interfere with other programs that use the 3rd mouse button.

anyway, i guess it's still early days yet - user configs are the least important thing at the moment.
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: jgpaiva on June 02, 2006, 06:55 AM
Good news!
GridMove Beta2 (http://jgpaiva.dcmembers.com/CS/GridMove/GridMoveBeta2.ahk) is out!

This one is a major update.
At the beggining of the file, there's an option to use or not the 3rd button drag, which now uses exclusively the 3rd button. You only have to press and hold the 3rd button, and drag the window. If you only click the button, it'll behave just as a normal 3rd button click.

I still didn't implement the edge drag, though.

I've also implemented the trigger method. Now, for each group, there's a "trigger" and a "grid" group. The "trigger" group, represents the area where the group is activated, and the "grid" group represents the area where the window will be moved.

Also, while dragging a window with the middle mouse button, if you hover over a trigger area, the corresponding grid area is hilighted.

Another important adition is that if you drag a window (with the left button), and drop it before the timer ends, it behaves normally. If you drop it after the grid appears, it'll resize to the grid.
In the first case, the right-click would make the window resize to the grid. On the second case, it cancels the resizing.

So.. Let's see some opinions ;)

[edit] I also made it be auto-configurable, with the grid i use. It'll automatically create one, for your screensize. Most probably, it won't be exactlly what you want, but you can change it any way you like (just like with the older versions). Also notice that the groups definitions are now located at the end of the file. [/edit]
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: nudone on June 02, 2006, 07:19 AM
sounds great - going to download and try right away...
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: jgpaiva on June 02, 2006, 07:37 AM
After playing with it a while, i noticed there was a small bug, that it didn't recognise the correct window, if you moved the mouse too fast.
It's fixed now, so please redownload:
GridMove Beta2.21 (http://jgpaiva.dcmembers.com/CS/GridMove/GridMoveBeta2.ahk)
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: nudone on June 02, 2006, 08:07 AM
not tried the .21 version yet so here are my comments for the previous.

first impressions are that this is one of the greatest improvements on the windows gui i've seen. even if it's not finished yet the potential is clear to see.

as you mentioned before - you can define a grid that would create a sort of working space in which you can quickly move windows around - like minimising and maximising but with more potential.

i've seen this tried before (even by microsoft) and the results were no were near as good as what 'gridmove' is currently providing.

i see that with the right layout you could have windows 'shrink' to the side and their content remain visible and then quickly bring them back into focus and 'grow' back to fit inside a larger grid space. this has great potential - it could easily replace the windows taskbar as it is easier to identify a 'small' window that is in view at all times rather than a narrow panel button that rests in the taskbar. it's not quite 'perfect' yet but already is starting to resemble the types of gui that you see in 'high tech' movies when they are trying to show some flashy computer interfaces on screen.

if may be a better description to say that out of a single monitor screen you can create a layout that resembles several monitors side by side. all the 'shrunken' windows can be made to display enough content to make them quickly recognisable and then a larger 'center grid' acts as the main focus center monitor.

currently i couldn't work out if the 'screen edge triggers' are implemented - i don't see any need for them with how things are working at the moment. i've had to increase the 'trigger' time slighly as the grid was appearing a bit too soon. no problem.

in the left mouse drage and pause method - it would be nice to have the same 'grey panel' area appear that represents the selected grid zone as when using the 3rd mouse button.

this isn't going to be a problem if you can provide a 'click to toggle' mechanism but in maya and 3d max the 3rd button is used to drag things around on screen so it would conflict with how 'gridmove' currently works.

otherwise the 3rd mouse drag method works really well - it would certainly be good to keep that how it is - make it bring the grid up instantly when a 3rd button drag is detected - and maybe, just have the left mouse drag and pause method work so there is a pause before the grid appears.

my original description of having zones at the edge of the screen has certainly been made unnecessary with how things are currently working.

all i can suggest for future versions is maybe extending the 'high tech gui' feel of things - perhaps allow 'window groups' to be assigned that know how to move around the screen...

or, if this is possible (i imagine it will be) that 'gridmove' can be made to work a little like the windows taskbar. description follows:

if you drag and release a window onto a grid already occupied by a window - gridmove will automatically swap the windows around

so, if you have a grid in the center of the screen that is quite large (this is your working area) and smaller grid zones down the sides of the screen - you can drag from the larger center zone to the smaller side zones and the windows from the two zones will exchange places. similar to what you have happen when you alt+tab but this is done visually and by dragging windows around rather than using the keyboard.

excellent job so far anyway, jgpaiva.
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: jgpaiva on June 02, 2006, 08:55 AM
currently i couldn't work out if the 'screen edge triggers' are implemented - i don't see any need for them with how things are working at the moment.
The "screen edge triggers" would be a trigger that would be active when the mouse was over it, without dragging a window, wasn't it? I believe that would work, but pose a few small problems: the detection of the active window might be incorrect, you would have to select the window before snaping it to the grid (notice that with the 3rd button method, you can drag any window, all it needs is to be beneath the mouse), accidental appearences of the grid would be more constant (and would stop the current work, as the grid selection would take the full screen), and, if not, the grid would have to take too much time to come up, i think.

in the left mouse drage and pause method - it would be nice to have the same 'grey panel' area
Right, i also thought of that, but i thought that having 2 things moving (the window itself and the grey panel might be confusing, that's why i didn't include it. But i am thinking of an alternative. Possibly making the window itself simulate the snapping, instead of having the grey panel doing it. I'm not quite sure what's the best solution, though.

this isn't going to be a problem if you can provide a 'click to toggle' mechanism but in maya and 3d max the 3rd button is used to drag things around on screen so it would conflict with how 'gridmove' currently works.
Yep, i'm aware of that problem, and it possibly will arrise in more applications. I think the best solution would be to have the "drag in window edge" system you mentioned, possibly associated with exceptions, i. e., for the general windows, it'd work just as it works now, and for assigned windows, it'd need to be dragged in the edge. (Since i already have most of the code in DialogMove, this shouldn't be too hard to create)

and maybe, just have the left mouse drag and pause method work so there is a pause before the grid appears.
I don't think i understand what you mean, i know you noticed the time before the grid was too little, is that what you're referring to?
(the time was too short because that's my personal configuration, i don't like to drag windows around, i prefer to snap everything)

all i can suggest for future versions is maybe extending the 'high tech gui' feel of things - perhaps allow 'window groups' to be assigned that know how to move around the screen...
Hum... I think i need you to explain me a bit more about that idea, i don't quite understand what you mean...

if you drag and release a window onto a grid already occupied by a window - gridmove will automatically swap the windows around
Yes, we are in the same page here, when you first mentioned your idea, i immideatelly thought of the exact thing you mentioned, having this work in a similar way to a taskbar. I've seen the atempts microsoft did at this, and i thought it looked pretty good, but my screen was too small.
I think this will be the most interesting feature of the program, but it'll still take some time. (as i still have to make a decent gui, a .ini file for configuration storage, and a few default "templates" as, for what i've been through, configuring a grid layout is a bit of a "pain in the a**"). Still, i'm also very interested in seeing this too :D

excellent job so far anyway, jgpaiva.
:D thanks!  :Thmbsup:
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: jgpaiva on June 02, 2006, 08:59 AM
Oh.. And i almost forgot.. I need to do those keyboard shortcuts ASAP..
Good thing i'm almost in vacations! :D
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: jgpaiva on June 02, 2006, 09:48 AM
This is the great thing about being able to build stuff. When you need something, you can just build it.
I was needing the keyboard shortcuts, so, i made an update to gridmove.
Now, by pressing win+g, you get a dialog, where you can input a number, which can correspond to one of the grids in the layout. if it does, the active window will be moved there. If not, the active window will be minimized.

I also fixed the minimize /maximize /restore bug. The script was trying to move the window, while windows was trying to minimize /maximize /restore it, which lead to some erratic behaviour. But it's fixed now ;)

GridMove Beta 2.3 (http://jgpaiva.dcmembers.com/CS/GridMove/GridMoveBeta2.ahk)
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: nudone on June 02, 2006, 12:33 PM
The "screen edge triggers" would be a trigger that would be active when the mouse was over it, without dragging a window, wasn't it?

sorry, i meant that the window would be dragged to the side of the screen - that way the resize function would know which window to operate on because it would be the window that the mouse cursor was holding the title bar of.

i'll try to describe exactly how i first thought things would work when making the initial request:

1. there is a window that is not maximised on screen.

2. you click and hold the title bar of this window with the left mouse button.

3. you then drag the title bar (and the window it is part of) to the edge of the screen.

4. at the edge of the screen is an area one pixel wide that acts as a trigger zone.

5. if you drag the title bar (from stage 3.) onto the trigger zone (in stage 4.) the window then automatically resizes.

     at this stage the criteria that has to be met for the trigger to work are:

     the mouse cursor is holding down a window title bar (using the left button)

     the mouse cursor is at the very edge of the screen

     the mouse is over a trigger area

     the trigger area does indeed have a corresponding area associated
     with it somewhere else on the screen that the window will resize into

the trigger zone at the edge of the screen and its corresponding resize window area are not the same thing - they are distinct - one is at the edge and only occupies a thin strip one pixel wide running down the screen - the other is an area that could be defined to be anywhere else on the screen (it could be right next to the trigger or it could be on the opposite side of the screen).

-------------------------------

that was the original idea but i think the way you've got the grid working at the moment is a quicker method and also a more descriptive way of showing the user what exactly is going to happen, so i really don't see much point in implementing what i original asked for - unless it perhaps operates in a slightly different manner to how the current grid works.

i'm not entirely sure - maybe if dragging the mouse cursor and title bar to the edge of the screen made the window resize to fit that half of the screen i'd still like that to work - this does still represent the way macromedia software and acdsee 'snaps' the panels into place when you drag them to the edge of the program window.

now that i think about it - i'd still like that feature, i.e. drag a window to the edge of the screen, or to be more precise, drag the mouse cursor and title bar to the edge of the screen - pause with the left mouse still held down on the title bar - and then the window resizes to fit the half of the screen that you've dragged to the edge of.

i think this was working in one of the earlier versions of gridmove - maybe i'm imagining it - maybe you had to right click or do something else other than just pause???????



as for the group of windows thing i mentioned - i'm not entirely sure what that could be - i was just thinking of what microsoft did when they created that thing that would minimise windows onto the desktop (not the taskbar). these were animated in the way they minimised and restored but there was also the ability to have groups of windows that you could move around - the group was made from the minimised buttons that were on the desktop.

forget that i said anything about groups because i was probably just thinking of having predefined layouts of various programs - this could be done without gridmove so it's not really the right thing to implement.

i hope that all made sense - i shall now download the latest version. can't wait...
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: jgpaiva on June 02, 2006, 12:58 PM
I'm not sure, but i think that the current implementation of the current implementation of gridmove already allows you to have what you ask for, about windows snapping to screen edge.

defining a group like this:

1Triggertop    := 0
1TriggerRight  := 1
1TriggerLeft   := 0
1TriggerBottom := "height of your screen"

1Gridtop    := 0
1GridRight  := "half of the width of your screen"
1GridLeft   := 0
1GridBottom := "height of your screen"

Would create a grid element that would take the left part of the screen, and would have the left edge as trigger. (you'd have to replace the parts i put under "")

Right now, the triggers are independant from the area where the window will be moved, so, you can place them anywhere.
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: nudone on June 02, 2006, 01:05 PM
excellent, i'll try it in a minute.

thanks, jgpaiva.
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: nudone on June 02, 2006, 04:25 PM
i've edited the script to replicate the sort of original idea i had. you'll see it's quite simple - just six zones.

i would like to try using it for a bit but i'm very unsure as to what needs to be changed to make the 'overlay' grid look correct.

at the moment the grid only appears to show in the upper half of my screen - the numbers for the grids only seem to display on the top and left hand side.

is it 'simple' to explain how to change the way the grid is displayed - i'd like it to appear so that the 'zone' that the window will resize into will appear as a grey box or as an outline - there wouldn't be much use in the other grid zones appearing as they wouldn't have a connection with the 'trigger'.

here's the bit i've changed...

AssignGroups:
NGroups=6
;;if you use the taskbar on the top of the screen
;;uncomment the commented lines, and comment the
;;line below each of them

;1Triggertop := 30
1Triggertop := 0
1TriggerRight := 1
1TriggerLeft := 0
1TriggerBottom := a_screenheight / 2

1Gridtop := 0
1GridRight := a_screenwidth / 2
1GridLeft := 0
1GridBottom := a_screenheight

;2Triggertop := 30
2Triggertop    := 0
2TriggerRight  := a_screenwidth
2TriggerLeft   := a_screenwidth - 1
2TriggerBottom := a_screenheight / 2

2Gridtop    := 0
2GridRight  := a_screenwidth
2GridLeft   := a_screenwidth / 2
2GridBottom := a_screenheight

3TriggerTop    := a_screenheight / 2
3TriggerRight  := 1
3TriggerLeft   := 0
3TriggerBottom := a_screenheight

3GridTop    := a_screenheight / 2
3GridRight  := a_screenwidth / 2
3GridLeft   := 0
3GridBottom := a_screenheight

4TriggerTop    := a_screenheight / 2
4TriggerRight  := a_screenwidth
4TriggerLeft   := a_screenwidth - 1
4TriggerBottom := a_screenheight

4GridTop    := a_screenheight / 2
4GridRight  := a_screenwidth
4GridLeft   := a_screenwidth / 2
4GridBottom := a_screenheight

5TriggerTop    := 0
5TriggerRight  := a_screenwidth * 0.75
5TriggerLeft   := a_screenwidth * 0.25
5TriggerBottom := 1

5GridTop    := a_screenheight * 0.05
5GridRight  := a_screenwidth * 0.80
5GridLeft   := a_screenwidth * 0.20
5GridBottom := a_screenheight * 0.95

6TriggerTop    := a_screenheight - 1
6TriggerRight  := a_screenwidth * 0.75
6TriggerLeft   := a_screenwidth * 0.25
6TriggerBottom := a_screenheight

6GridTop    := a_screenheight * 0.25
6GridRight  := a_screenwidth * 0.80
6GridLeft   := a_screenwidth * 0.20
6GridBottom := a_screenheight * 0.95

return
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: jgpaiva on June 02, 2006, 05:12 PM
Ok.. I've been playing with the configs you made. It's a good idea too (even though i don't like to work with the windows all stacked up, i prefer with side by side).
I know why the numbers don't display on the right and lower corner. It's because in a groupbox (the element i'm using to simulate the groups), it's title is displayed in the top-left corner.
Unfortunatelly, that can't be changed, so, i can't make those numbers show. What i can do, is make the others disappear, so that they'll be all the same.

As for the grid itself not appearing in the right and bottom edges, it's related to they was groupboxes are created, a few pixels down and left from the place you actually tell them to be created. (this makes much sense in a normal gui, but in this case, it's prejudicial). You can notice that in the fact that the top area actually isn't located in the last pixel, but at about 2 pixels from the border. If you drag the mouse to the inside of that groupbox, the trigger won't be activated.
The good news is that the grid issue is fixable, but i'll have to remove the numbers.
This is not a big issue, as i think i can make it display the number in the middle of the groupbox, instead of in it's title.

As for the group hilight when dragging with the left mb, i thought it was easy, but it proved to be a bit more tricky. I'll look into it asap, and try to find a solution.
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: nudone on June 03, 2006, 01:33 AM
sounds good - the number appearing in the center of the respective grid zone makes a lot of sense.

the individual grid highlight thing is ony cosmetic so it's not that important really - unless, of course, you manage to resolve the problem  :D
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: jgpaiva on June 08, 2006, 05:53 AM
I've been using this for a while, and i found out that i constantly snap windows to the grid without really wanting to do that. Doesn't that happen to you?
I always forget i have the program on, and drag the windows during too much time.

I'm thinking.. Maybe i could add a transparent button to the caption of every window, that had the snapping functionality. I mean, if you dragged the window elsewhere, it'd have no effect, but if you dragged the window by that button, it'd snap the window. This would also take out the need for waiting for the grid to appear.

What do you think?
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: nudone on June 08, 2006, 06:36 AM
:D hehehe.

that's why i wanted the triggers out of the way at the sides of the screen. i'm not really using it in the same manner you have been doing. i've just got that layout of the triggers at the edges like i posted above.

the transparent button dragging method you describe does sound like a nice way around the problem you mention. definately worth implementing.

i guess 'gridmove' is still in it's infancy as there are several ways of how it could work - i still hope that you can somehow implement all the different ways but allow the user to select which they want. maybe that's going too far and there should be another program like dialogmove?
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: jgpaiva on June 13, 2006, 04:40 PM
Ok... Just a few conclusions:

The "button on title" idea i had before, isn't worth the trouble. It'd bring new, awful bugs, and wouldn't be the right solution.
I've rethought it, though. How about if it worked like this: when you drag a window by a place closer to the top left of the title (closer to the icon), the window is snapped. Otherwise, it's moved as always. This would also fix the problem with the maximizing windows by double-clicking the top bar not working.
I've discovered why the grid doesn't appear on the bottom of your screen, it'll be fixed on the next version (i hope ;) ).

i still hope that you can somehow implement all the different ways but allow the user to select which they want
That's the thing, there are some methods that are incompatible between them. That's why i'm trying to figure out a "perfect" way to make it work. I'd like your opinion on what do you think are the best working methods we've found till now.
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: nudone on June 14, 2006, 01:39 AM
so far i've really only used the original method i asked for - the drag to screen edge to trigger and resize window.

the new function you describe above sounds like a good idea to me - anything that provides more stable and intuitive operation is good.

as for including all the operations - i guess, all i would really like to see is the ability to work how i originally asked for - all other features i think are very good but i'd probably disable them - just to keep it simple for myself. this is mainly because i usually have windows either fully maximised or just covering the main center of my screen - my original request was to be able to simply have auto resizing windows that would cover half of the screen so that i could use my monitor as if it were two monitors - this is still really all i would be doing.


i have an additional idea, if you think it worthy of inclusion...

i'm sure you will have seen little utils that allow you to 'scale' a window so that it either 'grows' to fit the screen horizontally or vertically (but not both at the same time as this would just be maximising the window).

could it be possible to include something like this in 'gridmove' or maybe in a similar autohotkey script.

i was thinking that it could work like this:

a: you drag the bottom border of a window to the bottom edge of your screen - you pause there at the edge with your mouse left button still down and then the window automatically resizes to fit the screen vertically - but not horizontally.

b: you drag the left or right border of the window the nearest side of the screen - pause with the mouse held down, etc. - and then the window resizes to fit the screen horizontally - but not vertically.

c: of course, you drag the top border of the window to the top of the screen and then it resizes the window to fill the screen vertically but not horizontally.

i guess there are other variations that could be included but i think these functions would fit in well with how 'gridmove' currently works.

i certainly look forward to the next version. keep up the good work.
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: kproth on June 16, 2006, 07:08 AM
I think there's a very minor multi-monitor bug in here. I have two monitors, one landscape mode (1280x1024) and the othe portrait mode (1024x1280). Thus, my PC thinks my desktop is 1280+1024x1280, or 2304x1280. But the bottom left rectangle (1280x256) is "missing". Looks a bit like this:

  [---------------][----------]
  [               ][          ]
  [               ][          ]
  [               ][          ]
  [               ][          ]
  [---------------][          ]
                   [          ]
                   [----------]

Your code for detecting the bottom and/or right edge of the screen (that sends LButton Up and snaps the window) won't allow a user in this situation to have a place at the bottom of the left-hand monitor for "dropping" windows. If it checks for MouseX >= 1280, you can't get that far down on the left monitor. If you check for MouseX >= 1024, it will prevent mouse drags in the bottom portion of the right monitor.

Is there any way to detect which monitor the mouse is in and behave differently in that situation?

Title: Re: IDEA: drag window to edge automatically resizes it
Post by: nudone on June 16, 2006, 08:54 AM
i can't really speak for how jgpaiva is creating the script but i think an auto detect screen size hasn't really been built into 'gridmove' so far.

i'm sure it will be a fully working function soonish.
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: jgpaiva on June 16, 2006, 12:58 PM
Yep, nudone's right, that's something i didn't get to yet. But i'll add a way to configure it in the next version. Right now, that happens because i (stupidly) made it for my screen, which is 800pixels in height. Sorry about that, i'll fix it asap!
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: ajp on June 16, 2006, 01:34 PM
Not quite the original idea (drag-based) but I've hand-made my desktop layouts using PowerPro (http://powerpro.webeddie.com/). With this super-cool utility (it does way more than I´m willing to describe here), you can do things such as:
In this way, I define my own area/behaviour in any posible way I can think of. I can also roll-up my window with a right click on the title bar and stuff like that. And don't get me started on menus, launch bars, virtual desks, global hot-keys, clipboard tracking... whew!

In a nutshell: those who are looking for a program that easily and specifically do the "desktop-zone-ing" stuff, don't look for PowerPro. But those of you who prefer to prefer hardcore full control, this is the place to go.

Title: Re: IDEA: drag window to edge automatically resizes it
Post by: nudone on June 16, 2006, 02:41 PM
we've had plenty of discussion on PowerPro before and it sounds like a fantastic macro type thingy.

i really haven't the time at the moment to dedicate myself to learning ANY macro/script util so i'm more than greatful for those that do.

ajp, how about posting your powerpro thing here for all to try out (and maybe modify). what you've described doesn't really sound like something i'd personally use - i really did have a specific method i wanted implementing when i made my original request - but i'm sure something as versatile as you've created would be appreciated by a great number of people.

it may even get a few more people interested in powerpro - i can't remember why autohotkey sort of took a hold around here.
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: ajp on June 16, 2006, 06:56 PM
I'm sure I keep an interesting script for this (right now I just right-click maximize to get 100% tall by 80% width window aligned to the left of the screen), but not at this computer. I'll look for it at home and bring it.
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: jgpaiva on July 01, 2006, 07:59 AM
Ok... Here's gridmove beta4. This should be the last beta (i hope ;) ).
I applied the method i mentioned before, now it works like this:

If you drag a window using it's part that is closer to the caption (definable in WindowPercentage, i set it to 20% of the caption), the window is always snapped. Also, now both methods use the second gui overlay, as like this it's possible to use it.
If you drag a window using the rest of the caption, the script does nothing.

Also fixed:
The screensize problem, now the gui shows for all the screen in every computer (notice that if you have a dual-screen layout, you need to change it in the options at the beggining of the script's source).
Added commands to the Win+G hotkey:
Fixed a small problem with the transparencies
Fixed the problem with the position of the triggers being a few pixels out.


This script still lacks lots of stuff (like decent options management), but at least now it's *almost* bug-free.


So... Tell me what you think about the new interaction.
.ahk Version (http://jgpaiva.dcmembers.com/CS/GridMove/GridMoveBeta4.ahk)
(it's now beta4, because beta3 was a test i made and didn't publish)

BTW... Anyone knows of a nice icon for this script?
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: jgpaiva on July 01, 2006, 08:02 AM
@nudone: About your idea of having the window resize, maintaining it's width or height, i think i might have a way to do this. And it'd make much sense in this script. I'll try to make it work.

@kproth: Sorry for that bug, i think it's now fixed. Don't forget to set the ScreenHeight and ScreenWidth parameters right. (if you have 2 screens with different resolutions, set the parameters to the biggest height and biggest width).
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: nudone on July 01, 2006, 02:35 PM
nice to see you coming back to the old gridmove, jgpaiva  :D

i can see that the transparency is working better but i'll have to make a few changes to the script i think - my screen does't really suit the current grid layout.

i like the idea of dragging the titled part of the title bar to initiate gridmove - my final use will be very basic (i think) so i don't think i'd even need the grid popping up, so if you can allow that to be disabled i'd appreciate that.

keep up the great work...
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: jgpaiva on July 01, 2006, 04:11 PM
nice to see you coming back to the old gridmove, jgpaiva  :D
Old? Nah! It's the best thing since sliced bread, i use it everyday, just haven't had much time to update it.

i can see that the transparency is working better but i'll have to make a few changes to the script i think - my screen does't really suit the current grid layout.
Notice that it might be a better idea to change the .ini file's grid, as you can use it throughout several versions, and you won't have to change the source everytime i update. (yes, i really should change the default grid, i also don't use it like that)

i like the idea of dragging the titled part of the title bar to initiate gridmove
Would you consider this the best way for the script to work?

my final use will be very basic (i think) so i don't think i'd even need the grid popping up, so if you can allow that to be disabled i'd appreciate that.
I hadn't thought of that, good point!
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: nudone on July 02, 2006, 04:08 AM
i can see that gridmove has progressed further than what i originally requested so i'm a little biased when i offer my thoughts on it now.

my own personal preference is still to use the edges of the screen to trigger the resize window function - i'm still hoping that you'll include that in the final version.

why do i stubbornly stick to this view? well, i'll only have a basic grid layout (i think) - perhaps it would be good to have a way of toggling between different grids - maybe a complex grid with a variety of window sizes/zones and then a basic alternative grid with just a few zones.

i'm straying from my answer to the question above... so, i'm only going to use gridmove to resize the occasional window. most likely using it so that only two program windows cover either side of my screen at a time - no doubt i'll probably use four programs and have each window take up a quarter of the screen on the rare occassion. the final use would be to have a window resize to fit with the central part of my screen so that there is a border around it that i can see my desktop.

this basic grid layout doesn't really need to be displayed to me - it will be very symmetrical - so all i need to remember is which part of the screen sides/edge will act as the trigger, i.e. left edge of screen will resize window to fill left half of screen - right edge of screen will resize window to fill right half of screen, etc. all very simple.

of course, this is just how i would use it, someone new to gridmove may well feel better if they could see the grid appear - or, at least, until they had remembered the grid layout.

i can see that the current 'titled area of title bar' to initiate gridmove is quicker than my 'screen edge acts as trigger' method - i've just not really made up my mind about which i prefer. the speedier method ought to appeal to me more but i'm still favouring my original drag to screen edge trigger way. might be irrational - can't really say at the moment.

here's yet another idea to add to the mix - what if different grids were invoked depending on what programs were running. this could perhaps lead back to the 'group' idea.

say you often have a web browser open and a couple of other programs that you always end up putting into a particular arrangement on screen - then you could have a 'grid 01' load in when the browser is running - other grids would load in when other programs where dominant - and there would be the 'general' grid when nothing in particular was running.

i guess, really, the above multi/group grid method would be better if a particular grid loaded in if two or more specific program windows were detected on screen at the same time - not just a single program window - otherwise i can see this would get confusing when the basic 'default' grid should be in use.
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: jgpaiva on July 02, 2006, 06:17 AM
I already thought of that, gridmove got way more complex than your original request. I'm sorry for that :( (i just have this tendency to make stuff increasingly complex, to the point that nobody, including myself, can really understand what's happening there).

I have had another idea. The system you mentioned (drag window to the edge of the screen), can be done in a similar way. (actually, wasn't it implemented on Beta2, when you had a correct trigger layout?)
How about if i added yet another interaction method (notice that the 2 interaction methods available right now will have the possibility to be disabled, just as this third one will too), where the grid would come up when the mouse was on the edges of the screen for some time (with or without dragging a window), and then, you'd only have to move the mouse to the grid trigger and it'd snap the window to it?

I think i could have the option of forcing the mouse to be at the edge of the screen while dragging a window too.

I also think that having the option to disable the grid showing is important, i'll add an option for it too.

(ok, i think that it's getting time to have a graphical gui for the options, they are growing fast ;) )
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: nudone on July 02, 2006, 06:40 AM
the more options there are the better - everyone gets to use the final version of the program in the way that they feel most comfortable with - hopefully.

i will have to revisit version two for a bit i think...
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: jgpaiva on July 02, 2006, 03:07 PM
Ok... Here it is, GridMove Beta 4.5 (http://jgpaiva.dcmembers.com/CS/GridMove/GridMoveBeta4.ahk).
It has grown in features (and complexity), so, i'll just make a general comment:

At the beggining of the script, there's an options area.
The first 3 options enable / disable the interaction methods:

The next options are general options:

Also new in this version is the keep dimentions feature.

If you specify a Group like this in the .ini file:
1TriggerTop=0
1TriggerBottom=800
1TriggerLeft=0
1TriggerRight=3

1GridTop=WindowHeight
1GridBottom=WindowHeight
1GridLeft=0
1GridRight=1280
It'll create a group that is activated at part of the left of your screen, and when activated will make the window expand horizontally to have 1280 pixels wide and keep it's height (and vertical position). Thus, this can be used to create horizontal maximization, if you set 1GridRight to the width of your screen.

In a similar way,
2TriggerTop=0
2TriggerBottom=10
2TriggerLeft=0
2TriggerRight=1280

2GridTop=0
2GridBottom=770
2GridLeft=WindowWidth
2GridRight=WindowWidth
Will create a group that is activated at part of the top of your screen, and when activated will make the window expand vertically to have 770 pixels of height and keep it's width (and horizontal position). Thus, this can be used to create vertical maximization, if you set 2GridBottom to the height of your screen.

I hope you like these new updates!
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: nudone on July 02, 2006, 03:36 PM
i certainly like where this is heading - i need to change the grid layout and give it a good run before saying anything further.

as always, keep it up. oh, and thanks for putting the screen edge trigger back in. pity about the grid not being hidden yet, though.  :Thmbsup:
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: jgpaiva on July 02, 2006, 03:52 PM
i need to change the grid layout and give it a good run before saying anything further.
Notice that you don't have to copy it all, you can use the same grid you used on the other versions, you only have to change the name of the .ini file.


thanks for putting the screen edge trigger back in. pity about the grid not being hidden yet, though.
Actually, the screen edge trigger was such a big problem as i thought originally. The grid hiding isn't a big deal, as right now it can already be hidden, but is buggy, and for some reason it makes the snapping not work.
Anyways, i think i know what causes that, and it should be fixed in the next version.
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: nudone on July 02, 2006, 05:15 PM
it's beddybies time for me now but here's my edited script of version 4.5

i'd still make a few changes to the grid layout but it's pretty much what i was after... you may find the grid layout useful.

you'll see i've disabled the 'drag title bar method' and reduced the size of the trigger zones.
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: jgpaiva on July 02, 2006, 07:13 PM
Ok... Great to see it fits you.
This means that GridMove is mature (at laaast!!), and i can start working on a "final" (more like "stable") version. Finally i'll be able to get it in my CodingSnacks post (https://www.donationcoder.com/forum/index.php?topic=3461)! :D
And it's ready to become a "real" program ;)

(I've just had a great idea! a grid creator. I hope i won't forget this one when i finish up the gui and other important details)
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: kproth on July 03, 2006, 07:08 AM
@jgpaiva: LOVE the Gui grid view! Testing on my multi-mon system and it's definitely much better behaved. I removed groups 5-10 that "shipped" with the script, keeping just groups 1-4 (all on my primary monitor), and then I added a single new group5 sized to show on my second monitor (Top@0, Bottom@700, Left@1281, Right@2304).

Group5 functioned just fine, but the number 5 wasn't visible anywhere (even though 1-4 were).

Also, will you handle odd-sized taskbars a little cleaner in the final product? Mine is two "rows" deep, so it's 50 pixels tall, at the bottom of screen 1. I added a variable called TaskbarSize and set it to equal 50, and then changed all the "30"s in your groups (e.g. GridBottom = A_WindowHeight - 30) to use it. Would it be possible to sniff out the actual position and size of the taskbar at runtime and automatically work around it?
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: jgpaiva on July 03, 2006, 07:24 AM
As for the fact that group5 doesn't appear, it might be because you didn't change the screenwidth to be equal to the sum of your both screens. (i need to fix that)
If you did, please post here the 5Trigger group. (also don't forget to change the Number of groups to 5).

As for the grids, it's not complete yet. I might be able to auto-detect the size (and position) of the taskbar in later versions, and i'm thinking of including a bunch of pre-defined grids instead of only one.
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: kproth on July 03, 2006, 07:38 AM
Thanks jgp. Yes, I had the ScreenWidth set wrong. I interpreted your comment earlier:
if you have 2 screens with different resolutions, set the parameters to the biggest height and biggest width
to mean I should set these to the largest height and width of any single screen. Changing so ScreenWidth & ScreenHeight points to the point at the bottom right of my overall screen area fixes that problem.
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: kproth on July 03, 2006, 07:42 AM
Oh, sorry, had one more thought. With LButtonDrag enabled, it's odd to see the grid overlay appear when I click (or double-click) on the upper-left corner of my windows to either drop-down the window menu, or close the window.

You could fix this by adding a brief delay - LButton has to be held down for 1 second before enabling the GridMove functions. Or, by making sure the X mouse position is also Greater Than the CaptionSize (in addition to checking if the Y mouse pos is > CaptionSize...)
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: jgpaiva on July 03, 2006, 08:03 AM
Oh, yeah, i didn't say that correctly, screenwidth should be the width of both screens summed.

Good point about forcing the click to be off the icon in the title bar. I'll add that! :D
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: jgpaiva on July 04, 2006, 06:08 PM
Ok... This is soo much more than an update.
GridMove is now V1.0!

This release's features:

Most probably, some bugs may come up, as it's quite late and i'm tired. ;)

Here are the links:
.exe Version (http://jgpaiva.dcmembers.com/CS/GridMove/GridMove.exe)
.ahk Version (http://jgpaiva.dcmembers.com/CS/GridMove/GridMove.ahk)
icon for the .ahk Version (http://jgpaiva.dcmembers.com/CS/GridMove/GridMove.ico) (place it under the same directory)
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: mouser on July 04, 2006, 06:10 PM
holy cow, this is worth a test.
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: nudone on July 05, 2006, 12:56 AM
holy cow, this is worth a test.

mouser finally sees the light. :D

it is truly a day of celebration here at nud towers with gridmove reaching v1.0

will download and put it through it's paces now, jgpavia. well done, as always.
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: nudone on July 05, 2006, 01:14 AM
gridmove v1.0 feels reeeaaaaaal good.

fantastic.

just a couple of things i've noticed bug wise:

with the 'edge' grid loaded in - the trigger bit on the left side of the title bar seems to have expanded (is this intentional?). it's covers about a third of the titlebar.

when using the non 'edge' grids there is a slight 'jerky' appearance to my windows when i drag them around. i think this has been part of gridmove for a while (not sure) and i guess it might be unavoidable as the script is having to work out the position of the window and mouse so often. the 'jerky' effect is only slight but it would be wonderful if not there at all - maybe it's only doing it on my screen???

going back to play with gridmove a bit more now...
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: mouser on July 05, 2006, 01:21 AM
i think this has huge potential to be a MUST HAVE util.
but its not quite right on multimon.
jgp says he will be working to get it perfect on multimon soon.
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: nudone on July 05, 2006, 01:28 AM
ha, ha, i've just noticed the full height or full width auto window sizer method - i love how you can drag it around  :Thmbsup:
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: nudone on July 05, 2006, 01:41 AM
currently i have:

[GridSettings]
GridName=edge
[InterfaceSettings]
LButtonDrag=1
MButtonDrag=0
EdgeDrag=1
[OtherSettings]
EdgeTime=1000
ShowGroupsFlag=0
WindowPercentage=25

this has the strange effect so that i'm unable to drag the window at all from the titled part of the title bar.

Title: Re: IDEA: drag window to edge automatically resizes it
Post by: kimmchii on July 05, 2006, 02:47 AM
i get this in default:

[GridSettings]
GridName=3Part
[InterfaceSettings]
LButtonDrag=1
MButtonDrag=1
EdgeDrag=1
[OtherSettings]
EdgeTime=1000
ShowGroupsFlag=1
WindowPercentage=25
(http://img143.imageshack.us/img143/2844/clipboard014kx.th.jpg) (http://img143.imageshack.us/my.php?image=clipboard014kx.jpg)

this new version really works, one small problem, no matter what i do i cant get it to split the screen in 50/50.
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: jgpaiva on July 05, 2006, 03:52 AM
with the 'edge' grid loaded in - the trigger bit on the left side of the title bar seems to have expanded (is this intentional?). it's covers about a third of the titlebar.
I've just increased the trigger part to 25% of the title bar. But you can change that on the options (windowpercentage)

when using the non 'edge' grids there is a slight 'jerky' appearance to my windows when i drag them around.
I think you'll have to explain yourself better, as i can't understand what you mean. The position constantly asked for is the mouse's position.

BTW, gridmove, when using the edge method, doesn't like allsnap (https://www.donationcoder.com/forum/index.php?topic=2455.0)!

I can't test multimon right now, as i don't have multimon here. So, i'd like for people to get me some screenshots or descriptions of what's going wrong with those.

this new version really works, one small problem, no matter what i do i cant get it to split the screen in 50/50.
Oh, fantastic point, kimmchii, i forgot to make a template for a simple grid. Now working on it, should be up in a bit.
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: nudone on July 05, 2006, 04:24 AM
i'll try to expand on the 'bugs' i thought i had found above (i'm at work at the moment so i can't actually perform the actions again).


hopefully that is a little easier to understand.
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: jgpaiva on July 05, 2006, 04:26 AM
GridMove V1.01:


I still need more information about what's wrong on multiple screens.
If anyone feels like on of the templates should be changed to be a bit different, please say. Also, here's the grid i usually use (configured for 1280*800).

Links...
.exe Version (http://jgpaiva.dcmembers.com/CS/GridMove/GridMove.exe)
.ahk Version (http://jgpaiva.dcmembers.com/CS/GridMove/GridMove.ahk)
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: kimmchii on July 05, 2006, 05:52 AM
from my test drive, V1.01 is perfect!!! well done jgpaiva.  :Thmbsup:

the ability to control with the middle click is brilliant.  :up: :up: :up:
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: mouser on July 05, 2006, 06:35 AM
id really like to have invisible hotkey, like
so just Hotkey+1 moves to 1 location
without having to hit enter or see dialog.
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: jgpaiva on July 05, 2006, 06:53 AM
New version, only adition is about and help boxes.
See my coding snacks post (https://www.donationcoder.com/forum/index.php?topic=3461) for the download links.
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: nudone on July 05, 2006, 06:56 AM
great, will try v1.01, when i get home (if there isn't a newer version by then).

hotkeys would make a lot of sense - as discussed earlier, i'd like them to be turned on or off by the user or at least user defined.

would it be difficult to create a graphical grid editor? maybe as a separate program?
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: jgpaiva on July 05, 2006, 07:03 AM
Good point about the hotkeys. I forgot to make them user-definable. I'm not yet sure on how to do that mouser requested, though. Gotta put some thinking into it.

BTW, nudone, latest Version is already 1.02 :P

As for the graphical editor. It does make sense, but it's not yet at the top of the list. (i need to make the loaded grids be dynamical first and fix the multi-monitor support).
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: jgpaiva on July 05, 2006, 08:27 AM
New update, now it's ver. 1.021.

Title: Re: IDEA: drag window to edge automatically resizes it
Post by: nudone on July 05, 2006, 12:31 PM
is there quick way we could have the different grids loaded in - rather than right clicking the icon in the tray?

maybe, right click somewhere in title bar to select a 'grid list' menu.

i'm just thinking of how different grid layouts could be used 'on the fly' or a very complex grid could be made that would suit almost every requirement - perhaps such a grid could use a colour system to differentiate overlapping grid zones.

i've not thought a great deal so i know these are vague suggestions - it just seems clear to me that more than one grid is a good thing - but it has to be loaded in with the minimum of fuss to be worthwhile.
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: mouser on July 05, 2006, 05:50 PM
how about mousewheel scrolls through configurations when in zone drop mode?

actually thats not great since you are usually holding down left button..
how about letting right click scroll through layouts.. (and escape to cancel)?
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: jgpaiva on July 05, 2006, 06:15 PM
I don't think assigning the program more hotkeys (like right button + scroll wheel) is the solution.
Just thinking out loud here, but how about having the possibility of creating a grid element with the "change grid" functionality? it'd be a trigger that, when highlighted, would change to another grid.

It's more confortable to create, respects other apps (right mbtton + scroll wheel is used, for example, by opera), and comes in line with the idea of addining more functionalities to the grid :)
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: mouser on July 05, 2006, 06:21 PM
hmm.. doesnt seem very intuitive to me..
i still like idea of right click to toggle grids.
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: nudone on July 06, 2006, 01:24 AM
no better suggestions for loading in grids on the fly at the moment but here's another idea...

how about having gridmove remember the 'standard' sizes of some program windows?

i don't use programs full screen unless they really warrant it, i.e. they fill the screen up with useful information rather than tons of white space.

so, things like my web browser tend to remain a non maximised size - to keep me happy, i have it at a particular size that makes the buttons and tabs fit nicely within it...

the thing is after i've used it with gridmove i've obviously changed the size of the window to what i'd normally use - i'd love it if i could quickly get back to my 'perfect' sized window by just doing a quick click or something???

i'm sure there are plenty of other programs that would benefit from a 'default' size that could be specified - a grid could be set up, of course, to match the sizes of these specific program window sizes but it would be more fun if there was just a quick way of getting things back to the 'default' dimensions.

again, i've not got any good ideas of how this would be implemented - maybe if there was a 'special' grid zone area trigger that changed the way it worked depending on what window was in focus. say, the trigger was at the top of the screen - if i had notepad open, i could move it to other grid zones then when i wanted it back to it's 'default' window size i could do this by dragging it to the top (center) of the screen - notepad would then change back to its default size. likewise, if i was using my web browser and i did the same action it would change to its particular window size.

and now for another suggestion...
jgpaiva has already realised the potential of having trigger zones activate and load in another grid - my original idea of the side triggers is still something i see more potential in (it's been used by other programs already, of course). the side trigger idea is really nothing more than having an invisible button at the side of the screen - this could be used to trigger events other than activating grid zones.

if jgpaiva doesn't want to implement such a feature i'm intending to modify the script so that i can 'side trigger' to run other programs (maybe) or, at the very least, performing common tasks - creating a new folder on the desktop or something like that (maybe that's more complicated than i imagine).

or, as an example, i have my taskbar at the top of the screen so the 'start' button is at the top left - i have the taskbar set to auto hide - so, it would be nice to set gridmove to realise when my mouse cursor is in the very top left corner and then activate the 'start menu' for me without me even clicking. yes, i am lazy in the extreme.
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: nudone on July 06, 2006, 01:48 AM
just to add to the 'default' window size above - it would be nice if there was a simple way of setting the 'default' size for program, i.e. you set the size of the window and hit a hotkey or select a command from the tray menu and the window size is recorded - and its position too.

also, how about a 'temporary' grid area - a grid that you set 'on the fly'. something like, you position a window and scale it to how you want - then hit a shortcut (or select from the command from the menu) and the size and the position of the window is stored and becomes part of the current grid layout - taken a bit further this could be a nice way of 'drawing' out grids that would be configured and saved by the user. so...

instead of having a way of drawing new grid layouts, it's all done by simply positioning windows on screen in the grid formation you want - you then make each window active in turn and hit the hot key or menu command to set it as grid zone 1 - activate the next window and set that to grid zone 2, etc, etc.
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: mouser on July 06, 2006, 02:55 AM
maybe the simplest thing would be for gridmove to try to remember the PREVIOUS size of an app window before it is sized into a zone, and then have some way to tell gridmove to RESTORE an from from its zone back to where it was and the size it was before.
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: nudone on July 06, 2006, 03:41 AM
good idea.
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: jgpaiva on July 06, 2006, 04:08 AM
Just thinking out loud here, since i am not supposed to do any more work on gridmove until smewhere next week.

I'm thinking that there's an easy solution to the problem. Something like this:

Using the same method of the "Maximize horizontally/vertically" function, some grids could be "special". It's width and height could be specified in a per-app basis. The application and the width and height of the grid could be specified on the .ini file. Since most of the code comes from gridmove, this shouldn't be much of a problem.
As for having other stuff there, nudone, it isn't really that difficult. Using the exact same method descibed above, i could create another "special" grid that would execute one program when hightlighted. So, if it launched ahk scripts, anything is possible. ;) (i'm not sure about the click start menu function, though, it might take too much time to launch the script)

@Mouser: you are right, that MUST be implemented, a stupid thing has happened to me a bunch of times already: Moving those not-resizeable windows (like gridmove's about box) to the grid, and then not being able to get them to their original size. DialogMove already has code that keeps track of open windows an their size (the window buffer), so this shouldn't be much of a problem.

The only problem is how to make it return to the original size.
My suggestion is: if the mouse isn't highlighting any of the grids when the window is dropped, make it resize back to it's original state.
Another way would be to have yet another special grid element, specified with something like:

Spoiler
1triggerleft  = 0
1triggeright = 30
1triggertop  = 0
1triggerbottom = 30
1gridtop = restore
1gridleft = restore
1gridright = restore
1gridbottom = restore

which wouldn't be a problem either (notice that, to make the size of the grid file smaller, 1gridleft 1gridright 1gridright could be ommited altogether, since they will never be read.)
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: mouser on July 06, 2006, 06:11 AM
let's call "drop zone mode" the mode that goes into when the gray boxes and numbers appear.
here is what i suggest:

when you are in that mode:
pressing a # key quickly snaps to that grid location
pressing right click advances to next grid template
pressing escape cancels drop zone mode
pressing R restores the window to its last saved postition before it was last dropped.
(maybe have a green border with an R in it showing the size and position of that Restore state).

Title: Re: IDEA: drag window to edge automatically resizes it
Post by: jgpaiva on July 06, 2006, 06:33 AM
Agreed. This can be done. I can't work on it right now, but i'm sure it won't be a problem. (thanks for inventing a name, that's very important as i have dificulty with coming up with that kind of stuff.  :Thmbsup:)
I'm also thinking that the grid that restores, instead of having a number, could have "restore" inside. Same thing applies to the "special" grid that would be dynamic, depending on the app. (BTW, could you come up with a name for that one? :P )
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: nudone on July 09, 2006, 01:05 PM
i have another request - though this one might be straying away from what 'gridmove' is for...

could we have a trigger zone for making a window 'stay on top', i.e. move it to the zone to make it stay on top - move back onto the zone to make it no longer stay on top.

i know there are plenty of little utils that will do this sort of thing already but i've always ended up removing the ones i've tried - i don't like the idea of adding extra buttons to title bars or selecting from menus. instead, i think a 'drop/trigger' zone would be a nice way of implementing a 'stay on top' feature. preferably a zone at the top of the screen. hopefully this can just be done when you implement the ability to run an .ahk script instead of moving/resizing a window.
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: nudone on July 12, 2006, 02:47 AM
oh dear, found a slight bug with the 'edge trigger' method i've been favouring - i have the depressing feeling that it's something that can't be rectified either.

as i've mentioned before, i have the taskbar at the top of the screen and set to autohide. windows has a built in capability that allows you to drag files onto the taskbar - drag onto a 'program button' on the taskbar and pause and the associated program will come into focus - drag onto a 'blank' are of the taskbar and all running program minimise to allow the desktop to be seen.

unfortunately this inbuilt windows capability stops working when 'gridmove' is working in 'edge trigger' mode. disabling the 'edge trigger' allows things to work normally.

boo hoo.

looks like i'll have to forget about the 'edge trigger' method - unless there's a way to solve the problem, jgpaiva.

maybe there could be a toggle key to turn the 'edge trigger' off - can't say that's a brilliant idea but i'm guessing that trying to make the 'edge trigger' method work with the windows taskbar in the way that i've described might be too much of a headache for you.

i think it's time for me to get to like the 'titlebar' drag method.

thanks again, jgpaiva - fingers crossed that you might have an idea about it.
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: jgpaiva on July 12, 2006, 03:55 AM
Nudone:
When i read your posts i thought "well... i don't think i have solutoin for that".
But when i tested it, i couldn't understand what you mean. The edge trigger method only works when the title bar of a window is dragged, which means that when dragging a file from within a window to the edge og the screen, it shouldn't be activated. Is this happening to you?
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: mouser on July 12, 2006, 04:55 AM
i use titlebar method with gridmove currently and not edge dragging since it seems more stable..
i do think that a hotkey based approach might be fasted though.. select a window, hit hotkey - zone labels show up on screen, hit # key associated with the zone to move it to and it's done.  wouldn't this be the fastest way to use it?
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: jgpaiva on July 12, 2006, 05:13 AM
@Mouser: Working on it ;)
I also am for the titlebar and mbutton method, those are more practical. (i also use a lot the command-line).
Oh, that remembers me, i should be releasing a new version soon. I hope it'll be still today.
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: mouser on July 12, 2006, 06:30 AM
are you asking for suggestions for a new name or is GridMove the final name?
I was thinking: ScreenZones or ZoneDropper
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: jgpaiva on July 12, 2006, 07:51 AM
GridMove is a pretty bad name (doesn't make much sense, does it?). I'm with you, the final version should have a decent name, related to what the program actually does. Which means i'm open to suggestions :)
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: nudone on July 12, 2006, 02:17 PM
my apologies, jgpaiva.

it appears the problem i described about the taskbar not working how it normally can was due to the fact i was using on older version of gridmove. i've since tried it with the latest version and things do appear to work just as they should  :D

i was just using an older version as it just seemed a bit simpler for me to change a few things but i think i've now realised what i needed to do with the latest version to get the same result - i just have to keep deleting the .ini file when i make the changes.

as for the keyboard shortcuts being the quickest way of using gridmove - depends on what you are doing, mouser.

this has been discussed before and it's one of those no real right or wrong answers.

if you are sat there happily working away with your hand(s) at the keyboard then using a key shortcut is going to be quicker than the mouse.

if you are sat at the computer, mouse in one hand, head propped up by your other arm - then having to break away from that position to find the keyboard isn't as fast as just dragging with the mouse. maybe i'm in a minority but i often forget that i have a left hand whilst using the computer - having to press 'alt' or 'ctrl' sometimes just winds me up - other times i have to use both hands (forget about typing), using adobe products would be very tiresome without one hand on the keyboard and the other on the mouse.

it's just whatever feels natural to do at the time - keyboard shortcuts in gridmove would be great and i'm sure i'd use them - sometimes.

my suggested way of using the screen edges as triggers has to be the slowest way of using gridmove - but speed isn't everything - i'd say whatever feels comfortable and intuitive is the more important requirement - heck, sometimes just what looks nice can overrule everything else.
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: mouser on July 12, 2006, 02:23 PM
i actually agree - im not one for hotkeys most of the time i prefer dragging and dropping.  i just never have good luck with the edge docking effects with my multimonitor setups.  i actually like the titlebar thing.

jgpaiava has got multimon support in the last gridmove really working well - very impressive work.
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: nudone on July 12, 2006, 04:19 PM
will there be a different way of creating grids - the current way is doing my head in. i shall persevere...
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: jgpaiva on July 12, 2006, 06:18 PM
Ok, glad to know it's working. The .ini file is a damn awful method of interaction with the script. The latest version doesn't have any .ini file editing (it's still not released, though).

heck, sometimes just what looks nice can overrule everything else.
Absolutelly true. You know what? a few days ago i decided i didn't like the way the grid is created right now. So, i created a new grid. Curious about the end result? Check the .zip attached to this post.
As you will noticed, it has absolutelly no practical use, but it's much more fun and better looking :D

The hotkeys are still under development but it's looking quite good! :D

As for improving the way the grids are created... Yes, i know that should be done, as it's quite a hard method right now, but i'll eventually make a tool to create grids, and hopefully, the next version featuring the grid changing should make a good compensation for not being able to create new ones.

[edit] forgot the .zip... >:( >:( [/edit]
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: mouser on July 13, 2006, 12:34 AM
tool for creating grids  :tellme:
if you include a bunch of grids then 99.9% of users will never need to make their own, and writing a tool to help the .01% of pro users seems a waste of time.  just my humble opinion.  in other words, let nudone suffer  :P
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: nudone on July 13, 2006, 12:40 AM
i've made 'my' grid so i'm happy now. including several grids probably does negate the need of a grid editor - providing there is always a way of manually creating a grid inside the script for those picky people like myself.
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: jgpaiva on July 21, 2006, 07:20 PM
At last!!
I present GridMove v1.13 :D

New features:

The dynamic grids can be created line the earlier ones, on one .grid file.
Click here for more on how to make custom grids
Variables must be enclosed in rectangular brackets.
Parentesis cam be used.
Monitor1Top represents the top of the work area of the first monitor.
MonitorReal1Top represents the top of the first monitor.
Notice that if, for example, the monitor is at the top of the screen, Monitor1Top will be 30, while MonitorReal1Top will be 0.
The variables available are top,left,right,bottom,width and height, for all screens from one to three.

The following will create a trigger that goes from the left of the work area to 1/3rd of the work area, which will make the window take the whole work area when activated.
1TriggerTop    =[Monitor1Top]
1TriggerBottom=[Monitor1Bottom]
1TriggerLeft    =[Monitor1Left]
1TriggerRight  =[Monitor1Left] + ([Monitor1Width] / 3)

1GridTop=[Monitor1Top]
1GridBottom=[Monitor1Bottom]
1GridLeft=[Monitor1Left]
1GridRight=[Monitor1Right]

The following code will create a trigger that goes from the half of the second monitor to it's right, and that when activated will expand the window so that it takes the whole screen. (even if there is a taskbar there).
1TriggerTop    =[Monitor2Top]
1TriggerBottom=[Monitor2Bottom]
1TriggerLeft    =[Monitor2Left] + ([Monitor2Width] /2]
1TriggerRight  =[Monitor2Right]

1GridTop=[MonitorReal2Top]
1GridBottom=[MonitorReal2Bottom]
1GridLeft=[MonitorReal2Left]
1GridRight=[MonitorReal2Right]

To test any of those, just copy the code, open notepad, write
[Groups]
NumberOfGroups = 1
paste the code you'd like to try, save it as test.grid, run GridMove and go to the templates menu, select "browse" and open the file you created.

There's no problem in using a grid that was configured to work on several screens in one only screen, as the non-existent elements will be ignored.



I hope you like this new version, here's the links:
.exe version (http://jgpaiva.dcmembers.com/CS/GridMove/GridMove.exe)
.zip version (http://jgpaiva.dcmembers.com/CS/GridMove/GridMove.zip) (the .ahk version is now a .zip version as it includes several .ahk files and image files, all included in the .exe version)
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: mouser on July 21, 2006, 07:27 PM
i have to say a huge congratulations is due to jgpaiva for the amazing work he did getting multimonitor stuff to work.
its absolutely flawless on my multimonitor system.

it takes a tiny bit of time to get used to where you have to click near the top left titlebar area of a window, but after you get the feel for it, it comes without thinking.

really great work.

(https://www.donationcoder.com/forum/esmileys/gen0/Small/aparat.gif)(https://www.donationcoder.com/forum/esmileys/gen0/Small/YES.GIF)(https://www.donationcoder.com/forum/esmileys/gen0/Small/wykrzyknik.gif)(https://www.donationcoder.com/forum/esmileys/gen0/Small/WOW.GIF)(https://www.donationcoder.com/forum/esmileys/gen0/Small/WOW.GIF)(https://www.donationcoder.com/forum/esmileys/gen0/Medium/41.gif)(https://www.donationcoder.com/forum/esmileys/gen0/Medium/soczek.gif)(https://www.donationcoder.com/forum/esmileys/gen0/Large/Tumb up.gif)(https://www.donationcoder.com/forum/esmileys/gen0/Large/toast.gif)(https://www.donationcoder.com/forum/esmileys/gen0/Small/kwiat.gif)(https://www.donationcoder.com/forum/esmileys/gen0/Small/cyk.gif)(https://www.donationcoder.com/forum/esmileys/gen0/Small/WOW.GIF)
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: Carol Haynes on July 21, 2006, 07:35 PM
Really brilliant - this project has come such a long way since I last downloaded a copy and had a play. Congratulations on an excellent job.
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: nudone on July 22, 2006, 02:51 AM
fantastic work there, jgpaiva.

nice features added - i was about to say perfect but i've noticed a bug(?).

when i have left mouse button drag disabled i can't use the edge trigger method either - nothing happens at all. i've tried closing gridmove and reloading and also tried deleting the .ini file but it doesn't appear to make much difference.

i'm thinking that it's time for me to get used to the titlebar drag methods - one thing that might be nice to add to this is with the left button drag, how about having a small area in the right hand side of the title bar that serves the same purpose as the left 'selection' area - just something close to the left of the minimise button. i just feel it would be nicer if this could be done for when you are dragging windows to the right of the screen.

this is a cosmetic suggestion so may be considered of little importance - for the left mbutton drag method - how about having a visual cue for when the mouse cursor is in the 'hot' part of the title bar - just something obvious but small - a red dot next to the cursor or the actual area in the title bar that is 'hot' is overlayed with a coloured rectangle - this would also help in identifying the right hand side selection area in the titlebar that i suggested above.

i've also thought of another idea, and maybe this is going too far again - how about when using the titlebar drag methods, instead of having to drag to a position on your screen, a 'mini' grid appears under the mouse cursor that represents the screen with the gridzones marked on it - then you merely drag over a very short distance (a hundred or so pixels or less) and then release. this idea strikes me as the next logical step for gridmove - dare i say it, but perhaps it should have been how things were done from the start.

i'll shut up before i get carried away.

you can certainly be proud of gridmove - i hate to imagine how much work has gone into it. it certainly has become a util any windows user can take advantage of - that's a great achievement all in itself.
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: nudone on July 22, 2006, 04:21 AM
i like the win+G method too - just right for the keyboard shortcuts. excellent.

just wondering if it would be possible to use the mouse scroll wheel to select other grid layouts instead of using right mouse click (i think mouser suggested the mouse wheel) - would be kind of nice to be able to scroll up through the list as well as down through the list.
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: jgpaiva on July 22, 2006, 04:58 AM
Thanks nudone, there really was a bug there. Disabling the lbutton method was disabling the edge drag method.
It's now fixed.

I forgot to mention earlier, now there's also the on top grid element, which makes the windows that are dragged into it be on top, the maximize grid element, which makes the windows dragged into it be maximized, and the restore grid element that restores the window to it's last position and size, before it was snapped. (for those times when you inadvertedly resize a window and then can't get it back to the old size)

The mouse wheel method makes much sense to me, i had already thought about it. The only problem i find is that it can't be used with the mbutton drag method, as the button is pressed. I'll have to think it over.

As for being able to activate the drop zone by dragging in a place close to the right of the title bar, i'll see if that's possible without having it not allowing you from clicking the minimize/maximize/close buttons.

Now, the best part.
I can see what you mean about having the grid close to the mouse pointer, it'd make the program be way faster. And the best part is that i think this can be done. A few days ago, i tried something similar, which had great effects but it also broke half of the code. I'll look into it, and see what i can do.

As for the red dot next to the pointer when the mouse is on the titlebar, i think that's very important, specially for new users, and i'll install that asap.

Thanks!  :Thmbsup:
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: mouser on July 22, 2006, 05:02 AM
nudone's suggestions are interesting but, speaking from personal experience, i might advise taking some time to let them sink in before embarking on implementing them.. they sound like they might involve some real work and im not sure about their long term use.

for example:
wheel select of grids - i may have suggested it but i realize now its not ergonomically fun to use wheel while left mouse is down and right clicking through grids feels perfect to me.  also - i dont think very many people are going to be adjusting grids on the fly very often.  i suspect we will each have our favorite and rarely change it.
grid pop up over cursor - this is a fun idea BUT it sounds like a lot of work.
red dot - this is something that seems like after you got used to the program you wouldnt need or want, but could be difficult to do without causing some side effects (occassional dots left on screen, cpu performance hit).

my #1 request in terms of efficiency would be let the digit key work after you activate grid mode even through mouse, just as they work when you hit win+g.
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: nudone on July 22, 2006, 05:49 AM
well, again, anything i suggest - i'd only want to see it done if it was an 'option' and not something forced on the user.

the 'mini' grid idea, well, the way it would speed things up would be good but i also realise that as you are probably going to move your cursor down to the location the window has 'zoned' to, then you probably aren't being that more efficient. the only time it would make a difference is when you were moving windows out of the way and not necessarily working with them immediately after the move.

something has just occurred to me - and maybe this is how the 'mini' grid has already been interpreted(?) - what if the 'mini' grid didn't move windows to different locations on the screen but instead only resized them...

or, again, there was the option of it doing just a resize and/or a move.

it would be nice (and look good) if as you move the cursor around the mini grid a transparent template of the new size for the window appeared and updated on-the-fly so you could see what size the window would change to when you release the mouse button.

all very complicated to implement i'm sure - it's just a thought, maybe something for gridmove version 5.

ithink the 'mini' grid idea would lend itself better to the 'ontop', 'restore' functions also.
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: jgpaiva on July 22, 2006, 06:16 AM
@nudone:
You actually gessed what i mentioned i had tried.
I've been thinking, and the grid on the mouse needs to have a complete rewrite of the whole code. I misunderstood what you mentioned. But i have already tested this latest options you mentioned:
If the grid was dynamic, it could use variables like mouse position and resize the window based on that information (like the maximize vertically / horizontally works now).
But this is limited, the grid's trigger has to be fixed because the gui is generated at the beggining, generating it each time the grid comes up would take too much time.
But using this grid, we could have some really cool grids.

Anyways, for now i'll focus on making the command work on drop zone mode and on the red dot helper.
Next i'll also make a "help mode", which will display some tooltips when gridmove is running, so that new users can get aquainted faster with the program ;)

I now expect everyone's beta testing, to find bugs, and improve this program, so that it can have it's own page and go out in the public during the next week.

Also, please try to mention a better suiting name, so that i can open a poll to find the best name for it.
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: nudone on July 22, 2006, 06:19 AM
'gridmove' sounds kinda snappy to me.
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: mouser on July 22, 2006, 06:58 AM
ScreenZones?
DesktopZones?
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: Josh on July 22, 2006, 06:11 PM
WinSizer!
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: kimmchii on July 22, 2006, 06:31 PM
ScreenZones?
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: Josh on July 22, 2006, 08:16 PM
Both mouser and I thought this would be helpful to explain to users what exactly gridmove does. So here you go, your very own screencast.

The dual label bug is present in this cast. A replacement cast will be done once this bug is fixed. So please ignore it

http://josh.dcmembers.com/Casts/GM/GridMove.html

Enjoy :) And again jgp, great job!
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: nudone on July 23, 2006, 04:06 AM
good job on the screencast, Josh, but when you do the next one can you demonstrate the way gridmove resizes the windows - this is one of its crucial features. just moving windows about isn't enough to demonstrate what 'gridmove' is really for - 'gridmove' moves and resizes and arranges windows thereby cutting down the steps it would normally take for the user to achieve the same result.

i look forward to seeing the next screencast.  :Thmbsup:
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: jgpaiva on July 23, 2006, 02:38 PM
Hi there!
I'm glad that you are suggesting new names for the program :D

Josh: thanks for the screencast!
I noticed it's quie weird, though. This means i need your full specs, to try to trace the bug. Tell me, normally the command is on the right of your screen or did it happen only on the screencast? (did you change your resolution or are you using some function of the screencast program?)
I also noticed the grid is all messed up :S

I'm currently not at home, which means i'll be posting less. Nevertheless, i'm updating more. I've already made the feature mouser asked, made some more templates (included in the for of .grid files so that you can learn how to make custom grids).
Also, I've changed the .grid files syntax, so that you can create a grid only by copy-pasting stuff from other grids. Please don't create your own grids right now, as it'll not work on the next version.
I hope i'll upload the new version as soon as possible (which should be in about 24hours from today.

Nudone: I know you made your own grid. I'm sorry for this, but it won't take you much time to convert it to the new format.
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: nudone on July 23, 2006, 02:44 PM
i'm just playing around making a few test.grid files and i have to ask is there a quick way of refreshing 'gridmove' so i don't have to keep loading the .grid file in again after i've made a slight edit.

if there isn't a quick way of refreshing gridmove, can we please have one soon, jgpaiva - a keyboard shortcut would be nice when in 'testing' mode so that you don't have to keep going to the menu and selecting 'refresh' from there (assuming it could be done).

thanks.
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: nudone on July 23, 2006, 02:56 PM
can we also have it so that user .grid files can be part of the selection when you right click to change the grid layout - even if it means having to put the .grid files in a specific folder that gridmove knows the path to.

(i don't mean in gridmove's tray menu - i mean the quick right click grid switch method.)

thanks again.
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: nudone on July 23, 2006, 03:01 PM
back again.

when creating user .grid files it would also be nice to be able to include the 'restore' and 'ontop' trigger zones (i don't know the code for these but i suppose i could hunt it down).

thanks again, again.
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: jgpaiva on July 23, 2006, 03:08 PM
i'm just playing around making a few test.grid files and i have to ask is there a quick way of refreshing 'gridmove' so i don't have to keep loading the .grid file in again after i've made a slight edit.
It's already there, press win+g then press R. It'll reload gridmove.

I think you had a good idea, if the person right-clicks, it'll change to the next grid but if the person keeps pressing it for a bit, a menu will come up with the .grid files in gridmove's directory. You think that works?
I'll see what i can do.

ps: to get restore and ontop working on a custom grid, just make all the elements on the "grid" part be "restore" or "AlwaysOnTop", respectivelly.
i.e.:
1gridtop = restore
1gridbottom = restore
1gridleft = restore
1gridright = restore
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: Josh on July 23, 2006, 03:12 PM
Hi there!
I'm glad that you are suggesting new names for the program :D

Josh: thanks for the screencast!
I noticed it's quie weird, though. This means i need your full specs, to try to trace the bug. Tell me, normally the command is on the right of your screen or did it happen only on the screencast? (did you change your resolution or are you using some function of the screencast program?)
I also noticed the grid is all messed up :S

Intel P4 Dual Core 3.2, 2048MB ram, Nvidia GeForce 6800, Windows XP MCE 2005. All that happens is a resolution change (and as you see in the screencast, I do manually reselect the 4 grid option). What else do you need?
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: nudone on July 23, 2006, 03:22 PM
er, yep, i'm still here.

just a quick suggestion - those 'restore', 'ontop', 'maximise' trigger zones would be easier to use if they were nearer the top of the screen. this way they would be nearer to the titlebar of the window, so less distance to drag.

(sidenote: 'studies' have found that buttons/menus and GUI stuff is easier to access when placed at the upper parts of the screen rather than at the bottom of the screen - we're talking mouse usability. hence menus always being at the top except for microsoft deciding to stick the taskbar at the bottom.)

as for the user .grid file right click selection - i'll probably only use my own .grid files with gridmove - probably only have 2 or 3 different grids, but it would be nice to be able to swap between them quickly so however that can be done i'd be over the moon.

i'll try the new version now.

thanks once again.
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: nudone on July 23, 2006, 03:24 PM
i might well be talking rubbish when saying i'll have 2 or 3 grids files - i will probably just create one super grid that does everything - it will make more sense.

cool, how the restore, etc trigger is so easy to include - i like that. good thinking when you made it.

oh yeah, the reload feature is cool too.
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: nudone on July 24, 2006, 01:00 AM
would it be possible to assign shortcut keys for enabling/disabling the different 'modes': Lbutton, Mbutton, edge drag?

might also be a nice cosmetic improvement if when you use the 'ontop' trigger their is a visual cue, i.e. the word 'ontop' appears on screen - maybe.

on the point of visual cues - is it possible to make the letters/numbers that do appear on screen to be more visible - like with a background or border around them as they can be difficult to read sometimes.

thanks.
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: nudone on July 24, 2006, 01:26 AM
i can't quite remember if you said this wasn't possible to do?..

can the 'trigger zones' be made to be more visible. at the moment they are transparent with a white border. could they be something like semi transparent with a white border - rather like the 'resize zones' appear.

i say this as i'm creating a grid that behaves more like a screen full of large buttons (trigger zones) but it can be difficult to identify exactly which 'trigger zone' you are moving across/into - i'm also making matters worse by leaving areas of the screen without a 'trigger zone', i.e. just a blank area. i don't have to do it that way so that's my own fault but it would certainly be nice if the 'trigger' areas were more visible. what i'm asking/hoping for would only make sense if the 'trigger' area under the mouse cursor temporarily become more prominent/visible as the cursor passed over it.

i really hope this is possible.
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: nudone on July 24, 2006, 01:58 AM
just found a 'bug' with the use of ontop windows and the 'trigger' grid.

a window that is 'alwaysontop' prevents the grid from appearing above it - hope that's not a complicated thing to fix.
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: nudone on July 24, 2006, 02:08 AM
just realised another thing - at the moment the keyboard shortcuts only work with the grid numbers - could we also have shortcut keys assigned to the 'ontop' and 'restore' triggers - maybe use the 'space' and 'enter' keys???
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: jgpaiva on July 24, 2006, 05:31 AM
Intel P4 Dual Core 3.2, 2048MB ram, Nvidia GeForce 6800, Windows XP MCE 2005. All that happens is a resolution change (and as you see in the screencast, I do manually reselect the 4 grid option). What else do you need?
I think i know what the problem is (at least, i hope so ;) ). Did you start gridmove before changing the resolution?
The screen sizes are only calculated once, at the start of the script. So, if you start gridmove before you change the resolution, it'll be all messed up.
I'm not sure if that's the problem, but please try starting it after the resolution change, or reload it after the resolution change.
The specs i was looking for were moore like number of screens and resolution of each of them ;)
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: jgpaiva on July 24, 2006, 05:45 AM
@nudone:
Notice that on the right-click swap, you can customize the grid order to include .grid files on the same directory as gridmove.exe. Just append ",nameofthefile.grid" to that list.

Oh, i'd forgotten about those. On prior versions, there were shortcuts to enable/disable the interaction methods but i removed those as i thought they weren't that useful.
I already tried to have a background on the numbers, as i've found the exact same problem you did. I didn't have much luck, though. I guess i'll have to try to find another way of doing it ;)

I see what you mean by having the trigger zones have the transparent background like the highlight does.That's a good point, i hope i can do it, i also think it's a big improvement.

AhAh... The ontop bug... That had happened to me. it's a damn weird bug, it shouldn't occuor. I had already looked into but couldn't find a solution for it. That's a damn hard one, i think.

Good point about adding the other options to the keyboard shortcuts. I think i need to revise the way those work, because having a lot of shurtcuts made out of single keys will become complex as there already are a bunch of options. I think most probably the non-numeric options will be changed into typing part of the name of the option (as some options have the same start (reload / restore)).

Unfortunatelly, i have bad news. On my latest post, i mentioned i had the command working on drop zone mode, but i didn't test it as i should. It can't be done like i did, which means it isn't working.
I'll now upload the version i did before, that uses a different syntax for the .grid files.
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: nudone on July 27, 2006, 01:26 PM
here's my first 'super grid' if anyone would like to try it.

it's probably going too far for most people - i'm trying to cover almost every window size whilst still retaining some kind of visual cue as to what you will get from a trigger zone.

i tried to do a screengrab so that you'd get an idea of the grid zone layout but i couldn't get anything to do the grab (printscreen won't do it).

i hope someone finds it useful - or even a grid file to modify.

i'll upload a screen edge trigger version (or something similar) when i've made one.
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: nudone on July 27, 2006, 02:48 PM
just a quick request, jgpaiva. can we have an option to turn off the right mouse click that loads in the next grid layout.

i keep accidently making a right click and then having to load in my .grid file from the menu to get things working.

(i think my right click finger has a mind of its own.)
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: jgpaiva on July 27, 2006, 03:05 PM
 ;D ;D Cool grid!
I notice that you really really miss the grids using the mouse position. I hope i'll be able to get what working some day.

No need to disable the right-click to switch grids, you only have to change the grid order to only include your grid ;)
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: nudone on July 27, 2006, 04:58 PM
i don't seem to be able to do anything that stops the right mouse click messing things up.

i browse to the .grid file i've made - which is in the 'gridmove' folder i'm running 'gridmove' from.

and then i have this in the grid cycle config box...

[ You are not allowed to view attachments ]

everything works okay until i accidently right click whilst in the grid view mode - then i have to reload the .grid file back in because nothing works at all.

it doesn't seem to make any difference whether there is anything in the grid cycle config box.

any ideas?
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: jgpaiva on July 28, 2006, 04:45 AM
There might be a bug there, i need to look into it.
Nevertheless, if you write:
nud super grid 01.grid,
It works (notice the comma at the end and not in the beggining. that's where the bug is).
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: nudone on July 28, 2006, 04:58 AM
great, i'll try that when i get home. thanks.  :Thmbsup:
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: nudone on July 28, 2006, 03:17 PM
There might be a bug there, i need to look into it.
Nevertheless, if you write:
nud super grid 01.grid,
It works (notice the comma at the end and not in the beggining. that's where the bug is).

hehe, thanks. it does indeed work. time to make another .grid file...
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: nudone on July 29, 2006, 01:58 AM
just a slight addition to the super grid - i've added zones for left one third across by half screen up/down.
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: nudone on July 29, 2006, 04:03 AM
i've noticed that gridmove has started to lose the ability to appear 'on top' of the windows that are open - i know this bug was reported before - just thought i'd mention it as i hadn't encountered it before.
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: jgpaiva on July 29, 2006, 10:43 AM
Ok, a new update!

The ontop bug should be fixed now, it looks like it's working.
The program is now more responsive, due to changing the inner workings a bit. The titledrag method now works on windows other than the active one too. (on prior versions, you had to first select the window and then drag the title).

Also added a tooltip helper which comes up on the first run of gridmove.
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: nudone on July 29, 2006, 11:06 AM
nice job, jgpaiva.

it does look more responsive and i've not seen any 'on top' problems yet.
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: nudone on July 29, 2006, 11:42 AM
i seem to have found a new bug.

normal window resizing, i.e. using the mouse to drag the edges of a window, now appears to be slightly broken when gridmove is running.

it doesn't seem to matter which grid is being used (i thought it might have been something to do with the one i made).

this is what tends to happen:

begin dragging a window edge to change the size of the window and the mouse cursor will either lose a 'grip' on the edge (or corner) of the window. or, the window that is being resized will jump behind the windows underneath it.

???

i'm confident in saying this only happened with the latest version. unfortunately i don't have the previous version now to test.

Title: Re: IDEA: drag window to edge automatically resizes it
Post by: jgpaiva on July 29, 2006, 12:10 PM
Right, i also noticed that but thought it was related to allsnap and not gridmove. I'll look into it!
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: jgpaiva on July 29, 2006, 02:21 PM
 :) GridMove 1.16:

Focus bug fixed (that was the one creating the problem mentioned in the last 2 posts)
GridOrder bug fixed. (mentioned a few posts above).
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: nudone on July 29, 2006, 02:29 PM
 :D looks like everything is working.
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: nudone on July 30, 2006, 01:21 AM
ha ha, i've only just discovered that you don't have to click on the titlebar when using the middle mouse button. brilliant.

also, not sure if this is a bug or something is just playing up on my machine...

when the grid appears, the window you have open looks like it is under the grid lines that define the grid layout but it is also on top of the semi transparent area that represents the selected grid area. whereas before the open window was underneath all of this.
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: jgpaiva on July 30, 2006, 04:37 AM
ha ha, i've only just discovered that you don't have to click on the titlebar when using the middle mouse button. brilliant.
Yep, that's why it's my favourite method ;)

when the grid appears, the window you have open looks like it is under the grid lines that define the grid layout but it is also on top of the semi transparent area that represents the selected grid area. whereas before the open window was underneath all of this.
EhEh... I see you use a lot windows on top. That only happens when a window is set as on top, it is on top of the highlight, as it was with the whole grid before. As i don't use it that much, i didn't find the bug. Shouldn't be a big trouble to fix. ;)
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: nudone on July 30, 2006, 04:39 AM
i mentioned the above 'bug' as i've not got any of the windows set on top - i don't use that feature much.

i'm getting the problem with newly opened windows - well, all windows.

just checked to make sure and it's definitely doing it with every window i open.
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: nudone on July 30, 2006, 10:02 AM
this is a general autohotkey question that has been answered before on the forum but i'll ask it here as i think it worth bringing up...

i use 'dialogmove' and 'gridmove' and just a little thing i did for moving windows with keyboard shortcuts (well, i did until i deleted it so i need to write the script again). i'm wondering, is there any advantage to putting dialogmove and gridmove into the same .ahk file - i feel i'm talking rubbish as my system is more than fast enough to cope with a couple of .ahk files running at the same time - but, if there is a perceivable improvement to be gained then perhaps it is worth considering.

really, i'm just looking for an answer to be along the lines of "don't be an idiot, i have several .ahk files running simultaneously at no detriment to the speed of my operating system."

i just have one of those nagging thoughts and i need it to be eradicated (please).
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: jgpaiva on August 18, 2006, 09:04 AM
Long time, no see!!
GridMove 1.18 is here!!


Ok, i did a small update. I think the problem with the highlight not appearing on top should be fixed now. I also added the "run" grid. It works in a similar way to the restore, maximize and ontop grids. Here's the syntax:

  GridTop      = Run
  GridLeft     = filename
  GridBottom = name to be displayed
  GridRight    = working directory

"GridTop" must be Run. GridLeft is the name of the file to be ran, GridBottom is the name to be displayed on the grid (like "restore", "maximize" and "ontop" currently do) and GridRight is the working directory (which can be ommited).

As for your doubt, here's the explanation.
When running an ahk script, a bunch of stuff is loaded. If it has hotkeys (like dialogmove and gridmove do), it loads one keyboard hook for each one. A mouse hook is also loaded. All this takes around 3-4mb per each script. So, joining them would spare you 3-4mb of ram. Now, if you don't have a 486 with 12mb of ram, this shouln't be a problem, and believe me: it'd be an almost impossible task, as ahk mostly uses global variables (actually, this is not ahk's fault, it's mine) and it isn't purelly multi-threaded.
Believe me, it surely isn't worth the trouble, and if you don't have loads of ahk scripts you woudn't notice the difference.
On the other hand, if it makes you feel better, you could join the small script you made with dialogmove, which is way simpler than gridmove. But don't think too much about it ;)
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: nudone on August 18, 2006, 09:26 AM
thank, jgpaiva. great to see an update - i knew you'd have one sooner or later.

i'll try the new version over the weekend and report back - i can't really get to my main pc at the moment.
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: nudone on August 20, 2006, 01:58 AM
unfortunately i don't seem to be able to get the 'run' grid working. i've tried a couple of different programs to try and run but i can't even get the title of the program to appear in the grid.

here's an example of what i've tried:

  TriggerTop   = [Monitor1Top]
  TriggerLeft  = [Monitor1Left]
  TriggerBottom= [Monitor1Bottom]
  TriggerRight = [Monitor1Left] + [Monitor1Width] /2
 
  GridTop   = Run
  GridLeft  = C:\Program Files\Maxthon\Maxthon.exe
  GridBottom= Maxthon
  GridRight = C:\Program Files\Maxthon

i tried a similar thing with 'notepad++'. am i just doing it completely wrong?

also, the grid highlight not appearing on top problem only seems to happen when i'm using that 'supergrid' i made. it still has the problem but i wouldn't spend any time trying to get it to work, jgpaiva, i think i'm tired of that layout. thanks for trying though.
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: jity2 on August 23, 2006, 11:25 AM
Hi

I don't know if this helps, but here another related freeware
"WinSplit.NET"
http://reptils.free.fr/index_en.htm

Title: Re: IDEA: drag window to edge automatically resizes it
Post by: nudone on August 23, 2006, 12:59 PM
Hi

I don't know if this helps, but here another related freeware
"WinSplit.NET"
http://reptils.free.fr/index_en.htm

nice idea using the number keypad to position windows. gridmove still requires keyboard hotkey input - hopefully using the 'winkey' (hint, hint, jgpaiva).

winsplit.net is worth trying if you want the keyboard control for the time being - unfortunately it did crash whilst i was trying it out but until that point it seemed pretty good. it could do with user customisable keys.


Title: Re: IDEA: drag window to edge automatically resizes it
Post by: jity2 on August 23, 2006, 01:26 PM
Hi,

Crash => Maybe try the new 1.1 version (only in french for now)
http://reptils.free.fr/WinSplit%20dossier/soft/WinSplit.NET_French_v1.10.exe

(http://reptils.free.fr/ )
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: jgpaiva on August 31, 2006, 03:25 AM
Hi there!

I'm currently working on a complete help file, since the help tab on the about box is missing many many key points of gridmove.
But by using WinSplit.NET, i had a good idea. I'm thinking about implementing the function that was talked before about having GridMove keeping a list of the active windows and moving them in order (when you move a window to someplace where a window was, that other window is moved to where the moved window's origin).
Also, hotkeys make much sense, and probably win+# is the best option. It'll be in the next release (which should take a couple of days).
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: nudone on August 31, 2006, 06:17 AM
great. looking forward to it, jgpaiva.
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: jgpaiva on August 31, 2006, 02:09 PM
It's done!!!!
GridMove 1.19 is here.
It features a complete help file (now that i remember, it misses 2 things, i'll add those tomorrow) and win+# hotkeys! (which by the way are fantastic and i want to thank you for having me implementing them).
Also, the win+g # is improved, and doesn't wait anymore unless it makes sense. This means that if you have less than 10 elements, it'll move the window immediatelly after you press #, if you have more than 10 and less than 20, it'll move the window to areas 2-9 immediatelly and will wait a bit for the 1. (yep, sounds weird, i can't explain it, please try it and you'll understand).
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: jgpaiva on August 31, 2006, 03:06 PM
Just a small update with a bug fix. Now, when using the keyboard, if you move the window to a "Maximize Vertically" / "Maximize Horizontally" grid element, the window is stretched relative to it's current position, ignoring the mouse position. (the same grid element's behaviour when used with the mouse wasn't altered).
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: nudone on August 31, 2006, 03:21 PM
brilliant.

the help file is extremely well done and it's good to see some more hotkeys added to the program.

can I just make a quick suggestion - I love the idea of hotkeys for minimising and restoring windows (I've had autohotkey scripts do this in the past) but can you please change the way the '0' is used to minimise a window. the problem is that there is rather a long pause after the '0' is pressed and the minimise function takes place. I'd be really grateful if you could change the hotkey so that it worked instantly - otherwise it's actually quicker for me to take my hand off the keyboard and use the mouse.

I can, of course, just continue to use the autohotkey script that I use for minimising windows instead.

anyway, it's great to see an update for gridmove. I've not tried the over 10 grid zone quick keys yet but I'm sure I will - I think there might be a new grid layout that might just be right for it.
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: kproth on August 31, 2006, 03:27 PM
Regarding window minimization, just as an FYI for any readers who don't already know:

Alt+SpaceBar, followed by the letter N, minimizes the current window.
WinKey+M minimizes all (non-modal) windows.
WinKey+D shows/hides the desktop, so pressing it once minimizes all windows, and pressing it again restores all windows to their prior position.

- Kevin
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: jgpaiva on August 31, 2006, 06:48 PM
the help file is extremely well done and it's good to see some more hotkeys added to the program.
Cool, i'm glad to know i could transmit the knowledge in a correct way.

can I just make a quick suggestion - I love the idea of hotkeys for minimising and restoring windows (I've had autohotkey scripts do this in the past) but can you please change the way the '0' is used to minimise a window. the problem is that there is rather a long pause after the '0' is pressed and the minimise function takes place. I'd be really grateful if you could change the hotkey so that it worked instantly - otherwise it's actually quicker for me to take my hand off the keyboard and use the mouse.
Yep, i've also noticed that, it isn't handy at all. i think it might be better to have 'm' to minimize and 'M' to maximize. Although, 'M' forces the use for another extra modifier (shift). Do you think other key should be used?

I can, of course, just continue to use the autohotkey script that I use for minimising windows instead.
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: nudone on September 01, 2006, 01:15 AM
kproth has mentioned something important regarding the problem with the minimise shortcut.

the hotkeys that i made myself where originally things like 'winkey+delete' or 'winkey+pageup' as I knew that they wouldn't conflict with other programs hotkeys. but it annoyed me that I'd have to use both hands to use these hotkeys (I always forget that there is a winkey on the right hand side of the keyboard which I could have used), so I changed the hotkeys so that I could easily use them with my left hand.

I mention this as if it takes more than one manoeuvre to perform a hotkey function then it's not really that nice to use - this is exactly why I don't use the 'alt+space'... 'n' combination that is built into windows (and I can never remember 'n' means minimise).

unfortunately, gridmove is replicating this inbuilt windows hotkey combo and the truth is that I wouldn't have used it - I didn't want to sound ungrateful by saying I wouldn't use that feature so I suggested that it could be speeded up instead.

the hotkey combo's for selecting grid zones makes perfect sense as we need to see the grid layout before selecting a number. there just isn't really any great need to see the grid when minimising, maximising, etc. so a single hotkey hit would be preferred for these actions.

could you not just make it so that gridmove has the hotkeys for minimise, maximise, on top, 50% transparency and rollup by using shortcut keys like winkey+userdefinedkey. I know this is transforming what gridmove does but it makes sense to me to have other window control features as part of the program - providing they are as simple to use as lots of programs out there already that do these windows tasks.

I admit that these are luxuries rather than necessities and it probably is better using a dedicated window control program - the thing I use also allows a window to be moved around the screen a few pixels at a time by using the keyboard, so I could also add that to the request list of gridmove hotkeys.

anyway, I'll be happy with gridmove however you decide to transform it, jgpaiva.
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: jgpaiva on September 03, 2006, 05:18 AM
There was a giant mistake on the .exe version (when ran for the first time), which didn't unpack the files. Updated to 1.191
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: jgpaiva on September 04, 2006, 09:07 AM
New version is up, 1.192.
This version features the possibility of changing the colour of the grid (by changing the colour of the Grids/Grid.bmp file) and all the files on the Grids folder are listed on the templates menu.
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: jgpaiva on September 04, 2006, 01:56 PM
Another update (same release number). Now, the hotkeys are configurable through the tray menu option: hotkeys.
(sorry for the delay on this important option!!)
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: nudone on September 04, 2006, 02:17 PM
great, i really like the fast move hotkeys.

but couldn't we have had the combination winkey + 0 to minimise a window, as i see there is still a delay when using the control + g keys then hitting 0.
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: jgpaiva on September 04, 2006, 02:20 PM
Good point, nudone. The win+0 is a bad idea, i need to find a workaround. (currently win+0 moves the window to the tenth grid, but i guess it could be used to minimize window)
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: nudone on September 04, 2006, 02:32 PM
could we not have a separate hotkey config file so that we could change the hotkeys to whatever we want?

i'd probably use something like winkey + downarrow, or some other combination i'm sure wouldn't be used with another program. but i'm also sure i'd change my mind and change it to another key combination at some point.
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: jgpaiva on September 05, 2006, 01:25 PM
Ok,i've made some thinking about this, and got to what i think is a good conclusion.
Having gridmove defining a bunch of hotkeys not related to moving windows to the grid or something doesn't make much sense. But it does make sense to be able to specify hotkeys for moving to specific grid elements.
So, i'll add a way to define hotkeys for moving specific grid elements, which can be "run" elements, where you can add whatever crosses your mind. What do you think about this solution? (i will also include executables for the usual stuff like minimizing, maximizing, making windows transparent, moving them to the right/left/up/down, etc).
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: nudone on September 05, 2006, 02:27 PM
i'm in favour if the method you describe would only take one action to perform, i.e. you hit a key combination and the action happens straight away - having a delay or having to hit a series of keys for it to work isn't going to be that helpful.

to be honest, i wouldn't give yourself a headache over it, jgpaiva, as there are solutions already for this kind of thing.

perhaps it would be better to let gridmove remain what it is - a tool to quickly snap and resize windows.

a new autohotkey util could be designed to cover the other functions like running programs, moving windows and changing their state. it's probably been done several times over already, i mean, even i had a go at making one.

the suggested gridmove feature for running an external program is a bit flunky really. i think it would make more sense to just have invisible triggers that didn't require dragging a window. just something like what is already out there in several programs where you trigger an action by moving the mouse cursor to the edge/corner of the screen. maybe if this could be developed further as an idea it would be worthwhile pursuing?
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: jgpaiva on September 05, 2006, 02:41 PM
That's not a problem, my idea was to have a direct hotkey.
This would be specially useful for grids like the edge grid. you could only have a hotkey that would move the window to the center element (5), like win+c. It'd help in the sense that it'd be easier to remember which hotkey corresponds to which element, instead of just knowing it's number.

Notice that the run grid is already implemented (although i didn't make any grid demonstating it). It makes most sense if functions that act uppon windows are used. It's most interesting for stuff like remembering the position of certain windows, making them transparent, rolling up windows and such. Maybe i should make some kind of demo to show it's potential.

As for adding triggers that work with the mouse, i prefer to keep them out of gridmove. I say this, because i want it to keep revolving around the grid and it's hotkeys, since if it starts diverting to other fields, it might not be good in any of them. (take powerpro. although it has an ocean of possibilities, but only a selected few can use it because it's overly-complex)
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: jgpaiva on September 08, 2006, 04:30 PM
New version uploaded! (ScriptVersion = 1.19.22)
TucknDar found a giant bug concerning disabling the mbuttondrag method. THANKS!!  :Thmbsup:
Also, fixed 2 typos in the hotkeys options, also found by TucknDar.

I'm now thinking about adding a new method of interation: modifier + leftbutton (working on the whole window, like the mbuttondrag currently does).
Any opinions?
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: TucknDar on September 08, 2006, 04:33 PM
New version uploaded! (ScriptVersion = 1.19.22)
TucknDar found a giant bug concerning disabling the mbuttondrag method. THANKS!!  :Thmbsup:
Also, fixed 2 typos in the hotkeys options, also found by TucknDar.

I'm now thinking about adding a new method of interation: modifier + leftbutton (working on the whole window, like the mbuttondrag currently does).
Any opinions?
Opinion? Only that this TucknDar-fellow must be some sort of bug-finding genius!  :redface:
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: mouser on September 09, 2006, 12:40 AM
Congratulations to jgpaiva (and nudone for the original idea):
GridMove was mentioned on LifeHacker (http://lifehacker.com/software/productivity/download-of-the-day-gridmove-windows-199404.php) today.
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: nudone on September 09, 2006, 03:08 AM
ah, the world is finally seeing sense - well, the corner of the world that lifehacker covers.
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: allen on September 10, 2006, 11:53 AM
This application is excellent.  After spending some time making a custom grid, I couldn't be happier.  Snap point for my webbrowser, snap points for my text editor (primary centered and points to tile it vertically or horizontally) -- no more manual window resizing.

I've attached the grid if you want to check it out.  It's made specifically for me, but it might be handy for others, quite a few variations of the middle window (text editor, file explore, etc.) for tiling/resizing.
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: nudone on September 10, 2006, 04:06 PM
i've taken a peek at your grid. nice idea.

i think simple is the way to go - my supergrid was too much for me to use - too many choices.
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: allen on September 10, 2006, 05:22 PM
My goal was to make a grid I could/would use.  Grids 1/2 are general positions I use constantly, 3 an offspin of 2 that works great for when I don't need my editor so big.  The others are for dual-editing with side by side comparison.  Probably add a few smaller elements on the right side for a few things, but generally I just have google talk and some messaging windows open there and use Opera (slot 1) to align them by anyway.

The easy snapping is great -- and I love the win+g command option.  As someone who becomes angry at having to use the mouse when I don't want to, I'm tickled pink. :)
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: jgpaiva on September 10, 2006, 06:01 PM
I've attached the grid if you want to check it out.  It's made specifically for me, but it might be handy for others, quite a few variations of the middle window (text editor, file explore, etc.) for tiling/resizing.
Damn, that's a neat grid! You definitelly have good taste on how to make them.
I'll try to get a page online to post custom grids, so that people can send them to me and i'll make them multi-screen, take a snapshot and put them online.
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: Deozaan on September 11, 2006, 01:50 PM
GridMove keeps locking up (not responding) and I run it and I try to drag windows around but it doesn't show a grid and they don't go into place.

What's the deal? Has it been tested with Dual Monitors?
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: Deozaan on September 11, 2006, 02:00 PM
Okay, I read the help file. (duh!) so now I can get it to go to the drag zones, and I know it has dual monitor support. But it keeps locking up when I load Allen's grids.

Oh, there it went. It just takes forever to load, but Allen's grid doesn't seem to work.
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: allen on September 11, 2006, 05:16 PM
If you look at the source code, D., you'll see a special hack labeled "Pwning 4 Deozaan, no grid 4 u lolololz"  ;D
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: jgpaiva on September 11, 2006, 05:25 PM
Deozaan... Something is definitelly wrong, it did load here. And i also have dual monitor.
Did you place the grid on the grids/ folder? (not that it should matter, i'm just trying to figure out what could be wrong).
Can you load the other grids? Does it only happen when you load Allen's grid?
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: Deozaan on September 12, 2006, 10:22 AM
If you look at the source code, D., you'll see a special hack labeled "Pwning 4 Deozaan, no grid 4 u lolololz"  ;D
  ;D ;D ;D

All the grids are now working. I did not put Allen's grid in the grid folder. I'm not sure what it was. I got Allen's to load correctly and it isn't locking up anymore. Maybe it was just a software conflict. I'm at work and have some company specific software running that does weird things to the computer sometimes.

But I have a feature request! I would like it if we could name the drag spots instead of just numbering them. This way I could have a grid named Firefox, or E-mail or something similar.
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: Deozaan on September 12, 2006, 03:59 PM
I think I may have found a bug. Whenever I drag a window from the title bar (though not necessarily while clicking on the title itself) straight to the left, it goes maybe 100 pixels and then snaps into place and the trigger grids appear.

Dang! Now I'm not able to reproduce it 100% of the time, but before I started writing this it happened every time.

Okay, I think I might have figured it out. If I drag the title bar from some place other than the title and drag it straight left into the area the title originally was when I started dragging, it snaps it into place as if I had just clicked onto the title in the first place.

This is a very handy tool. I'm still working on customizing it for my workplace, but I'm finding it very useful. If only this thing had a GUI where you could just draw the bounding boxes for the triggers and grids. Or take a snapshot of where the window currently is and load those coordinates into the grid. And also, as I already said, I'd like to be able to name my grids.
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: jgpaiva on September 12, 2006, 04:29 PM
I think I may have found a bug. Whenever I drag a window from the title bar (though not necessarily while clicking on the title itself) straight to the left, it goes maybe 100 pixels and then snaps into place and the trigger grids appear.

Dang! Now I'm not able to reproduce it 100% of the time, but before I started writing this it happened every time.

Okay, I think I might have figured it out. If I drag the title bar from some place other than the title and drag it straight left into the area the title originally was when I started dragging, it snaps it into place as if I had just clicked onto the title in the first place.
Sorry, i can't quite understand what you mean.. :(
(i belive it might be that it's taking too much time to show the grid, right?)

This is a very handy tool. I'm still working on customizing it for my workplace, but I'm finding it very useful. If only this thing had a GUI where you could just draw the bounding boxes for the triggers and grids. Or take a snapshot of where the window currently is and load those coordinates into the grid. And also, as I already said, I'd like to be able to name my grids.
The gridcreator has already been started, and i got something working, but still very primitive. I'll try to get it out asap. (it was scheduled for today, but i had a few delays, should be done in the end of this week)
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: Deozaan on September 12, 2006, 05:40 PM
GridMove is only supposed to work with the left mouse button if you click on the part of the title bar that actually has the title of the application, correct? When I click more to the right where there are no words, the grids do not appear. I believe this is normal functionality.

When I click somewhere on the title bar that has no text, and I drag it as straight as possible to the left, to where there was originally the title bar text, the grids will appear. This is easiest seen if you disable "show window contents while dragging" in Windows so that you can see the original position of the title before you started dragging it.

Does that make more sense?
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: wcyee on September 13, 2006, 01:30 PM
Unfortunately, GridMove doesn't work well with my virtual desktop maanger - VirtuaWin: http://virtuawin.sourceforge.net

When I switch desktops, GirdMove automatically shows all the hidden windows and snaps them to place. Is there any way to work around this?


Title: Re: IDEA: drag window to edge automatically resizes it
Post by: mmdoogie on September 14, 2006, 03:39 AM
I have noticed a tiny bug in this absolutely awesome utility...
I don't know if anyone else has seen this or if its just something odd about how my system is.

If I go to the top left corner of my desktop, with no window there,
then drag on the desktop, the grids will appear like I am dragging a window.
This only happens in about the top 100x25 pixels, just like there is a title bar there.

If I then drop into one of the grids, a titlebar will flash up for a very short time, like a program is being sized to fit the grid, then go away.
The title bar is for the Program Manager.

I believe this has something to do with the way AHK treats Program Manager as a window
for some functions to get the size of the desktop and a few other things.

I modified the GridMoveP1.ahk script, in the MousePosition sub, on the line beginning AND WinTitle != "",
to also include AND WinTitle != "Program Manager" which cures this little problem.

I've had this mod in place for a bit now and it doesn't seem to hurt anything.

Thanks for the awesome util,
--mrm
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: jgpaiva on September 14, 2006, 04:54 AM
GridMove is only supposed to work with the left mouse button if you click on the part of the title bar that actually has the title of the application, correct? When I click more to the right where there are no words, the grids do not appear. I believe this is normal functionality.
Yes, that's how it's supposed to work.

This is easiest seen if you disable "show window contents while dragging" in Windows so that you can see the original position of the title before you started dragging it.
Ok, now i see what you mean. This is a giant bug, i have moved it to the top of the todo list. Should be fixed asap!
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: jgpaiva on September 14, 2006, 04:55 AM
I don't know if anyone else has seen this or if its just something odd about how my system is.
Damn, a bug report and a solution at the same time!
Ok, should be fixed in the next release!
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: jgpaiva on September 14, 2006, 05:02 AM
Unfortunately, GridMove doesn't work well with my virtual desktop maanger - VirtuaWin: http://virtuawin.sourceforge.net

When I switch desktops, GirdMove automatically shows all the hidden windows and snaps them to place. Is there any way to work around this?
Sorry, but i couldn't get that behaviour on my computer.
Do you have the latest version of both gridmove and virtuawin?
Exactly in what situation does that occuor?

I am running (testing) a new version of gridmove which should be out in not much time, maybe it's related to that.
Let's see if it's fixed on the next release.
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: jgpaiva on September 14, 2006, 03:18 PM
I have good news!

I now release GridCreator, so that you can play a bit with it before i release it with the next build of gridmove.

.ahk version (http://jgpaiva.dcmembers.com/CS/GridMove/GridCreator.ahk)
.exe version (http://jgpaiva.dcmembers.com/CS/GridMove/GridCreator.exe)

(the instructions button still doesn't work, but it's simple to use. Just resize the window with only one button and press the button when you have it with the size you desire. Then, press save.)
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: reko100 on September 14, 2006, 09:32 PM
I just started using this, and i must say this is a very useful app...good job :Thmbsup

Is there a way for the active window to snap to the next available element by using a shortcut?

e.g. I am using 2 parts of a 3-part grid, i open another window, i double-click MButton and the active window will snap to the third part.

Joe

Title: Re: IDEA: drag window to edge automatically resizes it
Post by: nudone on September 15, 2006, 12:27 AM
great to finally see grid creator, jgpaiva.

it would certainly be nice if the creation window 'snapped' to the edges of the screen - might it be possible so that after you click 'add trigger #' yet another 'creator' window opened so that you could position it alongside the 'creator' window you've just set up. of course, it would be useful if these 'creator' windows snapped to each other as well.

you could then keep adding 'creator' windows until you had your full grid set out on screen - all nicely lined up and snapped together.
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: Deozaan on September 22, 2006, 01:26 PM
GridMove is only supposed to work with the left mouse button if you click on the part of the title bar that actually has the title of the application, correct? When I click more to the right where there are no words, the grids do not appear. I believe this is normal functionality.
Yes, that's how it's supposed to work.

This is easiest seen if you disable "show window contents while dragging" in Windows so that you can see the original position of the title before you started dragging it.
Ok, now i see what you mean. This is a giant bug, i have moved it to the top of the todo list. Should be fixed asap!

I actually found out that it doesn't even matter where you first click, as long as it is in the window and you go over the Title, it will pop open the grids. I found that out by selecting text in notepad dragging from the bottom up and going over the title of "Untitled - Notepad"
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: termipeitto on September 26, 2006, 12:41 PM
I'd like to keep the left mouse button dragging as normal and use the middle mouse button to operate GridMove. But if I enable the MButton Drag-option in GridMove, it detects the press of the middle button anywhere in a window, not just from the title bar like it does with the left button. So I can't scroll long texts or websites using the middle button.

So could you add an option to restrict the middle button dragging to the title bar?
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: jgpaiva on October 04, 2006, 07:59 PM
I updated gridmove just now. Current version is v1.19.22.

Changes:
 - bug mentioned in latest posts is now fixed.
 - added more elements to the edge grid (including one with a "minimize" run element)
 - added RunDemo.grid, which is a grid with 2 elements: one for storing the current window position and another one for retrieving the stored position.

http://jgpaiva.dcmembers.com/gridmove.html
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: jgpaiva on October 04, 2006, 08:01 PM
So I can't scroll long texts or websites using the middle button.

So could you add an option to restrict the middle button dragging to the title bar?
Actually, the default behaviour of windows doesn't interfeer with gridmove. If you'l like to scroll a big document, you can just press and release the middle mouse button and the 4 arrows will come up, then you just drag it up or down. The MButton method only becomes active if you press the middle mouse button and drag the mouse without releasing the button. This means that if you do a "click" with mbutton, gridmove won't interfeer.
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: termipeitto on October 05, 2006, 01:36 PM
So I can't scroll long texts or websites using the middle button.

So could you add an option to restrict the middle button dragging to the title bar?
Actually, the default behaviour of windows doesn't interfeer with gridmove. If you'l like to scroll a big document, you can just press and release the middle mouse button and the 4 arrows will come up, then you just drag it up or down. The MButton method only becomes active if you press the middle mouse button and drag the mouse without releasing the button. This means that if you do a "click" with mbutton, gridmove won't interfeer.
I have noticed that myself too. But dragging with the mbutton (instead of just clicking) has just become a habit to me, so naturally I would like to continue doing that. Another reason for my suggestion is that I'd like to keep GridMove quite unnoticeable on the computer, because I'm not the only one using it. The others don't use computer that much and they'd just be confused if the windows will start acting weird. And there's no point teaching them how to use GridMove because they don't need it and would just forget and be confused again. (I know I could make more user accounts and not put GridMove running on them but so far it has been easiest to have just one account for all.)

So this may not seem like a big problem to you but it's pretty much preventing me from using it. It's still a great application and I thank you for making it. I'll sure use it on my laptop because I'm the only one using it (I won't use the mbutton though  :)).
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: nudone on October 08, 2006, 03:43 AM
is there a bug with the latest version of gridmove - or is it just something to do with my system?

when i use the 'restore' grid, my windows correctly restore to the right size but they are not restored to their original position - instead, the window remains at the age of the screen.

to be more precise: this only happens when using the 'edge drag' method. i have to confess that perhaps this has always been a problem with the 'edge drag' method as i've only just tried using the 'restore' grid with it.

any thoughts, jgpaiva?

Title: Re: IDEA: drag window to edge automatically resizes it
Post by: jgpaiva on October 08, 2006, 06:13 AM
I know what this problem is.
GridMove stores the window state before moving it. But, using the edge trigger, the trigger is only activated when the window is at the edge of the screen, so, that's the position in what it's stored. I'm not quite sure how i can solve that.
But you mentioned it's new to this version, would you please describe to me what it did in prior versions?
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: nudone on October 08, 2006, 07:13 AM
well, unfortunately, i don't know what it did in previous versions because i never used a grid with the 'restore' zone built into it - so, i'd guess that it would have worked exactly like you say.

i'll forget about the restore feature - i understand now why you've made it the way it is. i'll just use a specified central window size that i can 'restore' windows to instead of actually 'restoring' them.

no worries.
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: nudone on October 09, 2006, 03:31 PM
not sure if you could do this but i was wondering if you could get around the 'restore' problem mentioned above by 'forcing' the restored window to center in the screen.

so, it would get it's restore size correct but instead of sticking to the edges of the screen it would jump to the center.

i'm hoping it might be possible as my work around fixed size 'restore' method isn't anywhere near as good the true restore that works normally.

OR,

to make even more impossible demands: would it be possible so that after the restore function has taken place - at the edges of the screen - the mouse cursor locks onto the titlebar so that you can drag the window to a better screen position?

i know, i know, why ask for such things. i just feel it would return the 'flowing' nature of how the program works - with less clicks of the mouse and kind of intelligent, useful automation in moving windows about.

edit:

ignore me, i'm just being picky.
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: nudone on October 10, 2006, 03:35 PM
just had another idea:

(might not be really related to gridmove but i'll make the suggestion here anyway.)

would it be possible to resize a window by left clicking (and holding) on the titlebar and then rolling the mouse wheel either up or down.

this is similar to how a few graphics programs 'zoom' in and out of an image, i.e. by using the scroll wheel on the mouse, sometimes with the addition of holding a key down at the same time.

it's just a thought.

thanks.
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: jgpaiva on October 12, 2006, 07:01 PM
Ok... The "restore" + EdgeDrag should now be fixed!  :Thmbsup:

Please download the attached .exe for the most recent version. Haven't put it in the site because it hasn't been fully tested, and i had to change a whole bunch of stuff. Given the advanced hour, it's most possible that there are some bugs.

I've played with it for a bit, and it looks a bit more responsive (hopefully ;) ), the restore seems to work properly (when using the edge method, it restores to the point where the person grabed the window before moving it to the edge), and, most of all, the code got some important structure, which hopefully will make further updates easier. Let's hope so ;)

Now... I expect feedback :D

(sorry, no .zip file because i'm sleepy and it'd take forever to upload)

[edit]Wrong file, please download from the following post: https://www.donationcoder.com/forum/index.php?topic=3824.msg40270#msg40270 [/Edit]
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: nudone on October 13, 2006, 01:57 AM
thanks.

it is doing something different, jgpaiva.

the restore function is making the window move to the right position vertically but it's remaing at the edge of the screen, so no change with the horizontal positioning.

? it might be because of the grid i'm using so i've included it here.
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: nudone on October 13, 2006, 02:30 AM
if you have the time for it, jgpaiva, then rather than trying to fix the restore problem, could you perhaps try implementing this workaround idea...

instead of the window correctly restoring to its original position, instead, could it move its title bar so that it was positioned under the mouse cursor.

in other words. you move the window to the 'restore' zone. the window changes size to the correct 'restore' size. the window then positions itself so that the titlebar rests under the mouse cursor - the mouse cursor will be somewhere inside the 'restore' zone area, of course.

this way it's just a case of dragging the titlebar/window back to the position on screen that you would like it to be.

like i mentioned before, i'm quite happy with how things are working at the moment anyway. these are just ideas.
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: jgpaiva on October 13, 2006, 03:57 AM
Sorry... I made a huge mistake, i uploaded the previous (not-updated) version again, that's why it isn't working.. Please download the one attached to this post (i will remove the other one)
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: nudone on October 13, 2006, 04:13 AM
FANTASTIC.

that works perfectly. many thanks, jgpaiva.

i'll let you know if there are any 'bugs'.
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: AxCrusik on October 25, 2006, 12:05 PM
Wow! This is the most useful program ever! I have been looking for something like this for a long time and I was starting to think that a program like this does not exist.
I am having some trouble getting the gridcreator to work though. I would really appretiate it if someone could make me a custom grid. I have been trying to make a grid that has large triggers in each of the corners and triggers between each of them on each side of the screen (like the edgegrid template but with bigger corner triggers and thicker edge triggers. I want the corner triggers to snap the window to the same quarter of the screen as the trigger. I want the top and bottom edge triggers to snap the window to the to half and bottom half of the screen respectively. I want the left and right edge triggers to snap the window to the left and right half of the screen respectively.
Thanks to anyone who can help me out. It doesn't seem like this should be to difficult but every time I try to set this up in grid creator, only about half of the triggers actually work when I load the grid.
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: nudone on October 25, 2006, 01:32 PM
if you draw the grid you are describing on a bit of paper and scan it in - and upload it here - then i'll have a go at your grid when i get a few free moments.
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: AxCrusik on October 25, 2006, 06:01 PM
The grid I have in mind is too confusing to draw on one page so I broke it down into layers. It might seem complicated at first but once you understand how it works it is actually quite simple. There are 8 triggers (think of tic tac toe without the middle square). The four corner ones snap the window to that corner of the screen. There are four side triggers and they snap the window to that side (half) of the screen. Here are some images. I hope they help. Thanks again for trying to help me with this.
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: jgpaiva on October 25, 2006, 07:25 PM
Ok, i hope this is what you're looking for! (with support to up to 3 monitors :) )

(see attached file)
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: AxCrusik on October 25, 2006, 07:37 PM
You are remarkable! That is exactly what I wanted. You should think about making that design a default template (or think about incorporating it into the edge grid template. Thanks very much!
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: jgpaiva on October 26, 2006, 03:44 AM
You had a goo idea, that grid is very well thought. Yes, i'm thinking about packing it with the next version of gridmove, as an extra .grid file ;)
Thank you  :Thmbsup:
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: spyda on October 26, 2006, 07:24 AM
Congratulations jgpaiva on producing an ABSOLUTELY FANTASTIC piece of software!

I recently bought my other half a new laptop which had Acer's Gridvista incorporated. I was impressed by it and decided to give it a go but soon found the limitations far too limiting. That's when I set about looking for an alternative and this is definintely it! Wait till she see's it installed on my lappy! :-p

I have a request if I may ... and it's related to AxCrusik's template request.

This template does almost everything I want it too, and I agree it would be a very useful inclusion in future releases of this s/ware.

However, I would love to see a slight change (if it is possible), and it's a little tricky but I will try and explain.

I would like to see this template combined with the 3-part grid template. The trigger square in the middle would be divided into two so that the right half causes the dragged window to be placed in boxes 2,3,5,6 and 7 and the middle zone so that you end up with 3 zones down the left and one large one on the right. Similarly, dragging to the left half of the middle square would cause the dragged window to be displayed on the left of the screen in zones 1,4,5,7 and 8 and the middle zone so that you see one large window on the left and three down the right side.

Ideally, in each scenario I would have only two zones on either the left or the right rather than three (as with the 3-part grid) but I am not sure if this is possible?

I tried using just the AxCrusik and 3-part grid templates and cycling through using the right mouse click but when I came to order the grids, the AxCrusik one did not show when cycling. In any case, I would prefer to have the two grids combined in one if at all possible (and make use of that space in the middle of the screen at the same time).

Again, a fantastic piece of software. A template such as the above would make it JUST what I am after!

Many thanks jgpaiva, and to AxCrusik for the template design!


Title: Re: IDEA: drag window to edge automatically resizes it
Post by: spyda on October 27, 2006, 05:41 AM
This little 'challenge' is of course open to anybody ;-)
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: jgpaiva on October 27, 2006, 11:01 AM
:) spyda
Thank you for your kind words. It makes me very happy when i find someone that likes my software!
Unfortunatelly, i can't help you right now with making a new grid. I'm pretty busy with school and at possibly i won't be able to update anything untill the end of the next week.
You could try to learn how to do them (there's a how-to somewhere on this thread, a few pages ago, and there are a bunch of custom grids made already), or if you don't get any answers from anyone, remember me during the next week ;)
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: nudone on October 28, 2006, 06:34 AM
i've just had an idea that i think is gridmove related. it could be a new app but i think it could be a useful feature for gridmove - maybe the next step. see what you think, jgpaiva...

rather than moving the windows so that they 'snap' into predefined grids by first moving them to trigger 'zones' how about this - as an EXTRA feature:

1. you have a few program windows open - currently visible on your desktop. some larger than others, the user has just moved them around a bit so that they can see enough of the contents of each window as they need to.

2. the user then hits a hotkey combination - or selects from a menu - or maybe uses some kind of trigger zone to drag a title bar into.

3. the program windows that are currently visible then automatically resize themselves so that they try to maximise their area without overlapping another program window. each window tries to maintain the same kind of percentage/ratio of screen area that they had, whilst going through the the auto resize process.

so. the idea is: you set your windows out in a quick 'rough' layout with gaps in between them (so you can see the desktop through the gaps), then you hit the hotkey (or whatever) and the windows automatically resize themselves so that they try to close the gaps between each other - hiding the desktop below.

i hope you like the idea, i have no idea if it would be simple or a nightmare to implement. it appeals to me because if it worked well it would actually remove the need to have predefined grids (though these would still be useful). the grid would, in effect, be created on the fly to accommodate the current program windows that were open.

if possible then overlapping windows would also be capable of being 'intelligently' resized and moved. you could (hopefully) just open a could of windows move one the the left and one to the right of the screen - hit the hotkey and the two windows would stay on their respective sides of the screen but maximise their area.

i know that windows operating systems will already tile horizontally and vertically any windows that are visible but it won't try to lay windows out in a patchwork grid like display - it can only tile across or down.

any thoughts?
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: bugmenot on November 15, 2006, 09:24 PM
I am not able to get GridMove to work! The first time I run it, the program freezes after I click "OK" on the info box about tooltips. The .ini file is created and so is an empty plugins directory. When I run the script after windows kills it, I get the GridMove tray icon. However it is not clickable and none of the functions of GridMove work. Same thing happens after deleting the newly created files.

I am running the latest version of GridMove on Windows XP. I also have the latest version of AutoHotkey. I'd love to use GridMove if I could!
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: ejunker on November 17, 2006, 02:40 PM
This is a great app! I've been looking for something like this ever since I got my new 19" widescreen LCD.

I can't seem to get GridMove to work with PuTTY SSH windows. They get moved but not resized. Does anybody else have this problem with PuTTY windows? I'm stuck using Acer GridVista until I can get GridMove to work with PuTTY windows.
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: jgpaiva on November 20, 2006, 04:54 AM
I am not able to get GridMove to work! The first time I run it, the program freezes after I click "OK" on the info box about tooltips. The .ini file is created and so is an empty plugins directory. When I run the script after windows kills it, I get the GridMove tray icon. However it is not clickable and none of the functions of GridMove work. Same thing happens after deleting the newly created files.

I am running the latest version of GridMove on Windows XP. I also have the latest version of AutoHotkey. I'd love to use GridMove if I could!

That's very weird. Never happened to me. Maybe the best thing to do is delete gridmove and it's folder, and try the last release which is available at this post (https://www.donationcoder.com/forum/index.php?topic=3824.msg40270#msg40270).
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: jgpaiva on November 20, 2006, 04:58 AM
I can't seem to get GridMove to work with PuTTY SSH windows. They get moved but not resized. Does anybody else have this problem with PuTTY windows? I'm stuck using Acer GridVista until I can get GridMove to work with PuTTY windows.
I can confirm what you mentioned. GridMove can't move putty windows. I'm sorry, but it appears that there's no way to do this. You see, this must be a problem with the way that putty creates its windows, and makes ahk (the scripting language in which gridmove is coded) unnable to resize them.  It's a weird behaviour, and i can see your problem, when i'm using linux, i always miss GridMove to resize the console windows.
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: bugmenot on November 30, 2006, 12:02 PM
I am not able to get GridMove to work! The first time I run it, the program freezes after I click "OK" on the info box about tooltips. The .ini file is created and so is an empty plugins directory. When I run the script after windows kills it, I get the GridMove tray icon. However it is not clickable and none of the functions of GridMove work. Same thing happens after deleting the newly created files.

I am running the latest version of GridMove on Windows XP. I also have the latest version of AutoHotkey. I'd love to use GridMove if I could!

That's very weird. Never happened to me. Maybe the best thing to do is delete gridmove and it's folder, and try the last release which is available at this post (https://www.donationcoder.com/forum/index.php?topic=3824.msg40270#msg40270).

It didn't work. What other information could I give you? I don't think I've had a problem with any other AHK scripts. Darn :( I'm really looking forward to using this!
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: jgpaiva on November 30, 2006, 08:09 PM
It didn't work. What other information could I give you? I don't think I've had a problem with any other AHK scripts. Darn :( I'm really looking forward to using this!
That doesn't make any sense.. :(
Tell me something: the program only freezes when after you click OK on the first box? Can you close the about box before clicking OK?

Maybe it's related to the helper function. To get rid of it, please put the file i attached to this post in gridmove's folder before you start it. (notice that this has my configurations and not the standard ones, you might not like them ;) ).
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: bugmenot on December 05, 2006, 10:40 AM
That doesn't make any sense.. :(
Tell me something: the program only freezes when after you click OK on the first box? Can you close the about box before clicking OK?

Maybe it's related to the helper function. To get rid of it, please put the file i attached to this post in gridmove's folder before you start it. (notice that this has my configurations and not the standard ones, you might not like them ;) ).

Yes, on the initial run, the program only freezes when I click OK on the first box (about the tooltips). I am able to switch to the window under it and do stuff (including close that window), but as soon as I click OK on the info box on tooltips, the program freezes. On subsequent runs, even after replacing the config file, the program does not function. Also, the tray icon does not react to clicks (right, left).

Deleting the ini file restarts the whole process.

 :-[ On a side note, I hope I'm not making your project an annoyance rather than something fun.
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: Deozaan on December 11, 2006, 11:55 AM
I am not able to get GridMove to work! The first time I run it, the program freezes after I click "OK" on the info box about tooltips. The .ini file is created and so is an empty plugins directory. When I run the script after windows kills it, I get the GridMove tray icon. However it is not clickable and none of the functions of GridMove work. Same thing happens after deleting the newly created files.

I am running the latest version of GridMove on Windows XP. I also have the latest version of AutoHotkey. I'd love to use GridMove if I could!

This sounds like the same problem I've had with Skrommel's TakeAbreak - Forum Topic TakeABreak should be named "j00 Got Pwned!" (https://www.donationcoder.com/forum/index.php?topic=6421.0)
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: jgpaiva on December 11, 2006, 01:16 PM
That's a very good point, Deozaan...
Would it be something with AHK?
Maybe i should investigate this further.. thanks for the tip ;)
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: dot1910 on December 30, 2006, 10:09 AM
I am not able to get GridMove to work! The first time I run it, the program freezes after I click "OK" on the info box about tooltips. The .ini file is created and so is an empty plugins directory. When I run the script after windows kills it, I get the GridMove tray icon. However it is not clickable and none of the functions of GridMove work. Same thing happens after deleting the newly created files.

I am running the latest version of GridMove on Windows XP. I also have the
I was having the same problem before I check the "Turn off advanced text services for this program"[right click the GridMove.exe and goto Compatibility tab]
Now I am using GridMove and like it a lot.  :-*

Thank you jgpaiva.  :Thmbsup:
HIH! bugmenot  ;D
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: Mandork on January 02, 2007, 06:07 PM
>>I am not able to get GridMove to work! The first time I run it, the program freezes after I click "OK" on the info box about tooltips. The .ini file is created and so is an empty plugins directory. When I run the script after windows kills it, I get the GridMove tray icon. However it is not clickable and none of the functions of GridMove work. Same thing happens after deleting the newly created files.

>>I was having the same problem before I check the "Turn off advanced text services for this program"[right click the GridMove.exe and goto Compatibility tab]

Just wanted to say that I was having the same problem, and the above solution also worked for me.  I just found this collection of things today via Lifehacker, and it's pretty cool stuff!
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: toddm on January 06, 2007, 03:35 PM
I've got a suggestion that would add more functionality to GridMove without changing the nice, clean interface.

It would be nice if GridMove could remember what windows have been snapped to a specific grid section and if the resolution is changed the windows are realigned automatically.  This would be useful when using remote desktop from computers having various resolutions.  Ideally it would remember the grid a window has been assigned to in addition to the section.

I frequently remote desktop from my laptop to my desktop and because the resolution on the laptop is smaller my window size and location changes.  It's an annoyance I think GridMove could solve with a little work.

Thanks.
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: jgpaiva on January 11, 2007, 05:20 PM
Guess what?
GridMove was updated.
It was essentially a bug fix over the version posted here:
So... Go download it! http://jgpaiva.dcmembers.com/gridmove.html
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: jgpaiva on January 11, 2007, 05:24 PM
I'm really scared about this problem with having to select the "Turn off advanced text services for this program". But there's no mention at the forum of autohotkeys about that. I hope it gets fixed, tough.

toddm: i'm sorry, i'm not sure about what you mean. Do you have GridMove on both computers? or having it on the host computer is enough? I'm not sure how it could detect the resolution you have when you're remote desktoping
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: toddm on January 11, 2007, 08:18 PM
jgpaiva, GridMove would only need to be on the host computer and I don't think it would need to know anything about the remote computer.  A simpler example is just changing resolution on the computer.  It would be nice if all windows that had been snapped to a grid are automatically snapped to the resized grid.

Does that make more sense?
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: jgpaiva on January 12, 2007, 08:48 AM
toddm: I see what you mean. GridMove really doesn't behave very well on resolution changes. Maybe i should have it monitor if the resolution has changed, in order to avoid that kind of problems.
For now, the best solution for you is, when you use remote desktop, to press Win+g followed by 'r'. That'll reload GridMove and it'll re-read the size of the monitor.
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: toddm on January 13, 2007, 08:53 PM
Thanks for the tip on the keyboard shortcuts.
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: singx7 on January 16, 2007, 08:56 AM
Its a great software!

I like the 3-part grid. But can you please make another 3-part grid for me?
The region size (1, 2, 3) is just same as the original 3-part grid, but the location is moved as show in "grid_1.JPG". And "grid_2.JPG" shows that the region 2 and 3 combined together. Can these work in one ".grid" file?
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: jgpaiva on January 16, 2007, 09:14 AM
singx7:
I attached the grid you asked to this post. It's exactly like 3-part grid but reversed.
You can just put it in your /grids folder and load it through the templates menu on the tray icon.
I didn't understand the second part of your request, though.. Would you like to have another grid like that "grid2" you posted?

[edit]There was an error in the grid. Now fixed[/edit]
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: singx7 on January 16, 2007, 07:19 PM
singx7:
I attached the grid you asked to this post. It's exactly like 3-part grid but reversed.
You can just put it in your /grids folder and load it through the templates menu on the tray icon.
I didn't understand the second part of your request, though.. Would you like to have another grid like that "grid2" you posted?

Thanks for your works!
But when I try the 3-Part Reverse, it seems not work as I thought. The "3" Region's size is not same as the original 3-Part grid. I have attached the captured screen for your reference.

I have attached another "grid_2.JPG" for my explanation. The window size for Region 1-3 is just same as the original 3-Part grid. But When the mouse go to Region 4, the window size will be the total of Region 2 and 3.
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: dziacial on January 16, 2007, 07:37 PM
Is it possible to place axcrusik_s_grid into "grid order"?
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: jgpaiva on January 17, 2007, 06:44 AM
Attached to this post is the grid you asked for, singx7. I also fixed the 3-part reversed grid, it had an error. Thanks for noticing it ;)

dziacial: Yes, as long as you have placed that grid in the /grids folder. An example of how to configure it is:
Right-click the tray icon,and select options. Then, select "Set grid order".
A new dialog comes up. Just add the following to the text in it:
grids/axcrusik_s_grid.grid

[edit] here's the grid [/edit]
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: jgpaiva on January 17, 2007, 09:21 AM
According to this post (https://www.donationcoder.com/forum/index.php?topic=7055.msg49401#msg49401) in another thread, i ask the people who use gridmove:
How would you like to be able to create a list of windows for each grid element on the grid you use and have an hotkey that would automatically arrange the existing windows in the current grid, based on the information on that list?
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: toddm on January 17, 2007, 08:39 PM
I use gridmove mostly to tile Exceed command prompt windows so it would need to work with specific windows in my case, not just a per program setting.  Of course gridmove can't know where to put each window unless I direct it.
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: tomos on January 18, 2007, 03:50 AM
Attached to this post is the grid you asked for, singx7. I also fixed the 3-part reversed grid, it had an error. Thanks for noticing it ;)

hi jgpaiva,
dont think I've posted here before - it's a wonderful thing is gridmove !!
I actually dont use it that much due to nature of my work, but when I do, boy do I appreciate it (should go donate then  :) )

Anyways, the above grid doesnt seem to be attatched to post as you say - also your whatchamacallit - signature - the image link is broken (from my perspective at any rate!)
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: jgpaiva on January 18, 2007, 03:56 AM
Anyways, the above grid doesnt seem to be attatched to post as you say - also your whatchamacallit - signature - the image link is broken (from my perspective at any rate!)
Oops... I must have been sleeping, that day. It's fixed, now attached to the post.
Oh, and the signature... Apparently there must be some problem with allen's imagiine, i've contacted him to see what's up.
Thanks for the heads up ;)
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: cnewtonne on January 18, 2007, 09:23 AM
I came across this little app as I was browsing downloads.com. As simple as it is, it is a great and smart tool. Just wanted to thank you for this work.
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: makron on January 24, 2007, 02:34 PM
I found about this application on lifehacker.com, and i bookmarked it cause I was thinking to replace my old 17"CRT with a 22"LCD....now that I did, I already installed gridmove in the startup folder and its a joy to use it.... I would like to know if there are any plans to update the Grid Creator applications, of if somebody could put up a little tutorial....
10x
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: jgpaiva on January 24, 2007, 02:59 PM
I'm glad you like it!!
Quoting mouser, 'it appears that gridmove is creating quite a fanbase'.
Fantastic! :D

I would like to know if there are any plans to update the Grid Creator applications, of if somebody could put up a little tutorial....
Yeah, you're right, the gridcreator totaly sucks :(
The thing is: i'm not exactly sure how to improve it.
So, on the next update, i'll include a bunch of new grids, and i think you're right, i'll make a decent tutorial on how to create grids!
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: makron on January 26, 2007, 07:34 PM
well..i do have an idea about how Grid Creator could work (improve)....
 the user could just open his favorite applications, and arrange them as he would like on the desktop... and then when u ran Grid Creator, it could automatically create the grid that the open application are creating. For example... I need on my screen opera, a chat windows, and 2 web cam windows.....i just arrange them the way i would like the grid to be created and I just run grid creator and I'm done.
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: john_markman@johnmarkman. on January 29, 2007, 06:58 PM
Wow,

One of the unexpected but most useful things for gridmove is getting stupid windows that are lost (open offscreen and unable to get to) back!  Click on the taskbar icon for the offending window.  do the windows G thing, press M.  And there is that stupid hidden window!!!!


Do I love gridmove.  It has made my life so much easier.  And being the forever greedy lazy lad who wants more, here are my feature requests.

I. A few more command line options like the 0 and M
-- T or V this does the maximize vertical and leaves width as it was.
-- W or H this does the maximize horizontal and leaves height as it was.

II. Make the above case sensitive and able to see if there are multiple monitors.  So if I have 2 monitors next to each other lower case w = max horz on current monitor. Upper case W = max horz on both monitors.  Same could be done for folks with monitors above and below each other for the t / T

Thanks for the most useful utility I have found!!
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: nudone on February 01, 2007, 03:27 AM
i'll confess, i still haven't got into the habit of using gridmove - stupid, huh - so i won't feel bad if you tell me to get lost  :D

anyway, here's yet another suggestion:

again, maybe this is something gridmove could do or maybe it's something for a new util entirely.

okay. let's go...

i'd like to move the windows around BUT i don't want them to snap completely into a specific grid (blasphemy, i know).

instead. i'd like the edges of my monitor screen to act as the boundaries for all windows that are in view. in other words, i can't move a window off screen.

nothing unusual so far. right. okay, instead of the window moving off screen in the normal manner when it is dragged too far near the edge of the monitor, i'd like the window to resize itself so that it decrease in width or height in the direction the window is moving.

as an example:
(this idea requires a few extra functions for it to work.)

firstly, you have the ability to move windows around on screen by clicking anywhere within the window, holding your mouse down and holding a key down at the same time (eg. ctrl key). or, you hold left and right mouse buttons down at the same time. (this kind of feature has been used with other utils already.)

when moving the window around using the above technique the window goes into 'screen edge boundary' mode. this prevents the window from moving off screen. instead, the window will shrink in size once it hits the edge of the screen - as you drag the window to the edge of the screen the window shrinks more and more AND, i guess, if you don't release the mouse button - if you start dragging the window back away from the edge of the screen, the window will start to grow in size.

if this is possible, it seems to me, that this would be like creating 'grids' on the fly. no window moves off screen as it snaps to the edges of the monitor - and the dragging process creates the newly sized window (grid).

i hope that made sense.
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: jgpaiva on February 02, 2007, 07:05 PM
Sorry for the late responses, but i was on exams until today. I'm now on vacations, which means i finally have free time :D

makron: i think your idea for gridcreator is good. Although it creates just simple grids, it's way easier to use. I think i'll do just that.

john_markman: I think that your idea is good, adding commands for vertical maximize and horizontal maximize makes sense to me. I'll do that.
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: jgpaiva on February 02, 2007, 07:06 PM
nudone: you always manage to find the wildest ideas :P
I also like that one, and if ahk can be fast enough, i'll do it but as a different coding snack. Sounds like a fun idea! :D
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: nudone on February 03, 2007, 01:42 AM
excellent. i'm glad you are prepared to have a crack at creating yet another window moving program, jgpaiva.

(i'm also using gridmove now, with just a slightly modified 2 part vertical edge grid. i think i had made things too complicated for myself before by creating ridiculously complex grids. simple is definitely better.)
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: yqbd on February 05, 2007, 02:11 AM
Hello!


Is there a way to use middle click just on title bars or borders and not anywhere in the window? I use the middle mouse button in web browsers to scroll sometimes and GridMove is taking over.


I don't see the ""browse" option on the templates menu." in GridMove V1.19.26.


I can't cycle back to axcrusik_s_grid.grid. If I cycle out of axcrusik_s_grid.grid, I have to recheck axcrusik_s_grid.grid in Templates. Set Grid Order doesn't help with it.


Is there a way to cancel drop zone mode without the escape key? Maybe some way to use the right button to cancel?


I doubleclick a title bar to maximize a window. Can we change MButton Drag to MButton Doubleclick, so drop zone mode will start after a double middle click? Then drop a window using left click or middle click?


Thanks!
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: yqbd on February 05, 2007, 02:23 AM
I can't cycle back to axcrusik_s_grid.grid. If I cycle out of axcrusik_s_grid.grid, I have to recheck axcrusik_s_grid.grid in Templates. Set Grid Order doesn't help with it.


Is there a way to cancel drop zone mode without the escape key? Maybe some way to use the right button to cancel?

,Grids/axcrusik_s_grid.grid, in Set Grid Order worked and moving the mouse to the center box of axcrusik_s_grid.grid works like cancelling.
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: jgpaiva on February 05, 2007, 03:44 AM
Is there a way to use middle click just on title bars or borders and not anywhere in the window? I use the middle mouse button in web browsers to scroll sometimes and GridMove is taking over.
Yes, that's planned for the next version, it has already been requested ;)

I don't see the ""browse" option on the templates menu." in GridMove V1.19.26.
It's not there anymore, but don't worry, you can just put the grids in the /grids folder and they will be loaded in that menu.

Is there a way to cancel drop zone mode without the escape key? Maybe some way to use the right button to cancel?
Currently, the right-button cycles to the next grid, thus there's no way to acomplish that. As you mentioned, though, you can just drop the window in an area where there's no grid. Almost all grids have such areas, usually on the taskbar.

I doubleclick a title bar to maximize a window. Can we change MButton Drag to MButton Doubleclick, so drop zone mode will start after a double middle click? Then drop a window using left click or middle click?
I think that would be too hard to use. I'll include the middle button on taskbar, and it should solve this problem ;)

Thanks!
You're welcome ;)
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: oneword on February 07, 2007, 10:27 AM
i have a 24" widescreen dell.. for some reason, gridmove does not work. i tried it on my laptop too.dint work :(
am i missing something?
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: jgpaiva on February 07, 2007, 10:37 AM
:( Why do you say it doesn't work, oneword?
(if you like, you can also contact me by pm or e-mail, just click the icons below my avatar)
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: oneword on February 07, 2007, 11:17 AM
I installed it, ran it, it opened the demo about screen too.. but when i dragged the window to the edges or any where on the screen nothing happens, i tried changing all the screen templates, nothing :(.

I finally installed gridvista, it works allright, but does not allow me to make custome templates(zones) or sizes.

Title: Re: IDEA: drag window to edge automatically resizes it
Post by: nudone on February 07, 2007, 12:39 PM
i've a 24" monitor and gridmove works fine - so it's not the size of the monitor that is the problem. might be that something else you've got running is conflicting with it?
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: jgpaiva on February 07, 2007, 03:12 PM
i've a 24" monitor and gridmove works fine - so it's not the size of the monitor that is the problem. might be that something else you've got running is conflicting with it?
:D I solved it with oneword through pm, not to flood this thread. It was just a mis-interpretation of how the edge drag method works.
Yeah, i know i suck at describing stuff ;)
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: Richard S on February 11, 2007, 09:00 PM
Forgive the simplest of questions, but what program do you use to create a grid template?  I tried using Microsoft Word, but all I can do there is save it as a text file, not one that GridMove will recognize as a template.  Is there some text editor that will save what I create with the correct extension?  Thanks.
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: nudone on February 12, 2007, 02:36 AM
if you use a simple text editor like 'notepad' you can create your grid - the important thing to do is when saving the file put the name in quotation marks and include the .grid extension.

so if i had just made a grid and was going to save it with the name test01 i'd select 'save as...' from the file menu, then in the 'file name' field i'd write this exactly:

"test01.grid"

and then hit save.

if you don't use the " " quotation marks you'll not apply the .grid extension an you'll end up with a file called 'test01.grid.txt'
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: Richard S on February 12, 2007, 09:37 AM
Many thanks.
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: Richard S on February 12, 2007, 10:19 AM
Another question, if you all don't mind.  I tried using RunDemo.grid.  Is there any way to get out of that template what the pixel co-ordinates of the saved former window position were?

I ask because I very regularly use KeyText's mouse-manipulation functionality to copy, in automated, highly-repetetive fashion, various data out of a standardized Adobe Acrobat page (ie the various bits of data are in standardized positions on the page).  For this automated copying (and pasting in another program, which then manipulates the data) of the various data in the Adobe page to work, the Adobe window has to be of the exact same size and in the exact same position on my screen each time I do this.

If I could use RunDemo.grid to move my precisely-positioned Adobe window to any other location and could then somehow extract out of RunDemo.grid what the pixel coordinates of the Adobe window were before it was moved, I could create a custom GridMove template that incorporates those pixel co-ordinates so that I could thereafter always reliably snap my Adobe window to the necessary position.

So, can I somehow get RunDemo.grid to declare the co-ordinates of the pre-move window position?

An odd request, but many thanks if anyone has ideas.
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: nudone on February 12, 2007, 12:43 PM
sorry, i can't answer that one. that's definitely one for jgpaiva.
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: spyda on February 13, 2007, 06:33 AM
Still using this great app and still loving it!

jgpaiva - as you have confesssed to being on vacation now, may I refer you to an earlier post I made HERE (https://www.donationcoder.com/forum/index.php?topic=3824.msg41925#msg41925) ?

I have tried to have a play but was unsuccessful. Any chance you could help me out with creating this grid?

It does of course mean the 'cancellation window' is lost but I am happy to press Esc. to cancel.

Many thanks, keep it up!
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: jgpaiva on February 14, 2007, 02:21 PM
Richard S: sorry for the late response, but i wasn't at home and didn't have web connection.
You can have access to the value saved by that run grid by opening the "windowpositions.exe.ini" under the \plugins directory. That ini file has all the information stored through that plugin. Here's an example:
[Vim]
WindowLeft=0
WindowTop=0
WindowWidth=640
WindowHeight=464
[mIRC]
WindowLeft=853
WindowTop=464
WindowWidth=426
WindowHeight=309
This has the values for VIM and mIRC windows.
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: jgpaiva on February 14, 2007, 02:35 PM
spyda: i think i can do that. Just tell me: you mean having a grid just like AxCrusik's grid, but with the middle square working just like the vertical-2-part?
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: Richard S on February 14, 2007, 03:13 PM
Sorry for butting in here.

I use a very wide monitor, and use a custom grid: three top-to-bottom windows side-by-side.  Suppose I have windows in the left (grid-number 1) and middle (grid-number 2) positions, but none in the right (grid-number 3) position (so on the right-hand side of the monitor I'm just looking at the Windows desktop).

If I try to snap the window in position 1 all the way across the screen to position 3 by holding down my left mouse button on the left side of the title bar of the window in position 1 and dragging the window all the way across to position 3, the mouse seems to throw the window that was in position 1 back into position 1, and instead pick up the window in position 2 that I'm merely crossing over and drop that latter window into position 3, leaving position 2 now window-less (ie it's now in the middle of the monitor, position 2, that I'm looking at the Windows desktop).

In other words, I'm having a lot of trouble successfully dragging a window across another window to a third grid position.

If anybody understood that--any suggestions?

Thanks.
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: jgpaiva on February 14, 2007, 05:55 PM
Richard S: It appears like you've found a bug! Congratulations! :D
I'll contact you in pm ;)
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: spyda on February 15, 2007, 03:05 AM
spyda: i think i can do that. Just tell me: you mean having a grid just like AxCrusik's grid, but with the middle square working just like the vertical-2-part?

Not quite, as regions 8 and 6 of the axcrusik grid will achieve the same effect as the 2 part vertical grid.

I am looking for the middle square to be divided up so that dragging to one side puts the main area across three quarters of the screen, in much the same way as the 3 part grid does. Then the same dragging to the others side of the square, but in reverse. So I guess what I am after is a combination of the axcrusik and the 3 part grids.

Does that make any more sense? is it possible to achieve?

Thanks again.
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: jgpaiva on February 15, 2007, 03:21 AM
How about regions 1,2,3,4,5 and 7? Do you want them to move to the same place they do in axcrusik's grid?
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: spyda on February 15, 2007, 03:59 AM
I think so yes, although it would be nice to have the option to have the horizontal 2-part aspect of it covering three quarters of the screen top and bottom also.

Maybe I am asking too much though ...

Basically, I use only one screen at the moment and these features of the grid would allow me to use it more efficiently.

Have you got any further with the grid designer by the way? Would be great to have a GUI type interface for designing grids!
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: spyda on February 15, 2007, 04:10 AM
Just to add, squares 8 and 6 should keep the same functionality (2 part vertical) as I use this a lot.

And if you fancy the challenge of making it the grid of all grids, I would like to see some way of snapping windows to the corners but in the area occupied by squares 1,2,4 and 3. Ie. NOT a full quarter of the screen, but to the actual size of the squares as shown on screen. The ability to snap to the existing areas should all be retained as part of the grid though.

This is getting complicated, and I have the grid in mind. Does it make any sense to you?

Feel free to give up!

Title: Re: IDEA: drag window to edge automatically resizes it
Post by: Richard S on February 15, 2007, 11:52 AM
jgpaiva: (Re the discovered bug--dragging window across another window to a third position) you've got a great program here.  Extremely useful.  I find multiple monitors to be a pain, especially if they're not the same size.  I much prefer having everything on colossal monitor--which makes your utility a godsend.

Another oddity: after I've snapped a window to a grid position, I have difficulty (perhaps impossibility) snapping another window onto the top of the previously snapped window, i.e., onto the same grid position.  In other words, a snapped window doesn't seem to like having another window snapped onto the top of it.  I seem first to have to change the shape of the first-snapped window so that it is no longer contiguous with the underlying grid position, then I can snap onto the same grid position.

I'm running Vista.

Regards.
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: nudone on February 15, 2007, 02:54 PM
this isn't really of much help but i can snap windows on top of each other - i'm not running vista but i wouldn't have thought that to be the problem.
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: jgpaiva on February 15, 2007, 03:30 PM
this isn't really of much help but i can snap windows on top of each other - i'm not running vista but i wouldn't have thought that to be the problem.
Yeah, I'm also not sure why that'd happen, Richard S.
BTW, was that bug solved through the pm i sent you?
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: Richard S on February 15, 2007, 07:21 PM
jgpaiva: No, the pm you sent me doesn't change either of the two quirks I've described above.

With a little more use under my belt now, maybe I can more precisely describe the quirk in response to which you sent me the pm:

If, when trying to left-button-drag (ie invoking GridMove) a window to an open spot on my monitor (ie where I can theretofore see Windows desktop) in order to snap it to a distant grid position, my dragging mouse crosses a pre-existing window in between, the window I am dragging jumps back to the location from which I moved it, and my GridMoving mouse instead picks up the window I cross and moves that latter window to the empty space on the monitor I'm dragging to.

I seem to encounter this problem whether or not either the window I'm trying to drag or the window I drag my mouse pointer across on the way to my destination, or both, is a previously-snapped-to window or instead a new window that has not yet been snapped to any grid position.

If I can carefully drag the window I'm trying to move so that my mouse pointer itself doesn't cross any other window, I can successfully move the window I'm trying to move to the destination to which I'm trying to move it.  So I either need an open path (ie no windows) to move along, or I need to first either drag intermediate windows out of the way or temporarily Minimize them--ie get them off my screen.

Great product.  Very usable in its current state.

Title: Re: IDEA: drag window to edge automatically resizes it
Post by: jgpaiva on February 20, 2007, 10:47 AM
Sorry for taking so much time, but here's your grid, spyda!
Just put it on \Grids folder, re-run gridmove and select that grid from the templates list.

[edit] Grid modified, added support for multiple monitor [/edit]
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: afm on March 08, 2007, 01:07 AM
I love the way GridMove works. I use my laptop with a 22" monitor. Desktop extended onto the large monitor. Laptop as primary.

I haven't figured out how to get GridMove to work on my second monitor. Is there something I am missing?

Title: Re: IDEA: drag window to edge automatically resizes it
Post by: jgpaiva on March 08, 2007, 03:58 AM
I haven't figured out how to get GridMove to work on my second monitor. Is there something I am missing?
I have the exact same setup and have no problem. I thing what is happening is that you're launching GridMove before having both monitors active. Just relaunch it after both the monitors are on and there should be no problem.
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: afm on March 09, 2007, 10:02 AM
Thanks ... thought I had done that. but guess I didn't  ... works great now !!! :D
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: supersocialist on March 17, 2007, 04:37 PM
This program is brilliant! Any chance we can get different templates on different monitors? My secondary is widescreen and my primary is 4:3! I switch manually when positioning windows at the moment, it's a bit kludgy...
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: jgpaiva on March 17, 2007, 08:41 PM
This program is brilliant! Any chance we can get different templates on different monitors? My secondary is widescreen and my primary is 4:3! I switch manually when positioning windows at the moment, it's a bit kludgy...
-supersocialist (March 17, 2007, 04:37 PM)
Well... Templates can be custom-made, so, yes.
I know the help file isn't much of a "help" and is quite confusing, but it (tries to) explains how to do it.
Or you could just post here which 2 grid you'd like to join and (if it wouldn't take much time), i could do the one you want.
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: tamer1 on March 24, 2007, 07:08 PM
Hi,

This app is great!
I work on a lot of different machines and that's why I use http://www.PortableApps.com. All my favorite programs are on my USB stick.

The problem is that GridMove.exe dumps the 'Grids', 'Images', 'Plugin' and some other files in the root of my removable device drive ansd not in the directory where the exe resides.

Is it somehow possible to change the program so that it tries to read the ini file from the application dir?

Keep up the good work,
Cheers!
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: jgpaiva on March 24, 2007, 09:36 PM
tamer1: actually, all those files are supposed to be created at the directory where the .exe is...
The only explanation would be that it behaves differently on a usb stick, but i find that a bit odd.

[edit] just tested it with my usb stick, and i don't get the behaviour you mentioned.. [/edit]
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: tamer1 on March 25, 2007, 05:31 AM
Okay, it looks like the problem is the PortableAppsMenu program that launches GridMove.exe

When i launch GridMove.exe by double clicking it in my Explorer window it acts normally, but when I launch it using the PortableApps Menu, the working directory (or the last used directory) of GridMove.exe is being set to the last used directory of the PortableApps menu executable.

May more luck on their forum.
Thanks for the quick reply!
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: jgpaiva on March 25, 2007, 10:00 AM
Oh, i see the problem...
GridMove creates the files on the working directory.
Actually, this might not make much sense...
I'm not sure how to change it, though
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: MartinT on April 13, 2007, 02:49 AM
Hello,
Great program, just what I have been looking for a long time!

But.. (there's always one, isn't there... ;))
I do not understand much of the help file regarding custom templates.

I run 3 monitors under a Matrox TripleHead 2Go, which WindowsXP sees as 1 big monitor with a resolution of 3840x1024
So as far as GridMove is concerned, It's just one monitor.
Now I want to divide it into 3 equal parts, al of which are 1280 pixels wide (3 monitors of 1280x1024 makes a total of 3840x1024, so area 1 coincides with the screenarea of monitor 1, area 2 is monitor 2,  and 3 is, you guessed it!;D ; monitor 3)

Now then, what do I use as "commands" in the grid file, cause it seems there are only commands like left/ right and not "center"

Any help is greatly appreciated! (not to mention a custom grid made for this purpose... :D)

Thanks in advance!
Martin

Add:
by studying the other grids I cam up with a solution! (by multiplying the screenwidth with thirds)
So for the interested here is the syntax:
(just put in a notepad file and save it as: "whatever name you want to give it".grid  (yes change the extension from .txt to .grid   and put it in the folder called Grids where you saved the Gridmove program)


[Groups]

NumberOfGroups = 3

[1]

  TriggerTop   = [Monitor1Top]
  TriggerLeft  = [Monitor1Left]
  TriggerBottom= [Monitor1Bottom]
  TriggerRight = [Monitor1Left] + [Monitor1Width] /3
 
  GridTop   = [Monitor1Top]
  GridLeft  = [Monitor1Left]
  GridBottom= [Monitor1Bottom]
  GridRight = [Monitor1Left] + [Monitor1Width] /3
 
[2]

  TriggerTop   = [Monitor1Top]
  TriggerLeft  = [Monitor1Left] + [Monitor1Width] * 0.33333
  TriggerBottom= [Monitor1Bottom]
  TriggerRight = [Monitor1Left] + [Monitor1Width] * 0.66666
 
  GridTop   = [Monitor1Top]
  GridLeft  = [Monitor1Left] + [Monitor1Width] * 0.33333
  GridBottom= [Monitor1Bottom]
  GridRight = [Monitor1Left] + [Monitor1Width] * 0.66666 +2
 
[3]

  TriggerTop   = [Monitor1Top]
  TriggerLeft  = [Monitor1Left] + [Monitor1Width] * 0.66666
  TriggerBottom= [Monitor1Bottom]
  TriggerRight = [Monitor1Left] + [Monitor1Width]
 
  GridTop   = [Monitor1Top]
  GridLeft  = [Monitor1Left] + [Monitor1Width] * 0.66666
  GridBottom= [Monitor1Bottom]
  GridRight = [Monitor1Left] + [Monitor1Width] +1
 
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: jgpaiva on April 13, 2007, 03:38 AM
Martin: Something like the following grid should work:

grid here
[Groups]
 
  NumberOfGroups = 3
 
[1]

  TriggerTop    = [Monitor1Top]
  TriggerLeft   = [Monitor1Left]
  TriggerBottom = [Monitor1Bottom]
  TriggerRight  = [Monitor1Left]+ 1280
  GridTop       = [Monitor1Top]
  GridLeft      = [Monitor1Left]
  GridBottom    = [Monitor1Bottom]
  GridRight     = [Monitor1Left]+ 1280

[2]
 
  TriggerTop    = [Monitor1Top]
  TriggerLeft   = [Monitor1Left] + 1280
  TriggerBottom = [Monitor1Bottom]
  TriggerRight  = [Monitor1Left]+ 2560
  GridTop       = [Monitor1Top]
  GridLeft      = [Monitor1Left] + 1280
  GridBottom    = [Monitor1Bottom]
  GridRight     = [Monitor1Left]+ 2560
 
[3]
 
  TriggerTop    = [Monitor1Top]
  TriggerLeft   = [Monitor1Left] + 2560
  TriggerBottom = [Monitor1Bottom]
  TriggerRight  = [Monitor1Left]+ 3840
  GridTop       = [Monitor1Top]
  GridLeft      = [Monitor1Left] + 2560
  GridBottom    = [Monitor1Bottom]
  GridRight     = [Monitor1Left]+ 3840



I hope it does the trick! ;)
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: MartinT on April 13, 2007, 03:51 AM
Hi JGPAIVA,

Thanks for your efford! Your reply with my edit of my post just crossed eachother, but your solution is just a tad nicer, since the edges are more exact! ( on my file a had to add few units/pixels to align the right grids to the edge of the screen (hence the +2 and +1)

Thanks a million!

regards,
Martin
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: jgpaiva on April 13, 2007, 04:02 AM
You're welcome  :D
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: sandos on April 19, 2007, 07:47 AM
I don't think GridMove supports maximize to a specific monitor yet? This would be very useful to me.

I use GridMove as a "poor mans Nvidia desktop tools" since the Nvidia tools are 100% unstable for me. This means I have to manually resize windows if I want them to span both my monitors. With GridMove I can easily make a grid item that sizes a window so that it fills both monitors, very nice.

I can make two items in the grid that resizes a window to the respective screensizes but "true" maximize removes a bit of the window edge, which I like.
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: CWuestefeld on April 19, 2007, 11:59 AM
The author just linked me here to solve a related problem I've got with my system. I have 2 monitors that are arranged as a single double-wide monitor (because of a deficiency in VMWare). I wanted a way to size windows so they'd still respect the physical monitor boundaries, even though Windows in the VM isn't aware of them.

It turns out that GridMove does a pretty good job of this. I've tweaked the built-in EdgeGrid a bit to work in my case, and I'm uploading it here for all to benefit from.

Changes:
Caveat: For some reason I'm a couple of pixels off on the width (rounding?), but I think it's plenty good enough.
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: tempdonationcoder on April 26, 2007, 05:38 PM
First of all I'd like to thank for the great app. Fantastic work indeed.

I was trying to adding a custom icon for GridMove, however I had difficulties in compiling the source.

I also tried to change it using a AutoHotkey app meant for changing icons in compiled .ahk scripts yet I didn't succeed.

How would you go about with doing this?
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: jgpaiva on April 27, 2007, 04:11 AM
Well... For that, you don't really need to recompile it.
GridMove already supports custom icons. You only have to put your custom icon on the /images folder, with the name 'gridmove.ico'.
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: Coeluh on June 29, 2007, 06:57 AM
Where are the grid  files stored?
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: jgpaiva on June 29, 2007, 08:26 AM
Where are the grid  files stored?
Once you run GridMove for the first time, everything is unpacked to the directory where GridMove is launched. Thus, they should be in a folder called "Grids", located where GridMove's executable is.
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: afm on July 11, 2007, 11:31 AM
I love the program and use it constantly.

Since I began useing Office 2007 with the Microsoft Ribbon, the Ribbon buttons fall within the left 100 pixels of the title so when I click the save button, I pop into a grid.

Is there some way to make the Title Drag a zone rather than starting it at the left margin of the title?

Thanks
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: jgpaiva on July 11, 2007, 11:58 AM
@afm:
You're right, microsoft made things harder for GridMove users (not that i think they're worried about it :P).

I had already seen this happen, but haven't figured out a solution yet.
What do you mean with having it be a zone?
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: afm on July 12, 2007, 10:24 AM
@afm:
You're right, microsoft made things harder for GridMove users (not that i think they're worried about it :P).

I had already seen this happen, but haven't figured out a solution yet.
What do you mean with having it be a zone?

Currently I can set the width of the area (default 100 pixels) starting at the left of the title. If I could set the width to say 200 pixels, but exclude the first 100 pixels that would give me a 100 pixel area to the right of the Microsoft buttons that would work the same as it currently does. (I am not exactly sure what the numbers should be, but that is easy to determine.)

Does that make more sense?
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: kamansan on July 13, 2007, 03:17 PM
Wonderful program that worked fine at work. But on my personal laptop, it crashes, am I the only one it's happening to?

Thank you :)
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: jgpaiva on July 13, 2007, 04:16 PM
Does that make more sense?
It does, and i think i have the way to do it. I'll get back to you later ;)
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: jgpaiva on July 13, 2007, 04:19 PM
Wonderful program that worked fine at work. But on my personal laptop, it crashes, am I the only one it's happening to?
Damn... I can't understand why that happens.
Please try what's mentioned in in this post (https://www.donationcoder.com/forum/index.php?topic=3824.msg47445#msg47445) and report back ;)
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: kamansan on July 13, 2007, 04:26 PM
Thanks, that fixed it! :D

If you need some info for debugging purposes, I'd be glad to help.
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: jgpaiva on July 13, 2007, 07:19 PM
Thanks, that fixed it! :D
Yeah, seems to work every time. I wonder why it does work, though :/
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: bluphenix on July 21, 2007, 09:58 AM
Hi, great program, one of the most uefull pieces of software i've encountered in years!

(ok now that i have your attention, lets go to the problem  ;) )

The problem. Gridmove works correctly only the first time that is isnstalled. After this i get no help file error (the help file is in the directory of gridmove), second (most annoying), most of the templates vanish. All I have left is: 2 part vertical & horizontal, 3 part, 4 part, edge, and dual screen. No others not even the 3part reversed i downloaded here and used the first time i ran the app.

running on Win XP SP2.

Any clues?
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: jgpaiva on July 21, 2007, 11:22 AM
What version do you have? The latest one, with the installer?

I've tested it here and can't reproduce it :(
Have you launched it the same way both times? (i mean launching it from a shortcut or by the executable)
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: bluphenix on July 21, 2007, 11:29 AM
I have the lastest version.

I launch it from the quicklaunch.

I'll try launching it a couple of times off the executable, will report later.

P.S: geez what a quick response  ;D
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: jgpaiva on July 21, 2007, 11:35 AM
Found the problem about the help file missing, it has to do with the working folder. If you launch it with farr, for example, you get that error. It also happens when you launch through a shortcut in which the working folder isn't gridmove's folder.

Now (trying to) fixing it.
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: jgpaiva on July 21, 2007, 11:57 AM
Ok.. This was a serious bug. Thanks a lot.

It involved making a lot of changes, thus, i wouldn't be surprised if i introduced new bugs.. Let's see if anyone can find any.
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: bluphenix on July 21, 2007, 12:05 PM
HEy no problem, it's a good feeling when you can help improve something u use and like.
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: jgpaiva on July 21, 2007, 12:14 PM
And yet another update.
I added the feature you asked for, afm. (sorry for taking so much time!!)

Just download the latest version and run it once. Your ini will be updated, then, edit it (GridMove.ini), and insert a bigger value for "TitleLeft", under "Program Settings". Then, reload GridMove and you're set to go.

I didn't add this as an option as i think it's more of a tweak.
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: biosmonkey on July 25, 2007, 02:51 PM
I just found this program, very nice for my cluttered desktop.  But now I want to make my own grids...

I must be dense, but I don't understand the geometry of the template files.  What is the difference between MonitorxRight and MonitorxWidth, and likewise, the difference between MonitorxBottom and MonitorxHeight?

If I run dual monitors at 1600x1200, I am assuming the following:

[Monitor1Top] = 0
[Monitor1Left] = 0
[Monitor1Bottom] =1200
[Monitor1Right] =1600
[Monitor1Width] =1600
[Monitor1Height] = 1200

and the same for Monitor 2.  Is this correct?

I run the second display as an extension of the desktop.  Is there ever a situation where Monitor1 represents more than one physical monitor, or is it ALWAYS the primary display?  Same question for the dimensions...is there ever a situation where Monitor1 width would span more than the resolution of the first physical display?
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: jgpaiva on July 25, 2007, 03:10 PM
The reason for existance of those variables is that those numbers are variable from computer to computer (depending on the resolution), and variable depending on your monitor setup.

Monitor1, is always the primary monitor. Thus, its Top and Left are always zero.Its Right and Bottom are always equal to Left+Width and Top+Height, respectivelly.

BUT, on monitor 2, things don't work like that. That's because Monitor2 is placed on a relative position to Monitor1.
In your case, with 2 monitors, if you have Monitor2 on the right, the Left will be 1601, or.. Monitor1Top + Monitor1Width + 1. The Top will be the same as Monitor1, 0.
If you have it on the left, its left would be -1601, because it'd be Monitor1Top - Monitor1Width -1. The Top would remain the same.

You can now imagine how things can get messy if you'd have 2 monitors with different resolutions, and not horizontally aligned (like i do ;) ).

The idea behind having grids defined like this is that you don't have to do this math, GridMove does it for you. Also, if you use those variables, you can share your grids with others, because it isn't hardcoded for your resolution.

PS: to better understand what i mean, please try doing the following procedure:
Go to "Display Properties" -> Settings tab, then, just click and drag one of the monitors. That allows you to get them on the left, on the right, on top, bottom or even "southwest", "southeast", etc
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: biosmonkey on July 26, 2007, 02:13 PM
OK thanks.  I sort of figured things out after tinkering with a couple of new grids.  So it would seem that any formula involving width or height should always have the left and top variables in the formula to establish a baseline offset?

I have more questions:

1) I am having trouble with template cycling.  I created two templates, and placed them in the cycle order, but when I right click to cycle to the next one nothing happens.  The grid goes away, and it seems like gridmove deactivates.   If I then go into the template list, nothing is checked (which explains why nothing happens). 

I assumed this feature would cycle between all listed templates with each right click (and roll around). Note that both templates work if checked individually.

2) The help for that dialog (template cycling) refers to a specific list of templates that are available.  Does this mean only these can be cycled?

3) Why do the items in the list have a comma before and after the list?

Title: Re: IDEA: drag window to edge automatically resizes it
Post by: jgpaiva on July 26, 2007, 02:27 PM
OK thanks.  I sort of figured things out after tinkering with a couple of new grids.  So it would seem that any formula involving width or height should always have the left and top variables in the formula to establish a baseline offset?
Yep, that's exactly it.

1) I am having trouble with template cycling.  I created two templates, and placed them in the cycle order, but when I right click to cycle to the next one nothing happens.  The grid goes away, and it seems like gridmove deactivates.   If I then go into the template list, nothing is checked (which explains why nothing happens). 

I assumed this feature would cycle between all listed templates with each right click (and roll around). Note that both templates work if checked individually.

2) The help for that dialog (template cycling) refers to a specific list of templates that are available.  Does this mean only these can be cycled?
The thing is: there are 2 representations of grids: the initial (which sucks, and is hardcoded in the code and i still wasn't able to remove), and the ones in .grid files. On that dialog's default configuration, there's no example of how to include the former.
You have to do like i have in the folowing screenshot:
[ You are not allowed to view attachments ]

This means: place your custom grid on the Grids folder and then refer to it on that dialog as:
Grids/NAMEOFGRID.grid

3) Why do the items in the list have a comma before and after the list?
Well... That's sort of a workaround to get the thing to work. You don't have to worry about them, though. The first comma and the last don't need to be there. They'll reappear when you get back to that dialog, though. Just don't worry about them, it's an explicit example of how i suck at coding :P
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: ericslaw on August 10, 2007, 11:24 AM
I've just downloaded this wonderful tool: GridMove.
But I use TweakUI and have 'focus follows mouse' or 'realestate driven' window focus.
It seems that GridMove moves the window with last focus before the mouse-up event,
when what I really want is the window that was in focus during the mouse-down event.

Is this an easy fix?
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: jgpaiva on August 10, 2007, 02:07 PM
Sure is, it was supposed to work like that, thanks for remembering me :)

I've just uploaded a new version ;)

[edit] Also, if you have DCupdater installed, GridMove comes with a "dcupdate" file! Just double-click it to check for updates :) [/edit]
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: yktoo on August 17, 2007, 01:20 AM
Hi, GridMove is a very very useful utility and big thanks to the author!

Having used it for a while I have some a few suggestions for it:

Thank you once again!
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: ericslaw on August 17, 2007, 03:47 AM
n to be usable on each monitor without having to repeat it in the config.

-Eric
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: ericslaw on August 17, 2007, 03:49 AM
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: jgpaiva on August 17, 2007, 08:52 AM
Make it possible to have comments in .grid files (some grids may appear somewhat complex without commenting)
A .grid file is a simple ini file, thus, commenting with ';' is allowed. (at least, i think that's the character for comments in ini files.

Option for transparency (in percent) of those solid "target bars" might help in operating dense grids. This way you would see through them while docking a window.
Yes, that was present on earlier GridMove's versions, but i somehow removed it. But no worries, i noticed that last week and already have it working again. Will be on next version.

HTML help (.chm) file would be very helpful and much easier to read. I can make one for you if you decide to include it in the bundle.
Well.. That's not the only thing that needs to be fixed on the help file. It's quite outdated now, and i really really need to remake it (in chm ;) ).

Allow use of a generic MonitorWidth and other variables be used for each monitor, rather than having to replicate/clone Monitor1Width throughout the config.
Initially, gridmove worked like that. The problem was that if there was no distinction, there would be no way to have a different grid on each monitor.
But that's a good point, i can add another variable that would work for all monitors.

  • ... and maybe have an option to showgrid with/without numbers
I guess that makes sense, I'll see what i can do.
Notice that the number are supposed to be used with the winkey+1,winkey+2, etc... And with the Winkey+g shortcut, to move windows to specific grid parts.
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: dzr on August 17, 2007, 04:30 PM
Is there a way to create a Center area?
I did a post search and I see a question without an answer (unless it was worded differently).

Thanks
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: jgpaiva on August 17, 2007, 05:40 PM
Is there a way to create a Center area?
I did a post search and I see a question without an answer (unless it was worded differently).
Oh.. You refer to centering the active window (https://www.donationcoder.com/forum/index.php?topic=9379.0)?
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: dzr on August 18, 2007, 09:59 PM
Thanks - that looks good - but it takes the current dimensions and centers the window.
I was -expecting- specific dimensions in the middle of the window...
Well, I have to use it and think about what I really want, vs what I thought that I wanted...

For reading a single Word document, I - THINK - that I want something that would allow me to have a window with a certain dimension in the center - and then the left and right sides blanked out, as to not have distractions. Yes, that's a specific case where I don't really want a wide monitor. Again, I'm just theorizing what I'm looking for.

Thanks again!
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: jgpaiva on August 19, 2007, 12:04 PM
dzr:
  GridMove has several grid templates. I suppose you must be using the default one.
Just right-click the icon in the tray area (next to the clock), and choose templates -> EdgeGrid. The middle grid centers the current window.

My question is: would you like something similar to that middle grid, but with other dimensions?
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: mouser on August 19, 2007, 12:10 PM
jgp when are we going to see dcupdater support for gridmove!
see this thread (https://www.donationcoder.com/forum/index.php?topic=9607.0) for info on how to easily add a "check for updates" menu item to your tray icon.
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: dzr on August 19, 2007, 01:39 PM
dzr:
  GridMove has several grid templates. I suppose you must be using the default one.
Just right-click the icon in the tray area (next to the clock), and choose templates -> EdgeGrid. The middle grid centers the current window.

My question is: would you like something similar to that middle grid, but with other dimensions?

Thanks.

Yep, that's what I'm looking for. This middle grid, is too wide.
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: jgpaiva on August 19, 2007, 01:49 PM
That template has another interesting feature.
Try dragging any window to the top grid. It'll maximize vertically that window ;)

How wide would you like the grid to be?
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: dzr on August 19, 2007, 06:21 PM
>How wide would you like the grid to be?

Hmmm, not sure of an exact size -- how would I give you a measurement?
Thanks


Title: Re: IDEA: drag window to edge automatically resizes it
Post by: jgpaiva on August 20, 2007, 05:41 AM
I've just completed an update to GridMove. It now supports Mouser's DCupdater (https://www.donationcoder.com/Software/Mouser/Updater/index.html)!! :D
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: jgpaiva on August 20, 2007, 05:46 AM
Hmmm, not sure of an exact size -- how would I give you a measurement?
Well... Tell me something in terms of percentage of your screen. I can tell you that the center part of that grid i mentioned (EdgeGrid) takes 80% of the screen height and 80% of the screen width.

The red grid with the number 5 takes 40% of the screen height and 40% of the screen's width.
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: jgpaiva on August 20, 2007, 09:17 AM
Allow use of a generic MonitorWidth and other variables be used for each monitor, rather than having to replicate/clone Monitor1Width throughout the config.
I have just reviewed this, and noticed that GridMove's code has changed a lot since those times. Currently, it's not possible to make such variables.. Sorry :(

  • ... and maybe have an option to showgrid with/without numbers
Not a problem, please just telm something else: you'd like the letters to not be shown too? (see "maximize", "minimize", etc in the edge grid template)
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: ericslaw on August 20, 2007, 10:08 AM
The reason I was not interested in the numbers was because they looked terrible...  a white outline with red text.
with the most recent upgrade however, they seem to be much more clean...
I'd still remove them via an option, but the text for min/max/ontop should stay (without the leading numbers).
Leading numbers are nice, but I personally would not likely be using the keyboard shortcuts, so they seem distracting.

Meanwhile, the transparent new-window location is a BIG improvement (less distracting than the solid one).

Title: Re: IDEA: drag window to edge automatically resizes it
Post by: jgpaiva on August 20, 2007, 10:24 AM
The reason I was not interested in the numbers was because they looked terrible...  a white outline with red text.
You bet they do. I also don't like those, let's see how it looks without numbers ;)
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: jgpaiva on August 20, 2007, 10:44 AM
Ok, i uploaded a new version with the option to hide the grid numbers :)
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: yktoo on August 23, 2007, 06:12 AM
Ok, i uploaded a new version with the option to hide the grid numbers :)
Hmmm... Now that I tried version 1.19.37, it does handle comments and paint translucent bars (with no transparency option though :) ). Thanks!

But - it doesn't paint grid nor numbers at all - disregarding the options. What am I doing wrong?
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: ericslaw on August 27, 2007, 12:16 PM
Where can we post example grid files?  I found it once on this site, but now I cannot find it again

Title: Re: IDEA: drag window to edge automatically resizes it
Post by: ericslaw on August 27, 2007, 12:27 PM
Found it just after I posted it.... now if only I could explain how I found it :-(
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: dzr on September 02, 2007, 12:10 PM
Thanks - lost track of this. Isn't section 5, the middle section?

Personally, I'd want the entire height, but for the width,  I'd definately want much less than 80%, but somewhat more than the 50% of the 2 part splits.

There's no easy way for us end users to tweak a middle section?

Thanks

Hmmm, not sure of an exact size -- how would I give you a measurement?
Well... Tell me something in terms of percentage of your screen. I can tell you that the center part of that grid i mentioned (EdgeGrid) takes 80% of the screen height and 80% of the screen width.

The red grid with the number 5 takes 40% of the screen height and 40% of the screen's width.
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: jgpaiva on September 06, 2007, 09:50 AM
I've now uploaded a new version that hopefully has better font rendering (thanks lanux!!).

@dzr: i've attached to this post a very simple grid.
Tweaking it is simple, just edit it with notepad and change the numbers (currently on 0.15) to some other value (from 0 to 1). That controls the size of the empty space left on the right and left of the grid. The bigger the number, the bigger the margin.
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: johncck on September 21, 2007, 03:02 AM
Hi jgpaiva, I've been using your GridMove for a while now and really like it a lot.  I saw you have a new version and tried it out but could not figure out how you can change the transparency of the "location preview" boxes?  Help?
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: jgpaiva on September 21, 2007, 08:58 AM
Hi john!
There was no way to configure that transparency in previous versions of GridMove.
I've uploaded a new version, which lets you configure the transparency through a .ini parameter. Just follow the following procedure:
Download and update gridmove (from http://jgpaiva.dcmembers.com/gridmove.html).
Run the gridmove once.
Open gridmove's folder, and edit "gridmove.ini" with notepad.
Change the "transparency" parameter (255 is full opacity, 0 is full transparency).
Save the file and restart gridmove. :)

This new version also includes another parameter that can be changed through that same method: MButtonTimeout, as requested by Mark through e-mail.
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: johncck on September 25, 2007, 10:27 AM
Hi jgpaiva, thanks for replying so promptly!  It's very nice to see a developer keeping up with the feedback from users.  I'm afraid I have not tried what you advised above because I'm having problems using gridmove on a new tablet pc i bought. 

I bought the Fujitsu T2010 tablet pc a few weeks ago and tried to get gridmove working on it to no avail.  After the initial install and on the first run, it hangs on the help screen.  I have to close the process in task manager.  After that, whenever i click on Gridmove from the start menu, i see it's icon in the system tray.  When I hover my mouse pointer over the icon, i see "GridMove V1.19.40".  All SEEMS to be well.  But, when I right click it to set options, nothing happens.  Nothing happens when I left click as well. 

I thought perhaps some other software I'm using could be interfering with gridmove and since I was planning to reformat my hdd, I wanted to test if this was the case.  I reformated my hdd and did a clean install of windows xp tablet pc 2005.  I installed all my drivers but no software.  After I made sure that all my drivers were in place, I installed gridmove.  Same thing happens!  It hangs on the initial help screen and all subsequent attempts to run it give me a system tray icon with nothing else.  Rebooting doesn't help. 

Any ideas?  Do I need to install any .NET packages?  It's working great on my desktop and now I can't use my tablet pc without it!  :D

Update:  I just uninstalled V1.19.40 and installed V1.19.26 that I saved previously.  Same problem!  Hangs on help screen.  After that, only gives me a system tray icon when run...  Help please!   :(
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: jgpaiva on September 25, 2007, 01:19 PM
Hey john!

I can recognize that problem.
Please try the solution mentioned in this post (https://www.donationcoder.com/forum/index.php?topic=3824.msg47788;topicseen#msg47788).
Unfortunatelly, i can't tell what causes this problem, thus i can't really solve it in a better way that ask people to follow that procedure :(
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: painz on October 02, 2007, 03:27 AM
Thanks for nice program, the only thing - i use it on notebook and when i plug external monitor grid doesnt resize itself, is it possible to enable resolution check before displaying or maybe detect changes in screen rez and reload it automatically?

Also here's my grid, functionality - left/right: 1/2 width, corners: 1/4 size, top: keep on top. 1 monitor support.
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: jgpaiva on October 02, 2007, 07:58 AM
Pretty good, painz!
I'll make it dualscreen and post it on the "post your grid here" thread :)

As for the resizing problem, i also have it, as i have a similar config. Currently, the best way to do that is press win+g followed by 'r', and gridmove will be reloaded.

Auto detection is on my todo list, but it probably will take a while :(
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: rawlinpa on October 09, 2007, 04:27 PM
The feature that I would like to see added would be a list of applications that GridMove does not try to resize and move. It would be an Applications Blacklist and could be empty by default.

The reason I think that this would be useful is that I use clicking and dragging the Title Bar to initiate moving the window. However, many windows are small enough (such as a Buddy List), that I accidentally click them in a spot that triggers GridMove. I know that I can hit Escape to stop the resizing and moving process, but I believe it would be nice to specify programs that GridMove will never try to resize and move.

Congrats on this innovative program!
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: jgpaiva on October 09, 2007, 04:44 PM
Hi rawlinpa!
I've been trying to include this in GridMove for a while, but still haven't found the time to do so.
GridMove already includes a blacklist, but it's hardcoded in one variable, and pnly includes a few apps i know that cause trouble.
If you'd like, i could add it to the ini configuration.

What you mentioned about windows being too small and GridMove taking the whole titlebar, that's actually a bug, as there's code to prevent that situation. I'll try to fix it ;)
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: JWeetje on October 27, 2007, 10:29 AM
Best of it's kind !!!
What I would like is that I can use it to set my desktop in such a way that parts (like part of left or right side) is unuasable. Meaning that all windows I use qnd maximize only use a designated area of the desktop. So I always will have my shortcuts on the desktop available, or my shortcuts or anything else on the right side. As default. Set once, and then fixed.
If I am not clear, and that happens according my wife, please ask.
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: tinjaw on October 28, 2007, 05:16 PM
GridMove is always one of the first few applications I install on a new computer. I can't live without it. Give me GridMove or give me death. I've got two new monitor configurations I need to make grids for now. One is my laptop (1280x800) on the right with an external 1280x1024 LCD to its left. And one for my desktop - which currently has a 22" CRT (same as 20" LCD) in between two 19" LCDs. Each of them at 1280x1024. I took a look at Eric Slaw's but it is too busy for me. Does anybody have a good 3 monitor grid?
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: jgpaiva on October 29, 2007, 05:41 AM
JWeetje: GridMove won't replace maximize. But you can use the grid posted here (https://www.donationcoder.com/forum/index.php?topic=3824.msg75288#msg75288) to acomplish something very similar to what you're asking. With this, you drop the windows in the middle of the screen, and they are maximized leaving some space on both sides.

tinjaw: Thanks! :D I'm using the edge grid on my dual-monitor config, i think it's the best one because it incorporates the 4-part grid (for the second monitor's IM programs) and still has a good work area in the middle ;)
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: fbi1970 on November 10, 2007, 05:19 AM
I've to submit a bug. GridMove resizes all windows, even if they was not resizeable.
To repro search for a windows which is no resizeable and try to move it in the grid.

Thanks
Gio
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: jgpaiva on November 10, 2007, 06:31 AM
hi fbi!
Actually, it isn't exactly a "bug", more of a feature. The problem is that then you can't move them to the size they had before, right?
Here's the solution:
Select the "edge grid", and drop the window on the "Last Size". It'll be resized to the size it had before gridmove last resized it ;)
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: fbi1970 on November 12, 2007, 02:25 AM
Mmhhh... I understand... But i'd like that GridMove should not resize them so that the grid does not appear. A lot of times I move dialogs such as search dialogs and they move on the grid.

Just a suggestion for a switch in config file.
Even a greit job.
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: jgpaiva on November 12, 2007, 04:57 AM
Actually.. To be honest, i don't quite know how to retreive the information about the window being resizable or not :(
Maybe someone could give me a hand?
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: fbi1970 on November 12, 2007, 08:17 AM
MMhhh.. You're right :P. It should be done by combining data about visibility of the maximize/minimize box and the border type of the window but I can't help you. I don't know anything about ahk. If I've time I'll read something about it to help you.

See you later
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: TheQwerty on November 12, 2007, 08:31 AM
Actually.. To be honest, i don't quite know how to retreive the information about the window being resizable or not :(
Maybe someone could give me a hand?
You could try basing it on the window's style.
WinGet winStyle, Style, A
if (winStyle & 0x40000) { ;0x40000 = WS_SIZEBOX = WS_THICKFRAME
   ;code to resize
}
I'm not sure if that'll work for all windows or even if you need to take into account the minimize and maximize/restore buttons as well.
Title: IDEA: How GridMove could become compatible with Office 2007
Post by: danadina on December 10, 2007, 05:11 AM
Hey, this is great! I especially like the 'Drag on Window Title' method.  8)  Thank you!

My one problem is that some applications put vital buttons on the left edge of the title bar.  For example, MS-Office 2007, having done away with normal toolbars, puts the most vital toolbar buttons on the left section of the title bar:
 
[ You are not allowed to view attachments ]

I can increase GridMove's title size setting, so that I have an area for GridMove that won't trigger the buttons.  The problem is that I can't click the title-bar buttons without triggering GridMove, and thus instantly moving/resizing my window.

Perhaps the most basic solution is for GridMove to ignore a single-click that is not then accompanied by some minimal drag.

For further flexibility, what about giving an additional setting for "title bar inset size", so that I can inset my GridMove zone by a few hundred pixels, thus also keeping the tooltip text from covering my existing buttons' tooltips/menus?  And for that matter, there could be the setting to inset the zone from the _right_ edge of the title bar, instead, or to make the zone be the _center_ section of the title bar.

It wouldn't even be totally necessary to add an interface for adjusting these settings.  --Something in the INI file with an appropriate comment/hint on its meaning would do.

I think this would make GridMove much more compatible with MS-Office 2007 machines.

Thanks again!

Dan
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: jgpaiva on December 10, 2007, 03:29 PM
Hey dan!

Yep, it's not the first time someone requests something like that ;)

Just check the TitleLeft variable in the ini file. It represents that "title bar inset size" you mentioned!

The other solution you mentioned would be great too, but i just can't do it right now :(
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: ppass on December 10, 2007, 05:20 PM
Hi,

I would like Gridmove to ignore / exclude some applications that I list. For example, I extensively use VBA with small custom UserForms, and when I move them around, they sometimes end-up being increased and moved with Gridmove, which I want to avoid in this case. So for example, I would like to specify to Gridmove not to play with VBA UserForms. In the Windows API this is referred to as lpClassName = "ThunderDFrame" in the FindWindow function.

http://msdn2.microsoft.com/en-us/library/ms633499.aspx


Another question, is there a minimum value for "Set Title Size". My experience is that below 30, I cannot click in the left area of the title bar. Is this specific to my system , (I use Windows XP).
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: Rgb9001 on December 11, 2007, 12:03 AM
Hi everyone,

this is my first post here. I have been looking for a program like gridmove. Let me explain.

Last year AOL released a program called Openride. And I must say that all software released by AOL is trash... except for this one. Truly it is the only aol software I've used and liked. What made it really cool was the interface, a 4 pane design that let you do everything at once. The program itself was a big container that divided screen into 4 quadrants: Email, IM, Web, and Media. When you started the program the browser had most of the view, but all panes were visible. If you clicked on one of the other panes, it would resize and become the largest view, but again, at least a sliver of all panes were visible (There was a maximize button that would bring it to 100% view, when a window was maximized this way the icons of the other quadrants was still available at the top so you could hop between them). There was also a dynamic sizer button, where the vertical and horizontal dividing lines intersected. You could drag this point around and it would automatically resize all the windows based on your input. The video is still up here. http://discover.aol.com/memed/openride/tour/openride_tour.adp (Watch the intro, and the dynasizer chapter) Well, if the software is so great why am I telling you guys? Well, earlier this year, despite a plethora of good reviews, AOL openride was cancelled completely and is now inoperable. The software was replaced with something called AOL Desktop that takes out the automatic view features and brings back a classic AOL interface (codename: "suck"). I think that most AOL Lusers didn't know how to use it and AOL didn't realize what they had so they scrapped it. I think that gridview, or a new program could be written to behave similarly. However instead of hardcoding certain programs into this container app, one could choose whatever program they wanted to put in any quadrant (Maybe I want winamp in the lower right, and outlook in the upper left one day, and the next I need excel and word open side by side). Also maybe have an option of 2 or 3 panes instead of 4, or have an empty pane, etc.

As you can tell I really really liked Openride and hate to see it go, but the interface idea is just too good to forget. It differs a bit from gridmove in that the program I envision is a program that "houses" other programs and dynamically resizes them, but perhaps it would be easy to do, or maybe it is a new program entirely. Gridmove seems to be kind of on the same page as what I had in mind. What do you think? Is this possible? And again, this is my first time here so if I'm not following protocol let me know.

Thanks for your time!

--R
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: ppass on December 11, 2007, 03:28 AM
A small question on the "Fast Move" feature. I have a French external keyboard, so I have to hit SHIFT + number to get the numbers (eg. pressing on the "1" key gives "&" instead).

GridMove has default setting (modifier is # - Win key). When I hit Win+SHIFT+number, it works, but this is not so nice, I just want to hit Win + number. So I try directly using the numeric keypad on the right of my keyboard (I do not have to press SHIFT for this one, pressing "1" gives "1").

But the problem I have is that Win + numeric keypad does not work (GridMove does nothing). Is this a bug?
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: jgpaiva on December 11, 2007, 07:38 AM
Rgb9001: What you're looking for is a bit different from what gridmove does. But i've seen a program that does exactly what you want.. Unfortunatelly, i can't recall its name now and thus am unnable to find it :(

ppass: I see the problem, i have updated a new version of gridmove that supports numpad introduction with the windows key.
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: ppass on December 11, 2007, 02:52 PM
Great! How about the other suggestion (blacklisting some window types like VBA forms from being moved with GridMove)?
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: Rgb9001 on December 11, 2007, 03:33 PM
Rgb9001: What you're looking for is a bit different from what gridmove does. But i've seen a program that does exactly what you want.. Unfortunatelly, i can't recall its name now and thus am unnable to find it :(
If one already exists that would be excellent! Let me know if you think of the name.
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: jgpaiva on December 11, 2007, 03:40 PM
Sorry, i forgot to answer about that.
I've been meaning to add exceptions for quite a while now, but it's always an enormous load of work.
BUT, there is already support for adding exceptions via .ini file, it just wasn't enabled.

Just redownload (and reinstall), and run once. A new ini key will be created: Exceptions.
That key holds the window classes of the windows that should be ignored. (to find those values, you can use for example window spy which is included with the instalation of Autohotkey).


PS: i'm sorry, i forgot to update the executable the last time i posted. This version already includes the change that the previous version was supposed to have
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: ppass on December 11, 2007, 10:22 PM
Thanks, both points work like a charm in the new version.

Concerning the fastmove, may I suggest some improvements:

- instead of using "1", "2", ... keys, make it more intuitive with arrow keys.
Example: # +"up key" would move the window to the closest defined zone "above". For example, assuming that I use the default 2-part grid vertical template with a secondary screen on top of the primary, # +"up key" sends the window from section 1 to section 3.

If you find too difficult to physically locate grid zones relative to one an other, then could you implement a simple zone iteration. Example with window in zone1. # + "->" (right arrow) sends window to zone2 (equivalent to #+2), # + "->" pressed again sends to zone3, pressing # + "->" once more sends to zone4, etc. in a loop.

- add a second  modifyer key to span windows.
Example:  M + "->" key (M is the new modifier) would span the window horizontally.
I recall that you mention somewhere features to expand horizontally / vertically, but I do not know where to find them.

Anyway, thanks for such a nice program. I recall trying UltraMon a long time ago, but I think your program is much more fitted for normal use. The only feature I miss is the small arrow icon that UltraMon added in the title bar of windows. Pressing the "up" arrow would send the window to the above screen, etc.

Title: Re: IDEA: drag window to edge automatically resizes it
Post by: jgpaiva on December 12, 2007, 05:15 AM
Hey ppass.

About the suggestions regarding fastmove:
Currently, none of those are possible, simply because gridmove isn't aware of where the window is. I mean, it only moves the window to a grid, and doesn't keep track of which windows are in which grids. It's not impossible to implement your suggestions, only something i can't do right now.

About having the windows move to the other screen... You can make your own gird, which could have for example in monitor 1, an element that would move the window to monitor 2, and in mornitor 2 would have an element that would move to monitor 1.

ps: I have attached to this post, another version of axcrusik's grid, which allows you to, in conjuntion with being able to move windows with the numpad, move them in a way that makes more sense.
To install it, just add it to the "grids" folder of gridmove, and replace the earlier version.

Another interesting feature is that now you can add a modifier to reach for numbers higher than 10 faster. Check on the ini file, and set the key FastMoveMeta like this:
FastMoveMeta=\
That will allow you to move a window to area 11 by pressing win+\ followed by 1 (instead of 11 like when you press win+g).
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: ppass on December 12, 2007, 08:23 PM
gridmove isn't aware of where the window is. I mean, it only moves the window to a grid, and doesn't keep track of which windows are in which grids.
That is fortunate, and obviously the most efficient way to program this.

It's not impossible to implement your suggestions, only something i can't do right now.

I understand that you can't do right now, maybe personal constraints. Anyway, finding the zone of the window should be quite straightforward. Here is my take on it:

Get the size of the active window (Top, Right, Bottom, Left)

Loop through all zones defined in the grid (start with zone1)

   If (Top == GridTop) and (Right == GridRight) and (Bottom == GridBottom) and (Left == GridLeft) then ZONE_FOUND ! ! ! get out of the loop
 
  else, go to next zone in the grid


Return to  beginning of loop


If you get-out of the loop without finding a zone, then move to zone1, else move the window to the next zone (pressed # + right arrow) or the previous zone (pressed # + left arrow) or the 1st zone (press # + down arrow) or the last zone (pressed # + up arrow).



Title: Re: IDEA: drag window to edge automatically resizes it
Post by: ppass on December 12, 2007, 08:28 PM
One question: is it possible to define one's own constants at the beginning of grid files? This would make grid manipulation more flexible

For example,

[Groups]

  NumberOfGroups = 20
  Top_ratio = 10%

[1]
  ...
  GridTop    = [Monitor1Top]  + Top_ratio * ([Monitor1Bottom]-[Monitor1Top])
...
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: jgpaiva on December 13, 2007, 04:05 AM
About detecting the window zones:
Unfortunatelly, many windows don't actually get the size they are moved to, thus, those would always be detected as not belonging to any zone and would always be moved to the first zone. Still, it should work for a fair amount of windows. I'll see if i can find time to implement this ;) (currently i'm on exams, and time is sparse :( )

About having constants.. Currently, that is something that would involve a big rewrite of the grid file reading, and i think that for the advantage it offers, there probably are more interesting features that should be added.
Maybe you could do it like this: write the file as if you had defined that constant, and use a text editor's replace to replace all of the occuorences with the value you'd like.
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: ppass on December 13, 2007, 07:59 PM
My comment will be "focus on your exams", you can do that later when you have more time.

Unfortunatelly, many windows don't actually get the size they are moved to
Well, I have no clue how you are doing this, but I recently discovered Windows API functions. I played a bit with some of them in VBA, and this quite straight forward. I assume in your case you have to use the GetWindowRect Function
http://msdn2.microsoft.com/en-us/library/ms633519.aspx

where the lpRect structure is something like this

Private Type lpRect
    Left As Long
    Top As Long
    Right As Long
    Bottom As Long
End Type

Anyway, I am sure that you will find a way...

Good luck for your exams!
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: jgpaiva on December 15, 2007, 05:12 PM
Just a little something for those that have an OS that supports better icons (or have a cool launchbar with gridmove in it :P)

I have attached to this post a 128x128 version of gridmove's icon! :D
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: Tyinsar on December 15, 2007, 11:07 PM
jgpaiva, Thanks! (https://www.donationcoder.com/forum/ExternalSmileysThanks/2 Animated Gifs/02thank you.gif)(https://www.donationcoder.com/forum/esmileys/gen3/2Signs/score010.gif) - this program of yours is truly awesome and is the cause for me registering here :beerchug:.

I have attached a grid file for TripleHead2Go users. (I also made and attached another for 2 TH2G in vertical span mode (2 screens high, 3 screens wide) :P)

Both files have intentional blank spots (in case you start dragging a window and change your mind). The TH2G.grid file also has two additional areas defined (in case someone wants more zones) but not active.

EDIT:
1) Unless you are using a TH2G with three monitors you don't need the TH2G.grid file.
2) The TH2Gx2.grid is only for six monitors in a 3w*2h spanned setup (seen as one LARGE monitor)

Edit2: Updated grids in grid thread: --> https://www.donationcoder.com/forum/index.php?topic=9387.0
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: mitzevo on December 16, 2007, 02:46 AM
Can some body please make a Dual-Screen Reverse?

And is it possible to have a Dual-Screen & Dual-Screen Reverse loaded at the same time, that you can easily switch between by moving the mouser to certain zone?

Title: Re: IDEA: drag window to edge automatically resizes it
Post by: jgpaiva on December 16, 2007, 04:21 AM
what do you mean by dual-screen reverse, mitzevo?

Tyinsar: thanks a lot!! these are the kind of posts that keep me going ;)

I just tested your grids, and you must have a giant monitor! Some of the elements are so small in my monitor that when i move stuff there, the windows aren't resized to that size, but get a bit larger :P
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: mitzevo on December 16, 2007, 05:52 AM
there is "3 part grid" and "3 part grid reverse". I'm after a dual screen reverse  :)

Edit: np  :) I'll take a look when I get some time.
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: Tyinsar on December 16, 2007, 02:30 PM
Tyinsar: thanks a lot!! these are the kind of posts that keep me going ;)

I just tested your grids, and you must have a giant monitor! Some of the elements are so small in my monitor that when i move stuff there, the windows aren't resized to that size, but get a bit larger :P
Some day I may even have to get a PayPal account so I can donate here (I'm guessing that might mean even more heh heh)

The TripleHead2Go (link) (http://www.matrox.com/graphics/en/gxm/products/th2go/digital/home.php) allows 3 17" or 19" screens (1280x1024) to work as one monitor (total resolution=3840x1024). I'm using 2 of those in vertical span mode so my total resolution is 3840 x 2048 (6 19" screens).

LOL, I just tried my files on my 22" monitor - I see what you mean about small elements. Anyway, I don't expect many people will want the TH2Gx2.grid I'm using but the TH2G.grid should be great for those using a single TH2G with 3 19" monitors. (Matrox has some nice software for their TH2G but it's just nowhere near as flexible as yours)

@mitzevo: Have you tried creating your own grid? Look at some of the included ones. Make a copy. Modify that. It took me a bit to wrap my head around the idea but it's really easy once you get started.
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: jgpaiva on December 16, 2007, 03:09 PM
3840 x 2048   :huh: :huh:
Now i understand why you find gridmove useful! :P

Pretty cool, Tyinsar!

@mitzevo: like Tyinsar said, it's pretty easy to make your own grid. I can't make the one you asked right now, but i'll give it a try later this week (if i can find the time :( )
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: Tyinsar on December 26, 2007, 10:21 PM
I hope you are having a great Christmas.

I was just looking at your section here and I would like to suggest that your Gridmove page (http://jgpaiva.dcmembers.com/gridmove.html) should also have a link to your section of DC (https://www.donationcoder.com/forum/index.php?board=173.0) or, at the very least, to the grid thread (https://www.donationcoder.com/forum/index.php?topic=9387.0) (instead of only having the "Discuss Now" link that leads here).

GridMove is still The best software I've found for my setup (and for TH2G users) and I've been contemplating contacting Matrox & telling them to buy / bundle this with the TH2G.

Edit: Is there a GridMove grid-making tutorial? If not I'm thinking of making one.
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: jgpaiva on December 27, 2007, 06:27 AM
Hey Tyinsar!
You're right, there should be a link for the grids thread. I'll add one ;)

About the matrox suggestion.. I don't think they'll go for it, but it sure doesn't hurt to try.. Thanks!
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: Armando on December 27, 2007, 10:52 AM
Edit: Is there a GridMove grid-making tutorial? If not I'm thinking of making one.

That would be very cool, Tyinsar!  :)
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: jgpaiva on December 27, 2007, 07:22 PM
Edit: Is there a GridMove grid-making tutorial? If not I'm thinking of making one.
I somehow missed that part..
Nope, there's none. But it sure would be great to have one! (specially since the atempt at a gridmaker i made went very wrong)
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: Tyinsar on December 28, 2007, 01:13 AM
Tutorial started here: https://www.donationcoder.com/forum/index.php?topic=11534.0

Please note that this is just a start but I thought I'd post what I had (so far) to get some feedback from you.
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: jgpaiva on December 28, 2007, 04:09 PM
You could try basing it on the window's style.
WinGet winStyle, Style, A
if (winStyle & 0x40000) { ;0x40000 = WS_SIZEBOX = WS_THICKFRAME
   ;code to resize
}
Looks like that works beautifuly!

I'll add it right away, as a "safe mode" ;)
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: jgpaiva on December 28, 2007, 06:44 PM
Ok, done.. And updated.
I also fixed another bug that could make the left drag method stop working after being used in a window that was one of the exceptions (like winamp). <- this ****** was bugging me for QUITE a while now.. I'm glad it's gone ;)
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: Tyinsar on January 01, 2008, 04:53 AM
GridMove Grid Making Tutorial nearing completion. Feedback welcome. (link) (https://www.donationcoder.com/forum/index.php?topic=11534.msg93091#msg93091)
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: jgpaiva on January 06, 2008, 05:19 PM
Updated GridMove, to see details check out this thread (https://www.donationcoder.com/forum/index.php?topic=11619)
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: jgpaiva on January 06, 2008, 05:34 PM
PS: don't forget that gridmove is DCUpdater (https://www.donationcoder.com/Software/Mouser/Updater/index.html) compatible, it allows you to keep up with these frequent updates much more easily! ;)
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: jgpaiva on January 07, 2008, 08:28 AM
And yet another update. This time, to include auto-reload on resolution / monitor configuration. Notice that moving the windows start bar will also make gridmove reload, because some grids depend on where the bar is and what its size is.
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: jgpaiva on January 07, 2008, 11:39 AM
PS: this last update, also makes gridmove reload when the computer comes back from being locked (with win+L or something like that).

If you find that anoying, please report and i'll add a ini option for disallowing this.
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: painz on January 08, 2008, 08:22 AM
OMG, just yesterday I posted that its almost perfect now, and today actually tried to plug in external monitor - look what happens, grid move instead of reloading just loads as many copies of itself as it could :/ Here's a screenshot.
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: jgpaiva on January 08, 2008, 10:14 AM
Now that's crazy!  :mad:

Ok, i'll kill that option now, and i'll bring it back when i have my second monitor to test.

Thanks for the bug report!
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: painz on January 08, 2008, 10:27 AM
Maybe you could check if its already loaded? Like, you know, "allow only one copy". And then hmm... unload old one(s)?
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: jgpaiva on January 08, 2008, 11:35 AM
Maybe you could check if its already loaded? Like, you know, "allow only one copy". And then hmm... unload old one(s)?
The thing is that it already is doing that, autohotkey as a directive called "singleinstance" that does exactly that.
The problem is that it probably starts reloading in a loop, or something like that. The only way to really know is by testing it, and i currently don't have my second monitor. In a few weeks i should be able to fix it, though.

Anyway, i have disabled that "reload on resolution change" "feature" and have uploaded a new version.
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: jgpaiva on January 08, 2008, 02:44 PM
Sorry, i said i had uploaded a new version but inadvertedly uploaded the same v1.19.49 with the bug. It's fixed now.
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: timcrews on January 09, 2008, 12:00 AM
Hello everyone:

I am a newcomer to GridMove, and I have to say that I am ecstatic that I found it!  It is a perfect, simple, elegant solution to a growing problem.  I have two 24" widescreen monitors, with very specific ideas about how I would like my windows to be arranged, and GridMove solves the problem perfectly.

I will be working on my own Grid, but for now I have a few questions about the existing ones:

When I look at the items available in the Templates menu of the system tray applet, I see twelve templates, several of which appear to be duplicates.

When I look in the Grids directory of the installation directory, I only see six templates.  How do these relate?

Unfortunately, the template that I would really love to start with is the Dual-screen grid, but that's one of them that doesn't appear in the Grids directory.

Assuming that I can obtain the .grid file for the Dual-screen grid, that would lead to my next question:  Is there an automatic way to have the Monitor X grid be a mirror image of Monitor Y's grid?  I like the dual-screen grid pretty well, but I would prefer to have the smaller windows on the outside edges of each screen.  If there is no automatic mirroring support, it's no big deal -- I assume I can just hand-create a two-monitor setup that accomplishes the mirroring.

Thanks again for a great implementation of a great idea.

Tim Crews
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: jgpaiva on January 09, 2008, 05:43 AM
Hi tim!
I'm glad you like gridmove :)

The thing you refer about having too many grids in the "templates" is caused by "historical" reasons. When gridmove started, it didn't have custom grids. Thus, it only had those 6 predifined grids, which are defined in the code itself (with a different syntax than the ones on .grid files). Until i convert all of them to .grid files, i'll have to keep those.

The best way for you to get a grid similar to that one, would be to edit the 3-part grid which is pretty similar (only doesn't have that big vertical element).

About having one screen mirroring the other one.. Currently it's not possible, the best way to do that would be for you to make the first monitor, and then copy and paste all that into a file, then using a text editor, change all the "monitor1" to "monitor2" and incrementing the numbers correctly. That's how i do it :)

(i know, making grid files is really a pain. I've thought about a better syntax, but really couldn't come up with anything as powerful but simpler :( )
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: jschwarz on January 28, 2008, 09:29 AM
Hi,

when I tried GridMove in the past, it didn't properly work with Putty (or vice versa). Now, I found a post in the autohotkey forum with a workaround (http://www.autohotkey.com/forum/topic7935.html):
-----------------------------------------------------------------------------------
OK, I looked at the PuTTY code...
As I expected, it uses complex code to handle the different options and move by steps if needing to resize by text cells.
It uses a notification I didn't knew the existence until now: WM_ENTERSIZEMOVE and its companion WM_EXITSIZEMOVE.
As I understand them, this allows to reduce the repaints or, as here, of resizings (snapping to text cell sizes), when the user drags the borders with the "Display window content while moving them" option.

The workaround is therefore simple:

Code (Copy):
SetTitleMatchMode 2
WM_ENTERSIZEMOVE = 0x231
WM_EXITSIZEMOVE = 0x232

#P::
SendMessage WM_ENTERSIZEMOVE, , , , PuTTY
WinMove PuTTY, , , , 667, 756
SendMessage WM_EXITSIZEMOVE, , , , PuTTY
Return

---------------------------------------------------------------------------------

It would be awesome if you could put something like this into GridMove.
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: jgpaiva on January 28, 2008, 09:58 AM
jschwarz you're now my hero!!!

I've fixed the putty thing, i'll be updating gridmove in a bit ;)
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: jgpaiva on January 28, 2008, 10:12 AM
Sorry, i uploaded a wrong version, it's fixed now. if someone downloaded in the past 5 minutes, please redownload :)
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: jschwarz on January 28, 2008, 10:56 AM
I've fixed the putty thing, i'll be updating gridmove in a bit ;)

It works! Thanks for the quick fix.
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: jgpaiva on January 28, 2008, 11:13 AM
Oh no, thank you for finding the fix! :D
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: jschwarz on January 28, 2008, 11:30 AM
Right! Bow before me the master of Google search  ;).

Seriously, thank you for creating a great tool.
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: icekin on January 29, 2008, 07:37 AM
I would like Gridmove to ignore / exclude some applications that I list. For example, I extensively use VBA with small custom UserForms, and when I move them around, they sometimes end-up being increased and moved with Gridmove, which I want to avoid in this case.

I recently encountered a similar problem with my Miranda Open Window. I would like to excude certain Window classes from Gridmove as well.
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: jgpaiva on January 29, 2008, 10:01 AM
I was going to make a thread about how to add exceptions to gridmove, but figured that'd give me more work than adding a mechanism inside gridmove to do it instead.

Thus, updated version, please redownload.
You can now add/remove exceptions through the Tray menu, and following the instructions ;)
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: jschwarz on January 29, 2008, 03:40 PM
Hi,

I've got an idea which relates to the move aspect of GridMove: How about adding a feature that makes windows snap to each others like the windows in photoshop and winamp?

Do I make sense?
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: jgpaiva on January 29, 2008, 03:48 PM
No need!
AllSnap (http://www.cs.utoronto.ca/~iheckman/allsnap/) can do it :D
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: jschwarz on January 29, 2008, 03:52 PM
Ohh, thank you.
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: icekin on January 30, 2008, 03:48 AM
You can now add/remove exceptions through the Tray menu, and following the instructions ;)

That was fast! Many thanks for the prompt response to a request.
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: jgpaiva on January 30, 2008, 04:08 AM
That was fast! Many thanks for the prompt response to a request.
You're welcome! :)
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: Armando on January 30, 2008, 10:43 AM
Nice jgpaiva!
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: lanux128 on January 30, 2008, 11:20 PM
No need!
AllSnap (http://www.cs.utoronto.ca/~iheckman/allsnap/) can do it

jgpaiva, why don't you point icekin to your AllSnap (https://www.donationcoder.com/forum/index.php?topic=2455.0) mini-review. :up:
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: icekin on January 31, 2008, 06:50 AM
jgpaiva, why don't you point icekin to your AllSnap (https://www.donationcoder.com/forum/index.php?topic=2455.0) mini-review. :up:

Thanks, but I already use Pitaschio which can do the same thing as Allsnap, among other things.
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: lanux128 on January 31, 2008, 07:39 AM
jgpaiva, why don't you point icekin to your AllSnap (https://www.donationcoder.com/forum/index.php?topic=2455.0) mini-review. :up:

Thanks, but I already use Pitaschio which can do the same thing as Allsnap, among other things.

oops! actually i meant jschwarz who had originally requested the feature. must be coffee deficiency. :-[
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: ansalon on February 12, 2008, 08:08 AM
Thank you jgpaiva! for this nice Work  :Thmbsup:

I'm was looking for this kind of Software for a long time, and be glad that a
friend of mine find your side :-)

I play around a bit and have some feature-requests. Don't know if it is possible....

1. It would be nice if i could "bind" an Applikation to an fixed specified Grid-Number. For example I'd like my Browser
always open in Grid No. 1 and my Texteditor in Grid 2 etc. This means Gridmove has to detect a starting Applikation and
should move it the the specified Grid. May be it's possible to mark a Grid as default, so all unconfigured Apps will be opened
there.

2. Some webpages have the bad habit to maximize the browser-window to fullscreen. Is it possible to set a grid to be locked
for resize/maximize so an applikation snaped to that grid will not react on the resize-command anymore?

3. It would be nice to define Layers of Grids. Instead of having a Desktop-Manager with multiple Desktops
(don't have that, but i hope that clear the idea...) i would like to have few Layers with Grids where i can
snap Apps on it and a hotkey for scrolling through the layers. This means wenn i switch from
layer one to two all apps in layer one move in the background and all apps on layer (grid) two come to foreground.
In combination with the grids there are a lot more possibilities to arrange windows. So i could make one layer with my
working apps and one with browser + Email-Client so i can simply switch between them. So it will also possible to arrange
the layers that the area of where the email-Client is will always be visible...

Hope you can understand my explanation  :tellme:
Let me know what you think of these ideas.

Thank you again!
Greetings from Germany...
Ansalon

Title: Re: IDEA: drag window to edge automatically resizes it
Post by: jgpaiva on February 12, 2008, 09:05 AM
Hi ansalon!
I'm glad you like gridmove :D

Regarding your suggestions:

1: There's a way better solution for this: winwarden (https://www.donationcoder.com/Software/Skrommel/index.html#WinWarden). It lets you do exactly what you asked.

2: Winwarden can do that too, IIRC :)

3: To be honest... That sounds exactly like a multiple desktops app. It's impossible for me to make something nearly as good as the multiple options out there (the one i recommend is dexpot (http://www.dexpot.de/)) and i'd just be reinventing the wheel.
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: ansalon on February 12, 2008, 09:56 AM
Man you are realy fast :-)

ok i give winwarden a try...

Don't know if multiple Desktops apps could define one app to be on all desktops at same time, i should find out and give dexpot a try too :-)

Thank you for your Recommendations :-)
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: jgpaiva on February 12, 2008, 10:27 AM
Don't know if multiple Desktops apps could define one app to be on all desktops at same time, i should find out and give dexpot a try too :-)
Oh, they sure can! Try dexpot, i bet it'll be exactly what you're looking for ;)
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: jgpaiva on February 15, 2008, 05:26 PM
I'm just reporting that Brandon told me GridMove works perfectly under Windows Vista. I'd like to get a few more opinions on this, to make sure it's stable in Vista, since i can't test it myself.
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: Rgb9001 on February 27, 2008, 02:34 PM
Rgb9001: What you're looking for is a bit different from what gridmove does. But i've seen a program that does exactly what you want.. Unfortunatelly, i can't recall its name now and thus am unnable to find it :(
Hi again jgpaiva,
I know its been a while, but were you able to dig up any more info on this topic?
Thanks,

--R
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: jgpaiva on February 27, 2008, 06:08 PM
Sorry, Rgb9001... I really can't remember the name of that program :(
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: painz on March 07, 2008, 06:01 AM
Sorry for bothering you again, had to reinstall windows, downloaded .53 and win-arrows doesnt work anymore :( am i missing something? Also now i use 2nd monitor for notebook too and would be nice to have some shortcut for moving window between monitors (without grids just throw it to another monitor, something like win-pgup/pgdn, and actuallly maximize/minimize from kybd could be a nice addition too...). And reload with keyboard shortcut since auto-reload didnt work back then. Thanks again.
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: jgpaiva on March 07, 2008, 06:30 AM
Hey painz!

.53 still has that feature, but you have to enable it through the ini, like in the other version... It's the "sequential move" key, set it to '1'.
There is already the "reload by keyboard" feature: press win+g and then 'r' ;)
Currently, you can add a minimize/maximize element to your grid (i think the edge grid includes a mazimize element) and then press win+# :)
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: painz on March 07, 2008, 06:34 AM
Ah, sequental move, thanks i just forgot. Actually i think that should be added to menu, no?
Win-G-R is nice ofcourse but im speaking about "direct" reload hotkey, same with maximize/minimize and screen move.
The thing is when i view notebook on 2nd monitor i had to switch inputs to see windows which were opened on that monitor or press alt-space-m (move) and keep 'left' pressed for a while to see it on 1st screen.
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: painz on March 07, 2008, 07:00 AM
Hmm sat making new dual-screen grid and noticed that sometimes it cant shutdown itself when I press win-G-R and runs multiple copies in tray :/

Title: Re: IDEA: drag window to edge automatically resizes it
Post by: jgpaiva on March 07, 2008, 08:13 AM
Ah, sequental move, thanks i just forgot. Actually i think that should be added to menu, no?
Win-G-R is nice ofcourse but im speaking about "direct" reload hotkey, same with maximize/minimize and screen move.
The thing is when i view notebook on 2nd monitor i had to switch inputs to see windows which were opened on that monitor or press alt-space-m (move) and keep 'left' pressed for a while to see it on 1st screen.
The problem is that gridmove already registers quite a few hotkeys, and if i add more of those, very soon you want to use another app that has hotkeys, and gridmove has it registered, see what i mean?

Hmm sat making new dual-screen grid and noticed that sometimes it cant shutdown itself when I press win-G-R and runs multiple copies in tray :/
I can't quite understand why that happens, it must be the same problem that was causing multiple instances of gridmove when the auto-reload was working :(
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: kartal on March 14, 2008, 03:18 PM
it looks like your task bar needs to be visible at all times to be able use this one. I personally prefer to see these menus show up on ever window`s title bar

Hi ansalon!
I'm glad you like gridmove :D

Regarding your suggestions:

1: There's a way better solution for this: winwarden (https://www.donationcoder.com/Software/Skrommel/index.html#WinWarden). It lets you do exactly what you asked.

2: Winwarden can do that too, IIRC :)

3: To be honest... That sounds exactly like a multiple desktops app. It's impossible for me to make something nearly as good as the multiple options out there (the one i recommend is dexpot (http://www.dexpot.de/)) and i'd just be reinventing the wheel.
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: timcrews on April 28, 2008, 10:45 AM
I'm just reporting that Brandon told me GridMove works perfectly under Windows Vista. I'd like to get a few more opinions on this, to make sure it's stable in Vista, since i can't test it myself.

I have always used GridMove on Windows Vista.  It almost always works fine.

I have only observed two strange behaviors, and unfortunately I haven't recorded the details so you will probably not find this report useful.  Nevertheless, here they are:

1)  Two or three times, I have noticed that there were multiple (sometimes even more than ten) instances of GridMove running.  It showed up multiple times in Task Manager, and it showed up multiple times in the notification area.  I think I remember that this was a time when I was experimenting with different screen configurations, so lots of resolution changes were involved.  GridMove continued to work fine.  When I noticed, I just right-clicked on each of the GridMove icons in the notification area and closed them until there was only one left.

2)  About half of the time, when I restart Vista, after logging in, I see a dialog that says that a previous instance of GridMove could not be terminated.  It asks if I want to wait.  If I answer yes, everything works fine.
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: jgpaiva on April 28, 2008, 11:08 AM
timcrews:

Thanks for your reports!

Well, what you mentioned is a known problem, that i solved by removing the auto-reload. The problem is that sometimes when the resolution changed, when gridmove reloaded, it'd stay running. I can't understand why that happens, because it's related to the way Autohotkey does the reload.
If you'd like to solve that, just download the most recent version.

About gridmove on vista... I'm now running vista, and i've been having a few problems (hotkeys not being released, and the overlay moving too slow, mostly).
But i intend to make a review of gridmove sometime in the future, and then i'll add that info to gridmove's page ;)
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: AxCrusik on May 11, 2008, 01:20 AM
jgpaiva
I have been using GridMove for a year and a half now and I use it daily (still with my custom grid). It is one of the most useful programs on my computer and whenever friends see me snap a window into place they are amazed and wonder how I did it. I recently dual-booted my computer with windows vista ultimate 64 bit and was pleasantly surprised to discover that grid move is compatible. I have a 30" monitor with a 19" widescreen monitor in portrait orientation next to it so I rarely maximize windows. Instead I snap them to half or quarter screen areas. It seems like you have been busy fixing bugs and implementing new features so I will have to check out the latest version of GridMove to see what's changed. Thanks a lot and congratulations on your success!
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: jgpaiva on May 11, 2008, 06:59 AM
Thanks AxCrusik!

I recently have moved to Vista64, and also was glad to find that gridmove works.
Unfortunatelly, i haven't been able to update gridmove for quite a while (been VERY busy with school stuff) and there are still some loose ends, but it's good to know that it's still usable enough for people to use it everyday :)
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: kartal on May 16, 2008, 02:44 PM
Currently I made my own hack to grid system. What you need is
power pro  http://powerpro.webeddie.com/
winsplit http://reptils.free.fr/

What I did is that I assigned winsplit shortcuts to mouse and window titles with powerpro.
So if I middle click to right portion of any title bar my window moves, resizes(half of the screen size) and snaps to right side
So if I middle click to "minimize" my window moves, resizes(half of the screen size) and snaps to bottom of the screen
And I covered all the corners(left, top) etc this way. You do not need to use shortcuts or enable disable anything.

I thought this was a damn good hack and works beautifully. If anyone is interested I can give my powerpro and winsplit settings.

Also you can do this without winsplit in powerpro but I found this hack easier.
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: tomos on May 16, 2008, 03:25 PM
but I just love all those preset (i.e. made by others, in particular jgpaiva) options -
window #1 takes two-thirds of the screen, window #2 takes the other third, or 3/4 or whatever...this way, that way ...
I'm a fan of powerpro but only use it fairly basically, but I think in this case, I suspect its worth running the other app = gridmove !
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: ppass on May 27, 2008, 03:25 PM
Hi jpgaia,

I lost track of this thread for some time. Could you update me on a feature request you have accepted. That is moving around the current window using the modifier key + arrow keys. This assumes that each for each grid definition, the user defines the logic of the ordering of the grids. For example, modifier key + left/right arrow moves in this order: Grid1-> Grid2 -> etc. Have you implemented this ?
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: jgpaiva on May 27, 2008, 03:44 PM
Hi ppass!

I think that feature is currently being discussed in another thread, but i still haven't gone around to implementing it..
Unfortunatelly, it has been too much time since the last time i updated gridmove, i've been packed with school work :(
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: ppass on May 28, 2008, 01:58 PM
Right, I had forgotten about that thread. I follow-up this topic there.
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: tgmayfield on July 28, 2008, 01:38 PM
jschwarz you're now my hero!!!

I've fixed the putty thing, i'll be updating gridmove in a bit ;)

I updated (http://tgmayfield.com/projects/GridMove.git-email.patch) my local GridMove to give the same behavior to pietty.  It's a putty derivative that allows for clickable URLs, and signs up as the handler for ssh:// URLs (the main reason I use it).  It also has transparency, better multilingual support, and fancier window options, for those that are into that kind of thing.

The patch centralizes the logic a bit and would make it easy to add other applications that need resized the same way in the future.

--Thomas
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: jgpaiva on July 28, 2008, 06:08 PM
Hey tgmayfield!
Thanks for the diff, and specially thanks for the pietty link, that looks neat :)
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: tgmayfield on July 30, 2008, 07:51 AM
A note on pietty: make sure to set your character set. It defaults to being impossible to read (at least on my system, where I don't have the code page).

pietty uses the putty defaults when you open ssh:// URLs, so best bet is to open Putty, hit Window > Translation, change character set to UTF-8, then save over the defaults.
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: Chessnia on August 04, 2008, 10:16 PM
Hi Jp and the rest.

Congratulations on what seems like a really cool program. :Thmbsup:

Suggestion: Send all open programs (the ones that appear in the task bar) to grid.

The reason why I came accross your program is that lately I'm using lots of programs on my computer simultaneously (as most of us do) and was shocked to learn that windows doesn't have a hotkey to actually present all program windows in mosaic mode (or cascade). Well, apparently, it can be done if you go to your taskbar management, blah blah blah, and half an hour later, you can do it, which is absurd if you ask me!

By the way, does anybody know if such a program exists already? press control + whatever and your windows appear in mossaic or cascade mode... like MIRC used to do (if you've ever used IRC).

It's really quite shocking that "Windows" can do just about anything ... except manage windows in a smart way! :D
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: Armando on August 07, 2008, 11:20 AM
I am not able to get GridMove to work! The first time I run it, the program freezes after I click "OK" on the info box about tooltips. The .ini file is created and so is an empty plugins directory. When I run the script after windows kills it, I get the GridMove tray icon. However it is not clickable and none of the functions of GridMove work. Same thing happens after deleting the newly created files.

I am running the latest version of GridMove on Windows XP. I also have the
I was having the same problem before I check the "Turn off advanced text services for this program"[right click the GridMove.exe and goto Compatibility tab]
Now I am using GridMove and like it a lot.  :-*

Thank you jgpaiva.  :Thmbsup:
HIH! bugmenot  ;D


Arrrrrrrrggggggghhhh!!!!!!  :tellme:
I was having the same problem. Ate an hour of my time.  Fortunately, we have some great resources here. :)
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: jgpaiva on August 13, 2008, 05:03 PM
Yeah, Armando.. I still haven't figured out what causes that, I wish I could solve it :(
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: Armando on August 23, 2008, 05:56 PM
No worries jgpaiva... It's certainly not your fault!  :)
I was just... quite puzzled -- took me a while to find out what the problem was.  :-[
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: arber on August 26, 2008, 09:50 PM
Fantastic utility, it's done wonders for workflow with my 30" monitor.

It would be great if there was some way of optionally adding text, a name, or a caption to the displayed grid number.  For example, I have some grids with 1024x768 and 1280x1024 window sizes (ideal for testing how web pages look on older/common resolutions).  It would be great if I could have GridMove display "1024x768 (XGA)", etc. next to the grid numbers, when dragging.

I'm new to AHK, but a quick glance at the source suggests this might be easy enough to implement, and I might even have a go myself, but just wanted to check if this has been done already (I searched and couldn't find anything).
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: jgpaiva on August 27, 2008, 05:34 AM
Hi arber!
The reason this isn't implemented is because it'd make the grid configuration files unnecessarily more complex, as few people would use this feature.
Some time ago, one member of DC did modify gridmove to include this feature, I'll PM you the download link ;)
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: spyda on September 05, 2008, 04:32 AM
Sorry for taking so much time, but here's your grid, spyda!
Just put it on \Grids folder, re-run gridmove and select that grid from the templates list.

[edit] Grid modified, added support for multiple monitor [/edit]

Hey, I know this is like more than a year late but thanks so much for this grid!

In truth, I got mixed up with other things and forgot all about gridmove. However, now I have a Vista lappy and a wide screen I have re-visited and found this solution that you knocked up for me over a year ago! Really appreciate it and sorry it's taken so long!

Now, a brief question ...

I now have a wide screen and like to keep my main window about 3/4 the width of the screen with a few bits running down the right side. Actually I would like to make it a little more than 3/4 but to keep things simple I will leave it at that.

So, a nice simple one for you (if you are still talking to me) ...

I would love a grid (separate but to run alongside this one) that gives me the ability to instantly snap a window to 3/4 the width of the screen. I have looked at the tutorial and although this is a really simple one I cannot figure it!

Any chance of a few pointers - or making the grid for me if you were feeling especially generous?

Thanks again mate, much appreciated, and again ... apologies for the delay!

Edit: Actually, thinking about it ... in order to make this proposed grid even more useful it would be great to have the ability to split the left section down the middle also, so that I can list windows side by side while still maintaining my quarter of the screen to the right for my gadgets

.... or am I pushing my luck now !? :).

Title: Re: IDEA: drag window to edge automatically resizes it
Post by: jgpaiva on September 05, 2008, 04:46 AM
Hi Spyda!

Well, if you just want to snap to 3/4, that's really simple.
Here's a simple grid to do that:

[Groups]
  NumberOfGroups = 2

[1]
  TriggerTop    = [Monitor1Top]
  TriggerRight  = [Monitor1Left] + [Monitor1Width]  * 3/4
  TriggerBottom = [Monitor1Bottom]
  TriggerLeft   = [Monitor1Left]
  GridTop       = [Monitor1Top]
  GridRight     = [Monitor1Left] + [Monitor1Width]  * 3/4
  GridBottom    = [Monitor1Bottom]
  GridLeft      = [Monitor1Left]

[2]

  TriggerTop    = [Monitor1Top]
  TriggerRight  = [Monitor1Right]
  TriggerBottom = [Monitor1Bottom]
  TriggerLeft   = [Monitor1Left] + [Monitor1Width]  * 1/4
  GridTop       = [Monitor1Top]
  GridRight     = [Monitor1Right]
  GridBottom    = [Monitor1Bottom]
  GridLeft      = [Monitor1Left] + [Monitor1Width]  * 1/4
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: spyda on September 05, 2008, 05:23 AM
Great, thanks for that and for the speedy response!

Now, I have tried to adjust that to make it snap to other proportions (to make the right side narrower) the way I tried was:

[Groups]
  NumberOfGroups = 2

[1]
  TriggerTop    = [Monitor1Top]
  TriggerRight  = [Monitor1Left] + [Monitor1Width]  * 9/10
  TriggerBottom = [Monitor1Bottom]
  TriggerLeft   = [Monitor1Left]
  GridTop       = [Monitor1Top]
  GridRight     = [Monitor1Left] + [Monitor1Width]  * 9/10
  GridBottom    = [Monitor1Bottom]
  GridLeft      = [Monitor1Left]

[2]

  TriggerTop    = [Monitor1Top]
  TriggerRight  = [Monitor1Right]
  TriggerBottom = [Monitor1Bottom]
  TriggerLeft   = [Monitor1Left] + [Monitor1Width]  * 1/10
  GridTop       = [Monitor1Top]
  GridRight     = [Monitor1Right]
  GridBottom    = [Monitor1Bottom]
  GridLeft      = [Monitor1Left] + [Monitor1Width]  * 1/10

Obviously this is not how it's done ... as it made NO difference!

I would love to get a grid working along these lines:

------------------------------
|                                     |  |
|                                     |  |
|                    1                |2|
|                                     |  |
|                                     |  |
|                                     |  |
------------------------------

but I would also like to be able to divide section 1 into 2 (50/50 split), leaving section 2 as it is.

Just to note, I have no need to snap anything into section 2, that's just an area of my desktop I would like to be visible when using other windows. Also, I have no need to reverse the above configuration (so the narrow part is to the left).

My main working area will be section 1 and normally this will be filled with whatever application I am using at the time. However, I would like to be able to split that into 2 (50/50).

Does this make sense? Is it something you could easily knock up?

Again, many thanks!

Title: Re: IDEA: drag window to edge automatically resizes it
Post by: jgpaiva on September 05, 2008, 06:12 AM
Well, you weren't that far. ;)
Here you go:
grid inside
[Groups]
  NumberOfGroups = 4

[1]
  TriggerTop    = [Monitor1Top]
  TriggerRight  = [Monitor1Left] + [Monitor1Width]  * 9/10
  TriggerBottom = [Monitor1Bottom] -30
  TriggerLeft   = [Monitor1Left]
  GridTop       = [Monitor1Top]
  GridRight     = [Monitor1Left] + [Monitor1Width]  * 9/10
  GridBottom    = [Monitor1Bottom]
  GridLeft      = [Monitor1Left]

[2]
  TriggerTop    = [Monitor1Top]
  TriggerRight  = [Monitor1Right]
  TriggerBottom = [Monitor1Bottom]
  TriggerLeft   = [Monitor1Left] + [Monitor1Width]  * 9/10
  GridTop       = [Monitor1Top]
  GridRight     = [Monitor1Right]
  GridBottom    = [Monitor1Bottom]
  GridLeft      = [Monitor1Left] + [Monitor1Width]  * 9/10

[3]
  TriggerTop    = [Monitor1Bottom] -30
  TriggerRight  = [Monitor1Left] + [Monitor1Width]  * 9/10 * 1/2
  TriggerBottom = [Monitor1Bottom]
  TriggerLeft   = [Monitor1Left]
  GridTop       = [Monitor1Top]
  GridRight     = [Monitor1Left] + [Monitor1Width]  * 9/10 * 1/2
  GridBottom    = [Monitor1Bottom]
  GridLeft      = [Monitor1Left]

[4]
  TriggerTop    = [Monitor1Bottom] -30
  TriggerRight  = [Monitor1Left] + [Monitor1Width]  * 9/10
  TriggerBottom = [Monitor1Bottom]
  TriggerLeft   = [Monitor1Left] + [Monitor1Width]  * 9/10 * 1/2
  GridTop       = [Monitor1Top]
  GridRight     = [Monitor1Left] + [Monitor1Width]  * 9/10
  GridBottom    = [Monitor1Bottom]
  GridLeft      = [Monitor1Left] + [Monitor1Width]  * 9/10 * 1/2

Title: Re: IDEA: drag window to edge automatically resizes it
Post by: spyda on September 05, 2008, 06:31 AM
At least I tried eh?

Well, that's BRILLIANT and works just as I need it to!

Thanks jg, excellent work!

Any news on that grid maker you mentioned? Would love to be able to design grids in a gui for this excellent application ... I can't get my head round the text version as you see! lol
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: laoqiang on September 11, 2008, 02:02 AM

Is that possible to add an "exclude" feature in your next version?

Some windows shouldn't be resized or repositioned; some windows can't be resized. It will be nice if they can be excluded from the resizing/moving.

The exclude criteria could be the title of the window, or the name of the process. I'm fine with inputing them manually.

Thanks.
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: jgpaiva on September 11, 2008, 07:24 AM
There already is an option for that, laoqiang.. It's one of the first options in the tray menu! :)
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: spyda on September 11, 2008, 07:49 AM
I seem to be having trouble making the program default to the grid I want to use every time the program starts.

Instead of using the last operational grid it defaults to the 'browse' option - meaning that I have to select the appropriate grid each time.

For info I am using Vista. Any help appreciated.
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: jgpaiva on September 11, 2008, 09:08 AM
That's strange spyda..
Try downloading the most recent version, it doesn't even have the "browse" option anymore, it just loads the .grid files from the /grids folder.
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: spyda on September 11, 2008, 09:13 AM
That's sorted it ... must have been running an old version. I really should have checked!

Thanks for the quick response :)
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: jrg_kmch on October 31, 2008, 03:07 AM
hello, I really love Grid-Move, many thanks to the author!

But I'm having a problem, Avast keeps telling me there is a Trojan on it, it used to happen only to an older version, and after updating Grid-move, it stopped, but it just started again, and I tried downloading a new version, and avast will not even let me download, it just keeps saying there is a Trojan, what's happening?

Thanks
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: jgpaiva on October 31, 2008, 05:00 AM
jrg: That is a frequent problem, see here (https://www.donationcoder.com/forum/index.php?topic=14028.0;topicseen) and here (https://www.donationcoder.com/forum/index.php?topic=15210.0) for more info.
The problem is that antivirus programs constantly flag programs created with AutoHotkey. Unfortunatelly, there isn't much I can do :(
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: stamps on November 11, 2008, 03:53 AM
hello all!

Pretty useful program, nice work.  I have one problem with it: it doesn't work with steam (http://www.steampowered.com/).  I guess Steam uses some funky custom skinned UI that doesn't agree with GridMove (the usual "middle click on title bar" etc has no effect.)

I generally have the "Friends" window open all of the time so I was planning on using it with GridMove.  Any ideas on a patch or some sort of workaround?

Cheers!
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: jgpaiva on November 11, 2008, 05:01 AM
Unfortunatelly, gridmove doesn't work with steam, even with "safe mode" off. So, at this time there is no solution for that problem, since steam uses a special kind of window that isn't controllable by the language I use to build GridMove.
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: DrIce926 on November 11, 2008, 03:12 PM
I just downloaded GridMove today, and boy is it incredible!  It's working flawlessly for me, and I'm using two 1600x1200 monitors and UltraMon, too.  I was a little worried that it might bug out at first, but no such thing has happened.  Thank you so much for implementing it, jgpaiva!  Honestly, the Steam issue is absolutely negligible.  I have no complaints.  Thanks for sharing such a wonderful piece of work with the community.

I'd love to donate, but I'm currently extremely poor and jobless (but looking), and so unfortunately I'm in no position to do so.  I'll remember you for when I actually have a bit of money, though, and I'll show GridMove off to some of my more "rich" friends.  =)
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: jgpaiva on November 11, 2008, 04:34 PM
:D
Thank you DrIce!
Its this kind of messages that really motivate the work we all do for the community!

Good luck for your job search ;)
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: jgpaiva on December 03, 2008, 11:13 AM
GridMove was updated just now ;)

- Tried to fix this (https://www.donationcoder.com/forum/index.php?topic=14097)
- Removed the duplicate grids from the templates menu
- Now doesn't interfeer with Office2007 (or any other "strange" window).
- "undo" button (formerly known as "restore") is now in the 2-part and 3-part grid also.
- A few code updates

There may be some problems with stuff from previous versions still in the config options. If you get any problem, try moving GridMove.ini to another folder and start GridMove again to see if problems still are there.

Let's hear your opinions ;)
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: tmuka on December 04, 2008, 08:20 AM
Just noticed my gridmove was a few versions old.  I am really happy after the update Gridmove plays well with Adobe CS4 suite that uses Adobe Air!  Thanks for the great work!!!
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: major_lag on December 05, 2008, 05:27 PM
Hey ppass.

About the suggestions regarding fastmove:
Currently, none of those are possible, simply because gridmove isn't aware of where the window is. I mean, it only moves the window to a grid, and doesn't keep track of which windows are in which grids. It's not impossible to implement your suggestions, only something i can't do right now.

About having the windows move to the other screen... You can make your own gird, which could have for example in monitor 1, an element that would move the window to monitor 2, and in mornitor 2 would have an element that would move to monitor 1.

ps: I have attached to this post, another version of axcrusik's grid, which allows you to, in conjuntion with being able to move windows with the numpad, move them in a way that makes more sense.
To install it, just add it to the "grids" folder of gridmove, and replace the earlier version.

Another interesting feature is that now you can add a modifier to reach for numbers higher than 10 faster. Check on the ini file, and set the key FastMoveMeta like this:
FastMoveMeta=\
That will allow you to move a window to area 11 by pressing win+\ followed by 1 (instead of 11 like when you press win+g).

I would like to throw my vote in with ppass; I would appreciate a mechanism to migrate a window from one grid space to an adjacent one using a single key combination, and the ability to repeat that same motion to achieve a desired location further along.  Identifying the grid space currently occupied by a window I don't think is too rigorous a task.  I'll man up and throw down some pseudocode:

; given W as window, D as direction pushed (1-8)
nearestDistance := MAX_INT ; or some arbitrary large number
nearestGroup := 0
maximumDistance := 50 ; this would be set through the UI
minimumDistance := 4 ; for rounding errors, perhaps?
for each G in Groups
  distance := abs(G.left - W.left) + abs(G.right - W.right) + abs(G.top - W.top) + abs(G.bottom - W.bottom)
  if distance < nearestDistance
    nearestDistance := distance
    nearestGroup := G
    if nearestDistance < minimumDistance
      ; this is most likely it; quit looking.
      break
    end if
  end if
end for
if nearestDistance < maximumDistance
  ; this window is 'close enough' to nearestGrid; move from there
  Move(W, NextGrid(nearestGrid, D))
else
  ; this window is too far from nearestGrid; move to there
  Move(W, nearestGrid)
end if

The minimum distance keeps it from searching if we've found the right window (or the window which invariably will be the one selected).  The maximum distance allows for windows which don't resize well (like cmd.exe) to still be considered 'in' a grid area.

you could add a single element (GridNext) to the grid file relating directions moved to grid segments, like so:

[1]
  TriggerTop    = [Monitor1Top]  + [Monitor1Height] /3 *2
  TriggerRight  = [Monitor1Left] + [Monitor1Width]  /3
  TriggerBottom = [Monitor1Bottom]
  TriggerLeft   = [Monitor1Left]
  GridTop       = [Monitor1Top]  + [Monitor1Height] /3 *2
  GridRight     = [Monitor1Left] + [Monitor1Width]  /3
  GridBottom    = [Monitor1Bottom]
  GridLeft      = [Monitor1Left]
  GridNext      = 2,5,4,1,1,1,1,1

Which would represent the next grid segment in a cardinal direction (numbered from right, incrementing as we move counter-clockwise) so if the grid network were arranged as a number pad this would be a suitable entry for the '1' key region, moving to 2 on a right direction, 5 on up-right, and 4 on up.

Anyway, I realize that we are all busy.  No rush or anything, but I'd be extra-ordinarily grateful for this addition.

Thanks!
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: ebennetthill on December 07, 2008, 07:26 PM
I'm having two problems with 1.19.57.

One, I did have to do the trick of turning off "advanced text services for this program" just to get it to work. I didn't have that problem with 1.19.53. I was a little panicky for a while. But the grids did work after I found that trick on the forums.

The other problem has to do with "TitleSize" and "TitleLeft". I had TitleLeft set at 150 and TitleSize set at 355 which gave me a comfortable range to grab the title bar. With 1.19.57 I'm not sure what was going on, but it shrank the left mouse grab area to just a few pixels. It seemed to be okay with the default settings, but as I increased the TitleSize, things started acting weird.

But I fixed it while messing around with the AHK version. I changed the line "if(WinWidth > 3 * TitleSize)" to "if(WinWidth > 2 * TitleSize)" and things work as they used to for me. I don't understand it. It was a fortunate guess for me.

I like the outlined trigger areas. That visualization is helpful.

Thanks,
Ben
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: jgpaiva on December 07, 2008, 08:00 PM
Hi ben!

As for the "advanced text services" thing, I have no idea what causes that, but since I haven't changed much stuff since .53, I suppose it was the recompilation that caused that problem.

As for the second problem, I added that in this version but didn't predict people might use gridmove with such values (that positions the area in the middle of the titlebar, right?) and that test makes sure that the area isn't taking the whole titlebar (for small windows). Actually, in your case, you never experience that problem, since the are which you can grab the window to move it (without gridmove) is on the left. Smart :P
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: ebennetthill on December 07, 2008, 09:00 PM
Thanks for the quick reply. I'm still playing with the new version. I think I still like the way the old version handled the titleleft/titlesize. The 150-355 setting gave the left side of most of my windows to grab and resize, and the right side to grab and move. There was a problem with small windows sometimes because the title extended too far across the window, but not too often. I think I might need to change more than the 3* to 2* to get it to behave like it used to.

Also, what do I change to get GridMove to handle microsoft windows the same as the old version? GridMove is not recognizing them at all now - no matter what size they are or where I click them. I'm a HS teacher and I usually have a Word document or two or three open and an Excel file too. Resizing them with GridMove was a main use of the program for me.

By the way, just as a matter of fact, I'm using GridMove on a Thinkpad Tablet with a 12" screen (pretty small).
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: jgpaiva on December 08, 2008, 03:17 AM
:)
To be fair, you did a better decision than mine. Since you put that area on the right, you don't have the problem most people have with gridmove, which is that it interfeers with clicking on the office 2007 buttons. To protect people from that, I added a detection of those cases, to disabled GridMove for those windows.
You can remove that by removing the "AND MouseControl = """ clause on this code:

code inside
  if(WinWidth > 3 * TitleSize)
  {
    If (TitleSize < WinWidth - 100 AND LButtonDrag
        AND OldmouseX > TitleLeft AND OldMouseX < TitleSize
  AND MouseControl = "")
    {
      Hotkey = LButton
      sendinput {LButton up}
      GoSub,DropZoneMode
      Settimer, MousePosition,10
      return
    }
  }
  else
  {
    If (LButtonDrag AND OldmouseX > TitleLeft
        AND OldMouseX < TitleLeft + 20 AND WinWidth > 170
        AND MouseControl = "")
    {
      Hotkey = LButton
      sendinput {LButton up}
      GoSub,DropZoneMode
      Settimer, MousePosition,10
      return
    }
  }

Title: Re: IDEA: drag window to edge automatically resizes it
Post by: nudone on December 24, 2008, 07:19 AM
idea: 'throw' windows across screen to activate gridmove resizing.

(assuming this hasn't been suggested already) click and hold the windows titlebar and 'throw' it in the direction of the zone on the grid that you want to use.

so the direction of the throw determines the resize and final window position.

could work well i think for simple grid layouts.

would autohotkey be able to detect 'throws', i.e. click, hold, move mouse quickly and release hold.

(sorry if i've already said this idea before or just repeated someone else's post - it seems kind of familiar.)
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: mojo-chan on January 01, 2009, 07:05 PM
I found a bug :)

When you make a window "on top", it does stay on top at first. However, when certain things happen to it, it looses the "on top" attribute.

A good example is the KeePass 2.06 window. You can make it stay on top, but if you then add an entry when the new entry window closes the main window is no longer stuck on top.

ATI Hydravision and nView seem to work okay...
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: jgpaiva on January 01, 2009, 07:32 PM
Hi mojo-chan!
I really don't know why that happens, never happened to me.
I just tried it, but couldn't reproduce (probably because i only have keepass 1.11  :-[).
Have you seen this happen with any other program?

Nudone: I still haven't answered because I really like your idea, I'm trying to find some time to make something out of it ;)
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: nudone on January 02, 2009, 03:28 AM
i know i how busy you are, jgpaiva, so i was only hoping that you might consider the idea one day. i'm pleased you like the idea - if it gets implemented then that would be fantastic - whenever that may be.
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: mojo-chan on January 02, 2009, 07:18 AM
Hi mojo-chan!
I really don't know why that happens, never happened to me.
I just tried it, but couldn't reproduce (probably because i only have keepass 1.11  :-[).
Have you seen this happen with any other program?

I have not seen it happen with other programs so far, it looks like it's just KeePass 2.06... I am going to contact the developers of KeePass about it, because having thought about it, it's probably a bug in KeePass where it is re-setting the window parameters.
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: kwacky1 on January 02, 2009, 07:20 AM
I found a bug :)

When you make a window "on top", it does stay on top at first. However, when certain things happen to it, it looses the "on top" attribute.

It's not really a bug, it's just the window you're interacting with contains it's own code to reset the ontop flag when the gui gets redrawn for whatever reason.

I can replicate this quite easily with remote desktop (mstsc) session window

the only solution, i feel, would be to continuously check 'ontop' windows and reset if required.
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: mojo-chan on January 02, 2009, 07:27 AM
I have submitted a bug for it on the KeePass tracker. Rather than just resetting the "on top" attribute it should either just leave it alone or query it.

My guess is that it turns off the attribute when you open the Add Item window, because otherwise it would cover that window.

Anyway, thanks for gridmove. I was originally using nView, then switched to Hydravision but it was rubbish. Can I make one more little request? In nView it put a an extra item on the window menu that you get when clicking on a window's icon in the top left to toggle it between on top and normal. That was really handy.
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: jgpaiva on January 02, 2009, 07:41 AM
kwacky1: I think that constantly setting windows to be ontop would potentially take too much processor time, and only help a few programs.

mojo-chan: I did try to add stuff to the window menu (or the window title, next to the other 3 buttons), but have found there's no reliable way to do it with Autohotkey, the language GridMove is built with.
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: kwacky1 on January 02, 2009, 07:55 AM
kwacky1: I think that constantly setting windows to be ontop would potentially take too much processor time, and only help a few programs.

jgpaiva, my thoughts exactly, not worth it.  I think mojo-chan has taken the right angle, poorly written software should be punished.   ;D
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: mojo-chan on January 02, 2009, 11:21 AM
mojo-chan: I did try to add stuff to the window menu (or the window title, next to the other 3 buttons), but have found there's no reliable way to do it with Autohotkey, the language GridMove is built with.

Okay, fair enough. It's not a big deal. I just really like the way nView works - on top on the window menu and hold down control while dragging to select part of the layout.
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: Kibblesnbits on January 07, 2009, 10:27 AM
I absolutely love this program - it's a necessity when you're working with 3+ monitors. There is one feature that I'd love, and I may have missed it somewhere if it already exists - to have an "ignore list" of programs. Several of the programs I use on a daily basis (AutoCAD, Civil3D, Photoshop, others) make use of middle-mouse for navigation, binds, and gestures. Having to manually set each one to be ignored is a little annoying.
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: jgpaiva on January 07, 2009, 11:03 AM
Kibblesnbits: GridMove can ignore windows if you right-click its tray icon and select "ignore/unignore window). As this is saved across sessions, you should only have to do it once.. Is it not working for you?
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: Kibblesnbits on January 07, 2009, 12:02 PM
Odd - it works for Photoshop and most others, but not for a handful of programs (Google Sketchup is one immediate example). Sketchup was the one I was having to constantly add to the ignore list the most so I assumed GridMove had issues with others.

Example, Photoshop added to ignore list correctly - saves across sessions:
(http://www.kibblesnbits.net/threads/photoshop_gm.gif)

Example, Sketchup added to ignore list incorrectly:
(http://www.kibblesnbits.net/threads/sketchup_gm.gif)
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: jgpaiva on January 07, 2009, 12:33 PM
Oh.. Google sketchup changes its window class with each time you run it :(
Then I don't know of any way to identify that window, sorry..
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: Kibblesnbits on January 07, 2009, 12:51 PM
Aww :(
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: try on January 11, 2009, 11:21 AM
Hey,

What is the easiest way set it back so that it works right with Office 2007 windows again? I can't find my old .exe to re-install the earlier version, and I don't understand where to remove the code suggested above.

Thanks!
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: rex.withers on January 21, 2009, 05:05 PM
I have the old version of gridmove but uninstalling and reinstalling again didn't seam to reactivate the office 2007 programs within grid move. Help! I feel like on arm has been cut off.

(Great program by the way)
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: jgpaiva on January 21, 2009, 06:29 PM
Sorry for taking so long, guys..
I have uploaded a new version of GridMove.
You can even download it through the DCupdater.

The new version allows you to disable the Office2007 behaviour.
To do this, run GridMove so that it updates its configs, and then:
Open GridMove's folder (should be something like "c:\program files\gridmove"), and open GridMove.ini with notepad.
Now change "DisableTitleButtonsDetection" from '0' to '1' and save the file.
Then restart GridMove, and all should be as it was before ;)
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: frew on January 23, 2009, 03:57 PM
Hello friends!  Happy friday!

I am using gridmove and AHK for a lot of my computer interaction, and I was wondering if you could tell me how I can write an AHK hotkey that will

#1 open a window
#2 put it in a certain grid location
#3 open another window
#4 put it in different grid location
...

So far I have this:

#j::
Run \\Carbon\e
Run \\iron\c$\Perl\bin\PerlIS-Err.log
return

Which takes care of 1 and 3.  Is there a way I can either invoke GM or maybe use some of it's functions?

Thanks!
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: jgpaiva on January 23, 2009, 04:08 PM
There's no way to do it directly, but maybe it'll work if you use the keyboard shortcuts:

#j::
Run \\Carbon\e
sendinput,#1
Run \\iron\c$\Perl\bin\PerlIS-Err.log
sendinput,#2
return
You'll probably have to add some winwait before the lines I added, though..
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: frew on January 23, 2009, 04:30 PM
Excellent!  Thanks!

#j::
Run \\Carbon\e
WinWait, \\Carbon\e
sendinput,#1
Run \\iron\c$\Perl\bin\PerlIS-Err.log
WinWait, \\iron\c$\Perl\bin\PerlIS-Err.log
SendInput,#2
return
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: MacMichael on January 25, 2009, 03:11 PM
Hi,
New guy to this forum and to GridMove.  I have a toolbar (Freebar) at the top of my screen.  Is there a generic way to define the window top just below this toolbar in GridMove?  I have added/subtracted pixels in some of the grid templates (e.g. GridTop = [Monitor1Top] +35) to make it work but this obivously is not a great way to do this for compatibility with other configurations.

Hope I didn't post this in the wrong place.

Thanks
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: jgpaiva on January 25, 2009, 03:45 PM
Hi MacMichael! Welcome to DC :)

No, there's no way to do what you're asking for in gridmove, but maybe DesktopCoral (https://www.donationcoder.com/Software/Mouser/desktopcoral/index.html) can help you ;)
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: jgpaiva on January 31, 2009, 06:21 PM
Hi guys! I haven't been able to update recently, but after seing the recent Windows7 changes that add a function similar to GridMove, I just had to try to see how it would work in GridMove.

So, you can find a new version which has a bit of change here (http://jgpaiva.dcmembers.com/CS/GridMove/GridMoveSetup_Test.exe). Please, please tell me what you think, and in particular if you think it's better (or not) than the previous version :)

[edit] I hadn't predicted some problems.. Please test it with the "Win7Mimic" grid, the 2-part,3-part and 4-part grids have one small usability problem :) [/edit]
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: co172 on February 05, 2009, 01:04 AM
Hello... Downloaded and used Gridmove successfully with Windows 2000 in mid-January.  I just re-installed Windows 2000 from scratch (for unrelated reasons), downloaded the latest Gridmove version, and it no longer works (some divide by 0 error).  I notice that only WinXP and Vista are listed with the download now.  Did the code change drastically?  Are the older versions still available for download?

@jgpaiva:  Any ideas?

Thanks.
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: jgpaiva on February 05, 2009, 04:13 AM
That was not supposed to happen, co172 :(
Could you tell me what version of gridmove got you the error, when did the error happen and what was the line on the error?
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: co172 on February 05, 2009, 10:06 PM
Version 1.19.59 doesn't work with Win2k.  I just found an older version 1.19.43 and it seems to work fine.  Something must have changed in between these versions.
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: jgpaiva on February 06, 2009, 04:54 AM
I'll try to figure this out through PM with co172 and I'll report back when we come to some conclusions ;)
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: Duane27 on February 08, 2009, 12:13 AM
I just discovered GridMove today and Autohotkey 3 days ago.  I'm already hooked on them both.  Your Win7 version works well running XP.  I appreciate that it displays the actual window versus a shadow.  I'm still trying to figure out how to increase the hot size of the caption bar to something more than 100.  GridMove is an excellent program.  Thanks for creating it.   :Thmbsup:
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: Duane27 on February 08, 2009, 12:47 AM
I missed the quite obvious "Set Title Size".  I must be tired, but not too tired to still appreciate a very useful program.  Thanks again.
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: jgpaiva on February 08, 2009, 05:06 AM
;) Cool! Ok, one nice opinion about the new version. Let's see if more people like it more than the previous version!
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: 3of0 on February 13, 2009, 04:47 PM
I'm just checking out GridMove and am loving it!  I'm having some troubles using it with the mouse, since I know the people that I will be suggesting it to are very much mouse orientated.

I can move the active window with the Command and Number.  But i'm unable do anything with moving it with the mouse?  Am I missing something or is it broke? I can see help windows when I go over the title bar.

Thanks!
   -- Ron
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: Duane27 on February 13, 2009, 04:57 PM
Here's a grid I made that works for me.  It's best with the gridlines set to off. There's room in it to be modified, especially in the central area, which I plan on doing later.  I use it only with my mouse, so the numbering won't be of much use at this time.  It's a working draft.

Spoiler
[Groups]

  NumberOfGroups = 53
 
[1]
  TriggerTop    = [Monitor1Top]
  TriggerBottom = [Monitor1Top]  + [Monitor1Height] /6
  TriggerLeft   = [Monitor1Left] + [Monitor1Width]  /8*0
  TriggerRight  = [Monitor1Left] + [Monitor1Width]  /8*1
  GridTop       = [Monitor1Top]
  GridBottom    = [Monitor1Top]  + [Monitor1Height] /2
  GridLeft      = [Monitor1Left]
  GridRight     = [Monitor1Left] + [Monitor1Width]  /4
[43]
  TriggerTop    = [Monitor1Top]
  TriggerBottom = [Monitor1Top]  + [Monitor1Height] /6
  TriggerLeft   = [Monitor1Left] + [Monitor1Width]  /8*1
  TriggerRight  = [Monitor1Left] + [Monitor1Width]  /8*2
  GridTop       = [Monitor1Top]
  GridBottom    = [Monitor1Top]  + [Monitor1Height] /2
  GridLeft      = [Monitor1Left]
  GridRight     = [Monitor1Left] + [Monitor1Width]  /3
[2]
  TriggerTop    = [Monitor1Top]
  TriggerBottom = [Monitor1Top]  + [Monitor1Height] /6
  TriggerLeft   = [Monitor1Left] + [Monitor1Width]  /8*2
  TriggerRight  = [Monitor1Left] + [Monitor1Width]  /8*3.5
  GridTop       = [Monitor1Top]
  GridBottom    = [Monitor1Top]  + [Monitor1Height] /2
  GridLeft      = [Monitor1Left]
  GridRight     = [Monitor1Left] + [Monitor1Width]  /8*4
[3]
  TriggerTop    = [Monitor1Top]
  TriggerBottom = [Monitor1Top]  + [Monitor1Height] /6
  TriggerLeft   = [Monitor1Left] + [Monitor1Width]  /8*4.5
  TriggerRight  = [Monitor1Left] + [Monitor1Width]  /8*6
  GridTop       = [Monitor1Top]
  GridBottom    = [Monitor1Top]  + [Monitor1Height] /2
  GridLeft      = [Monitor1Left] + [Monitor1Width]  /2
  GridRight     = [Monitor1Right]
[4]
  TriggerTop    = [Monitor1Top]
  TriggerBottom = [Monitor1Top]  + [Monitor1Height] /6
  TriggerLeft   = [Monitor1Left] + [Monitor1Width]  /8*6
  TriggerRight  = [Monitor1Left] + [Monitor1Width]  /8*7
  TriggerLeft   = [Monitor1Left]
  GridTop       = [Monitor1Top]
  GridBottom    = [Monitor1Top]  + [Monitor1Height] /2
  GridLeft      = [Monitor1Left] + [Monitor1Width]  /3*2
  GridRight     = [Monitor1Right]
[49]
  TriggerTop    = [Monitor1Top]
  TriggerBottom = [Monitor1Top]  + [Monitor1Height] /6
  TriggerLeft   = [Monitor1Left] + [Monitor1Width]  /8*7
  TriggerRight  = [Monitor1Left] + [Monitor1Width]  /8*8
  TriggerLeft   = [Monitor1Left]
  GridTop       = [Monitor1Top]
  GridBottom    = [Monitor1Top]  + [Monitor1Height] /2
  GridLeft      = [Monitor1Left] + [Monitor1Width]  /16*12
  GridRight     = [Monitor1Right]

[5]
  TriggerTop    = [Monitor1Top]  + [Monitor1Height] /6*4
  TriggerBottom = [Monitor1Top]  + [Monitor1Height] /6*5
  TriggerLeft   = [Monitor1Left] + [Monitor1Width]  /8*0
  TriggerRight  = [Monitor1Left] + [Monitor1Width]  /8*1
  GridTop       = [Monitor1Top]  + [Monitor1Height] /2
  GridBottom    = [Monitor1Bottom]
  GridLeft      = [Monitor1Left]
  GridRight     = [Monitor1Left] + [Monitor1Width]  /4
[6]
  TriggerTop    = [Monitor1Top]  + [Monitor1Height] /6*4
  TriggerBottom = [Monitor1Top]  + [Monitor1Height] /6*5
  TriggerLeft   = [Monitor1Left] + [Monitor1Width]  /8*2
  TriggerRight  = [Monitor1Left] + [Monitor1Width]  /8*3.5
  GridTop       = [Monitor1Top]  + [Monitor1Height] /2
  GridBottom    = [Monitor1Bottom]
  GridLeft      = [Monitor1Left]
  GridRight     = [Monitor1Left] + [Monitor1Width]/2

[7]
  TriggerTop    = [Monitor1Top]  + [Monitor1Height] /6*4
  TriggerBottom = [Monitor1Top]  + [Monitor1Height] /6*5
  TriggerLeft   = [Monitor1Left] + [Monitor1Width]  /8*4.5
  TriggerRight  = [Monitor1Left] + [Monitor1Width]  /8*6
  GridTop       = [Monitor1Top]  + [Monitor1Height] /2
  GridBottom    = [Monitor1Bottom]
  GridLeft      = [Monitor1Left] + [Monitor1Width]  / 2
  GridRight     = [Monitor1Right]

[8]
  TriggerTop    = [Monitor1Top]  + [Monitor1Height] /6*4
  TriggerBottom = [Monitor1Top]  + [Monitor1Height] /6*5
  TriggerLeft   = [Monitor1Left] + [Monitor1Width]  /8*6
  TriggerRight  = [Monitor1Left] + [Monitor1Width]  /8*7
  GridTop       = [Monitor1Top]  + [Monitor1Height] /2
  GridBottom    = [Monitor1Bottom]
  GridLeft      = [Monitor1Left] + [Monitor1Width]  /16*11
  GridRight     = [Monitor1Right]
[52]
  TriggerTop    = [Monitor1Top]  + [Monitor1Height] /6*4
  TriggerBottom = [Monitor1Top]  + [Monitor1Height] /6*5
  TriggerLeft   = [Monitor1Left] + [Monitor1Width]  /8*7
  TriggerRight  = [Monitor1Left] + [Monitor1Width]  /8*8
  GridTop       = [Monitor1Top]  + [Monitor1Height] /2
  GridBottom    = [Monitor1Bottom]
  GridLeft      = [Monitor1Left] + [Monitor1Width]  /16*12
  GridRight     = [Monitor1Right]

; This is certer of top line
[9]
  TriggerTop    = [Monitor1Top]
  TriggerBottom = [Monitor1Top]  + [Monitor1Height] /6
  TriggerLeft   = [Monitor1Left] + [Monitor1Width]  /8*3.5
  TriggerRight  = [Monitor1Left] + [Monitor1Width]  /8*4.5
  GridTop       = [Monitor1Top]
  GridBottom    = [Monitor1Top]  + [Monitor1Height] /2
  GridLeft      = [Monitor1Left] + [Monitor1Width]  /3
  GridRight     = [Monitor1Left] + [Monitor1Width]  /3*2
[10]
  TriggerTop    = [Monitor1Top]  + [Monitor1Height] /6*1
  TriggerBottom = [Monitor1Top]  + [Monitor1Height] /6*2
  TriggerLeft   = [Monitor1Left] + [Monitor1Width]  /8*0
  TriggerRight  = [Monitor1Left] + [Monitor1Width]  /8*1
  GridTop       = [Monitor1Top]
  GridBottom    = [Monitor1Top]  + [Monitor1Height] /6*4
  GridLeft      = [Monitor1Left]
  GridRight     = [Monitor1Left] + [Monitor1Width]  /4
 
[44]
  TriggerTop    = [Monitor1Top]  + [Monitor1Height] /6*1
  TriggerBottom = [Monitor1Top]  + [Monitor1Height] /6*2
  TriggerLeft   = [Monitor1Left] + [Monitor1Width]  /8*1
  TriggerRight  = [Monitor1Left] + [Monitor1Width]  /8*2
  GridTop       = [Monitor1Top]
  GridBottom    = [Monitor1Top]  + [Monitor1Height] /6*4
  GridLeft      = [Monitor1Left]
  GridRight     = [Monitor1Left] + [Monitor1Width]  /3
[11]
  TriggerTop    = [Monitor1Top]  + [Monitor1Height] /6*1
  TriggerBottom = [Monitor1Top]  + [Monitor1Height] /6*2
  TriggerLeft   = [Monitor1Left] + [Monitor1Width]  /8*2
  TriggerRight  = [Monitor1Left] + [Monitor1Width]  /8*3
  GridTop       = [Monitor1Top]  + [Monitor1Height] /6*0
  GridBottom    = [Monitor1Top]  + [Monitor1Height] /6*4
  GridLeft      = [Monitor1Left] + [Monitor1Width]  /6*0
  GridRight     = [Monitor1Left] + [Monitor1Width]  /6*3
[32]
  TriggerTop    = [Monitor1Top]  + [Monitor1Height] /6*2
  TriggerBottom = [Monitor1Top]  + [Monitor1Height] /6*3
  TriggerLeft   = [Monitor1Left] + [Monitor1Width]  /8*2
  TriggerRight  = [Monitor1Left] + [Monitor1Width]  /8*3
  GridTop       = [Monitor1Top]  + [Monitor1Height] /6*0
  GridBottom    = [Monitor1Top]  + [Monitor1Height] /6*4
  GridLeft      = [Monitor1Left] + [Monitor1Width]  /6*0
  GridRight     = [Monitor1Left] + [Monitor1Width]  /6*3
[14]
  TriggerTop    = [Monitor1Top]  + [Monitor1Height] /6*1
  TriggerBottom = [Monitor1Top]  + [Monitor1Height] /6*2
  TriggerLeft   = [Monitor1Left] + [Monitor1Width]  /16*6
  TriggerRight  = [Monitor1Left] + [Monitor1Width]  /16*7
  GridTop       = [Monitor1Top]  + [Monitor1Height] /6*0
  GridBottom    = [Monitor1Top]  + [Monitor1Height] /6*4
  GridLeft      = [Monitor1Left] + [Monitor1Width]  /6*0
  GridRight     = [Monitor1Left] + [Monitor1Width]  /6*4
[24]
  TriggerTop    = [Monitor1Top]  + [Monitor1Height] /6*1
  TriggerBottom = [Monitor1Top]  + [Monitor1Height] /6*2
  TriggerLeft   = [Monitor1Left] + [Monitor1Width]  /16*7
  TriggerRight  = [Monitor1Left] + [Monitor1Width]  /16*8
  GridTop       = [Monitor1Top]  + [Monitor1Height] /6*0
  GridBottom    = [Monitor1Top]  + [Monitor1Height] /6*6
  GridLeft      = [Monitor1Left] + [Monitor1Width]  /6*2
  GridRight     = [Monitor1Left] + [Monitor1Width]  /6*4
[12]
  TriggerTop    = [Monitor1Top]  + [Monitor1Height] /6*1
  TriggerBottom = [Monitor1Top]  + [Monitor1Height] /6*2
  TriggerLeft   = [Monitor1Left] + [Monitor1Width]  /16*9
  TriggerRight  = [Monitor1Left] + [Monitor1Width]  /16*10
  GridTop       = [Monitor1Top]  + [Monitor1Height] /6*0
  GridBottom    = [Monitor1Top]  + [Monitor1Height] /6*4
  GridLeft      = [Monitor1Left] + [Monitor1Width]  /3
  GridRight     = [Monitor1Left] + [Monitor1Width]
[33]
  TriggerTop    = [Monitor1Top]  + [Monitor1Height] /6*2
  TriggerBottom = [Monitor1Top]  + [Monitor1Height] /6*3
  TriggerLeft   = [Monitor1Left] + [Monitor1Width]  /16*9
  TriggerRight  = [Monitor1Left] + [Monitor1Width]  /8*5
  GridTop       = [Monitor1Top]  + [Monitor1Height] /6*0
  GridBottom    = [Monitor1Top]  + [Monitor1Height] /6*4
  GridLeft      = [Monitor1Left] + [Monitor1Width]  /3
  GridRight     = [Monitor1Left] + [Monitor1Width]
[25]
  TriggerTop    = [Monitor1Top]  + [Monitor1Height] /6*1
  TriggerBottom = [Monitor1Top]  + [Monitor1Height] /6*2
  TriggerLeft   = [Monitor1Left] + [Monitor1Width]  /8*5
  TriggerRight  = [Monitor1Left] + [Monitor1Width]  /8*6
  GridTop       = [Monitor1Top]  + [Monitor1Height] /6*0
  GridBottom    = [Monitor1Top]  + [Monitor1Height] /6*4
  GridLeft      = [Monitor1Left] + [Monitor1Width]  /6*3
  GridRight     = [Monitor1Left] + [Monitor1Width]  /6*6
[37]
  TriggerTop    = [Monitor1Top]  + [Monitor1Height] /6*2
  TriggerBottom = [Monitor1Top]  + [Monitor1Height] /6*3
  TriggerLeft   = [Monitor1Left] + [Monitor1Width]  /8*5
  TriggerRight  = [Monitor1Left] + [Monitor1Width]  /8*6
  GridTop       = [Monitor1Top]  + [Monitor1Height] /6*0
  GridBottom    = [Monitor1Top]  + [Monitor1Height] /6*4
  GridLeft      = [Monitor1Left] + [Monitor1Width]  /6*3
  GridRight     = [Monitor1Left] + [Monitor1Width]  /6*6
[13]
  TriggerTop    = [Monitor1Top]  + [Monitor1Height] /6*1
  TriggerBottom = [Monitor1Top]  + [Monitor1Height] /6*2
  TriggerLeft   = [Monitor1Left] + [Monitor1Width]  /8*6
  TriggerRight  = [Monitor1Left] + [Monitor1Width]  /8*7
  GridTop       = [Monitor1Top]
  GridBottom    = [Monitor1Top]  + [Monitor1Height] /6*4
  GridLeft      = [Monitor1Left] + [Monitor1Width]  /16*11
  GridRight     = [Monitor1Left] + [Monitor1Width]
[50]
  TriggerTop    = [Monitor1Top]  + [Monitor1Height] /6*1
  TriggerBottom = [Monitor1Top]  + [Monitor1Height] /6*2
  TriggerLeft   = [Monitor1Left] + [Monitor1Width]  /8*7
  TriggerRight  = [Monitor1Left] + [Monitor1Width]  /8*8
  GridTop       = [Monitor1Top]
  GridBottom    = [Monitor1Top]  + [Monitor1Height] /6*4
  GridLeft      = [Monitor1Left] + [Monitor1Width]  /16*12
  GridRight     = [Monitor1Left] + [Monitor1Width]
[34]
  TriggerTop    = [Monitor1Top]  + [Monitor1Height] /6*2
  TriggerBottom = [Monitor1Top]  + [Monitor1Height] /6*3
  TriggerLeft   = [Monitor1Left] + [Monitor1Width]  /8*6
  TriggerRight  = [Monitor1Left] + [Monitor1Width]  /8*7
  GridTop       = [Monitor1Top]
  GridBottom    = [Monitor1Top]  + [Monitor1Height] /6*4
  GridLeft      = [Monitor1Left] + [Monitor1Width]  /16*11
  GridRight     = [Monitor1Left] + [Monitor1Width]
[51]
  TriggerTop    = [Monitor1Top]  + [Monitor1Height] /6*2
  TriggerBottom = [Monitor1Top]  + [Monitor1Height] /6*3
  TriggerLeft   = [Monitor1Left] + [Monitor1Width]  /8*7
  TriggerRight  = [Monitor1Left] + [Monitor1Width]  /8*8
  GridTop       = [Monitor1Top]
  GridBottom    = [Monitor1Top]  + [Monitor1Height] /6*4
  GridLeft      = [Monitor1Left] + [Monitor1Width]  /16*12
  GridRight     = [Monitor1Left] + [Monitor1Width]
[35]
  TriggerTop    = [Monitor1Top]  + [Monitor1Height] /6*2
  TriggerBottom = [Monitor1Top]  + [Monitor1Height] /6*3
  TriggerLeft   = [Monitor1Left] + [Monitor1Width]  /16*7
  TriggerRight  = [Monitor1Left] + [Monitor1Width]  /16*8
  GridTop       = [Monitor1Top]  + [Monitor1Height] /6*0
  GridBottom    = [Monitor1Top]  + [Monitor1Height] /6*4
  GridLeft      = [Monitor1Left] + [Monitor1Width]  /6*1
  GridRight     = [Monitor1Left] + [Monitor1Width]  /6*5
[15]
  TriggerTop    = [Monitor1Top]  + [Monitor1Height] /6*1
  TriggerBottom = [Monitor1Top]  + [Monitor1Height] /6*2
  TriggerLeft   = [Monitor1Left] + [Monitor1Width]  /16*8
  TriggerRight  = [Monitor1Left] + [Monitor1Width]  /16*9
  GridTop       = [Monitor1Top]  + [Monitor1Height] /6*0
  GridBottom    = [Monitor1Top]  + [Monitor1Height] /6*6
  GridLeft      = [Monitor1Left] + [Monitor1Width]  /6*2
  GridRight     = [Monitor1Left] + [Monitor1Width]  /6*4
[36]
  TriggerTop    = [Monitor1Top]  + [Monitor1Height] /6*2
  TriggerBottom = [Monitor1Top]  + [Monitor1Height] /6*3
  TriggerLeft   = [Monitor1Left] + [Monitor1Width]  /16*8
  TriggerRight  = [Monitor1Left] + [Monitor1Width]  /16*9
  GridTop       = [Monitor1Top]  + [Monitor1Height] /6*0
  GridBottom    = [Monitor1Top]  + [Monitor1Height] /6*4
  GridLeft      = [Monitor1Left] + [Monitor1Width]  /6*1
  GridRight     = [Monitor1Left] + [Monitor1Width]  /6*5
[16]
  TriggerTop    = [Monitor1Top]  + [Monitor1Height] /6*4
  TriggerBottom = [Monitor1Top]  + [Monitor1Height] /6*5
  TriggerLeft   = [Monitor1Left] + [Monitor1Width]  /8*3.5
  TriggerRight  = [Monitor1Left] + [Monitor1Width]  /8*4.5
  GridTop       = [Monitor1Top]  + [Monitor1Height] /2
  GridBottom    = [Monitor1Top]  + [Monitor1Height]
  GridLeft      = [Monitor1Left] + [Monitor1Width]  /3
  GridRight     = [Monitor1Left] + [Monitor1Width]  /3*2
; This is center of bottom line
[17]
  TriggerTop    = [Monitor1Top]  + [Monitor1Height] /6*3
  TriggerBottom = [Monitor1Top]  + [Monitor1Height] /6*4
  TriggerLeft   = [Monitor1Left] + [Monitor1Width]  /8*0
  TriggerRight  = [Monitor1Left] + [Monitor1Width]  /8*1
  GridTop       = [Monitor1Top]
  GridBottom    = [Monitor1Bottom]
  GridLeft      = [Monitor1Left]
  GridRight     = [Monitor1Left] + [Monitor1Width]  /4
[45]
  TriggerTop    = [Monitor1Top]  + [Monitor1Height] /6*3
  TriggerBottom = [Monitor1Top]  + [Monitor1Height] /6*4
  TriggerLeft   = [Monitor1Left] + [Monitor1Width]  /8*1
  TriggerRight  = [Monitor1Left] + [Monitor1Width]  /8*2
  GridTop       = [Monitor1Top]
  GridBottom    = [Monitor1Bottom]
  GridLeft      = [Monitor1Left]
  GridRight     = [Monitor1Left] + [Monitor1Width]  /3
 
[18]
  TriggerTop    = [Monitor1Top]  + [Monitor1Height] /6*3
  TriggerBottom = [Monitor1Top]  + [Monitor1Height] /6*4
  TriggerLeft   = [Monitor1Left] + [Monitor1Width]  /16*6
  TriggerRight  = [Monitor1Left] + [Monitor1Width]  /16*7
  GridTop       = [Monitor1Top]  + [Monitor1Height] /6*0
  GridBottom    = [Monitor1Top]  + [Monitor1Height] /6*6
  GridLeft      = [Monitor1Left] + [Monitor1Width]  /6*0
  GridRight     = [Monitor1Left] + [Monitor1Width]  /6*4
[39]
  TriggerTop    = [Monitor1Top]  + [Monitor1Height] /12*6
  TriggerBottom = [Monitor1Top]  + [Monitor1Height] /12*7
  TriggerLeft   = [Monitor1Left] + [Monitor1Width]  /16*7
  TriggerRight  = [Monitor1Left] + [Monitor1Width]  /16*8
  GridTop       = [Monitor1Top]  + [Monitor1Height] /6*0
  GridBottom    = [Monitor1Top]  + [Monitor1Height] /6*5
  GridLeft      = [Monitor1Left] + [Monitor1Width]  /6*1
  GridRight     = [Monitor1Left] + [Monitor1Width]  /6*5
[41]
  TriggerTop    = [Monitor1Top]  + [Monitor1Height] /12*7
  TriggerBottom = [Monitor1Top]  + [Monitor1Height] /12*8
  TriggerLeft   = [Monitor1Left] + [Monitor1Width]  /16*7
  TriggerRight  = [Monitor1Left] + [Monitor1Width]  /16*8
  GridTop       = [Monitor1Top]  + [Monitor1Height] /6*0
  GridBottom    = [Monitor1Top]  + [Monitor1Height] /6*6
  GridLeft      = [Monitor1Left] + [Monitor1Width]  /6*1
  GridRight     = [Monitor1Left] + [Monitor1Width]  /6*5
[19]
  TriggerTop    = [Monitor1Top]  + [Monitor1Height] /12*6
  TriggerBottom = [Monitor1Top]  + [Monitor1Height] /12*7
  TriggerLeft   = [Monitor1Left] + [Monitor1Width]  /16*8
  TriggerRight  = [Monitor1Left] + [Monitor1Width]  /16*9
  GridTop       = [Monitor1Top]  + [Monitor1Height] /6*0
  GridBottom    = [Monitor1Top]  + [Monitor1Height] /6*5
  GridLeft      = [Monitor1Left] + [Monitor1Width]  /6*1
  GridRight     = [Monitor1Left] + [Monitor1Width]  /6*5
[42]
  TriggerTop    = [Monitor1Top]  + [Monitor1Height] /12*7
  TriggerBottom = [Monitor1Top]  + [Monitor1Height] /12*8
  TriggerLeft   = [Monitor1Left] + [Monitor1Width]  /16*8
  TriggerRight  = [Monitor1Left] + [Monitor1Width]  /16*9
  GridTop       = [Monitor1Top]  + [Monitor1Height] /6*0
  GridBottom    = [Monitor1Top]  + [Monitor1Height] /6*6
  GridLeft      = [Monitor1Left] + [Monitor1Width]  /6*1
  GridRight     = [Monitor1Left] + [Monitor1Width]  /6*5

[20]
  TriggerTop    = [Monitor1Top]  + [Monitor1Height] /6*3
  TriggerBottom = [Monitor1Top]  + [Monitor1Height] /6*4
  TriggerLeft   = [Monitor1Left] + [Monitor1Width]  /8*7
  TriggerRight  = [Monitor1Left] + [Monitor1Width]  /8*8
  GridTop       = [Monitor1Top]
  GridBottom    = [Monitor1Bottom]
  GridLeft      = [Monitor1Left] + [Monitor1Width]  /16*12
  GridRight     = [Monitor1Left] + [Monitor1Width]
[21]
  TriggerTop    = [Monitor1Top]  + [Monitor1Height] /6*3
  TriggerBottom = [Monitor1Top]  + [Monitor1Height] /6*4
  TriggerLeft   = [Monitor1Left] + [Monitor1Width]  /8*6
  TriggerRight  = [Monitor1Left] + [Monitor1Width]  /8*7
  GridTop       = [Monitor1Top]
  GridBottom    = [Monitor1Bottom]
  GridLeft      = [Monitor1Left] + [Monitor1Width]  /16*11
  GridRight     = [Monitor1Left] + [Monitor1Width]
[22]
  TriggerTop    = [Monitor1Top]  + [Monitor1Height] /6*3
  TriggerBottom = [Monitor1Top]  + [Monitor1Height] /6*4
  TriggerLeft   = [Monitor1Left] + [Monitor1Width]  /8*5
  TriggerRight  = [Monitor1Left] + [Monitor1Width]  /8*6
  GridTop       = [Monitor1Top]
  GridBottom    = [Monitor1Bottom]
  GridLeft      = [Monitor1Left] + [Monitor1Width]  /2
  GridRight     = [Monitor1Left] + [Monitor1Width]
[23]
  TriggerTop    = [Monitor1Top]  + [Monitor1Height] /6*3
  TriggerBottom = [Monitor1Top]  + [Monitor1Height] /6*4
  TriggerLeft   = [Monitor1Left] + [Monitor1Width]  /8*2
  TriggerRight  = [Monitor1Left] + [Monitor1Width]  /8*3
  GridTop       = [Monitor1Top]  + [Monitor1Height] /6*0
  GridBottom    = [Monitor1Top]  + [Monitor1Height] /6*6
  GridLeft      = [Monitor1Left] + [Monitor1Width]  /6*0
  GridRight     = [Monitor1Left] + [Monitor1Width]  /6*3
[40]
  TriggerTop    = [Monitor1Top]  + [Monitor1Height] /6*3
  TriggerBottom = [Monitor1Top]  + [Monitor1Height] /6*4
  TriggerLeft   = [Monitor1Left] + [Monitor1Width]  /16*9 
  TriggerRight  = [Monitor1Left] + [Monitor1Width]  /16*10
  GridTop       = [Monitor1Top]  + [Monitor1Height] /6*0
  GridBottom    = [Monitor1Top]  + [Monitor1Height] /6*6
  GridLeft      = [Monitor1Left] + [Monitor1Width]  /6*2
  GridRight     = [Monitor1Left] + [Monitor1Width]  /6*6
[26]
  TriggerTop    = [Monitor1Top]  + [Monitor1Height] /6*2
  TriggerBottom = [Monitor1Top]  + [Monitor1Height] /6*3
  TriggerLeft   = [Monitor1Left] + [Monitor1Width]  /16*6
  TriggerRight  = [Monitor1Left] + [Monitor1Width]  /16*7
  GridTop       = [Monitor1Top]  + [Monitor1Height] /6*0
  GridBottom    = [Monitor1Top]  + [Monitor1Height] /6*4
  GridLeft      = [Monitor1Left] + [Monitor1Width]  /6*0
  GridRight     = [Monitor1Left] + [Monitor1Width]  /6*4
[27]
  TriggerTop    = [Monitor1Top]  + [Monitor1Height] /6*5
  TriggerBottom = [Monitor1Top]  + [Monitor1Height] /6*6
  TriggerLeft   = [Monitor1Left] + [Monitor1Width]  /8*2
  TriggerRight  = [Monitor1Left] + [Monitor1Width]  /8*3.5
  GridTop       = [Monitor1Top]  + [Monitor1Height] /3*2
  GridBottom    = [Monitor1Bottom]
  GridLeft      = [Monitor1Left]
  GridRight     = [Monitor1Left] + [Monitor1Width]  /2
[28]
  TriggerTop    = [Monitor1Top]  + [Monitor1Height] /6*5
  TriggerBottom = [Monitor1Top]  + [Monitor1Height] /6*6
  TriggerLeft   = [Monitor1Left] + [Monitor1Width]  /8*4.5
  TriggerRight  = [Monitor1Left] + [Monitor1Width]  /8*6
  GridTop       = [Monitor1Top]  + [Monitor1Height] /3*2
  GridBottom    = [Monitor1Bottom]
  GridLeft      = [Monitor1Left] + [Monitor1Width]  / 2
  GridRight     = [Monitor1Right]
[29]
  TriggerTop    = [Monitor1Top]  + [Monitor1Height] /6*5
  TriggerBottom = [Monitor1Top]  + [Monitor1Height] /6*6
  TriggerLeft   = [Monitor1Left] + [Monitor1Width]  /8*6
  TriggerRight  = [Monitor1Left] + [Monitor1Width]  /8*7
  GridTop       = [Monitor1Top]  + [Monitor1Height] /3*2
  GridBottom    = [Monitor1Bottom]
  GridLeft      = [Monitor1Left] + [Monitor1Width]  /16*11
  GridRight     = [Monitor1Right]
[53]
  TriggerTop    = [Monitor1Top]  + [Monitor1Height] /6*5
  TriggerBottom = [Monitor1Top]  + [Monitor1Height] /6*6
  TriggerLeft   = [Monitor1Left] + [Monitor1Width]  /8*7
  TriggerRight  = [Monitor1Left] + [Monitor1Width]  /8*8
  GridTop       = [Monitor1Top]  + [Monitor1Height] /3*2
  GridBottom    = [Monitor1Bottom]
  GridLeft      = [Monitor1Left] + [Monitor1Width]  /16*12
  GridRight     = [Monitor1Right]
[30]
  TriggerTop    = [Monitor1Top]  + [Monitor1Height] /6*5
  TriggerBottom = [Monitor1Top]  + [Monitor1Height] /6*6
  TriggerLeft   = [Monitor1Left] + [Monitor1Width]  /8*3.5
  TriggerRight  = [Monitor1Left] + [Monitor1Width]  /8*4.5
  GridTop       = [Monitor1Top]  + [Monitor1Height] /3*2
  GridBottom    = [Monitor1Top]  + [Monitor1Height]
  GridLeft      = [Monitor1Left] + [Monitor1Width]  /3
  GridRight     = [Monitor1Left] + [Monitor1Width]  /3*2
[31]
  TriggerTop    = [Monitor1Top]  + [Monitor1Height] /6*2
  TriggerBottom = [Monitor1Top]  + [Monitor1Height] /6*3
  TriggerLeft   = [Monitor1Left] + [Monitor1Width]  /8*0
  TriggerRight  = [Monitor1Left] + [Monitor1Width]  /8*1
  GridTop       = [Monitor1Top]
  GridBottom    = [Monitor1Top]  + [Monitor1Height] /6*4
  GridLeft      = [Monitor1Left]
  GridRight     = [Monitor1Left] + [Monitor1Width]  /4
[46]
  TriggerTop    = [Monitor1Top]  + [Monitor1Height] /6*2
  TriggerBottom = [Monitor1Top]  + [Monitor1Height] /6*3
  TriggerLeft   = [Monitor1Left] + [Monitor1Width]  /8*1
  TriggerRight  = [Monitor1Left] + [Monitor1Width]  /8*2
  GridTop       = [Monitor1Top]
  GridBottom    = [Monitor1Top]  + [Monitor1Height] /6*4
  GridLeft      = [Monitor1Left]
  GridRight     = [Monitor1Left] + [Monitor1Width]  /3
[38]
  TriggerTop    = [Monitor1Top]  + [Monitor1Height] /6*5
  TriggerBottom = [Monitor1Top]  + [Monitor1Height] /6*6
  TriggerLeft   = [Monitor1Left] + [Monitor1Width]  /8*0
  TriggerRight  = [Monitor1Left] + [Monitor1Width]  /8*1
  GridTop       = [Monitor1Top]  + [Monitor1Height] /6*4
  GridBottom    = [Monitor1Top]  + [Monitor1Height] /6*6
  GridLeft      = [Monitor1Left]
  GridRight     = [Monitor1Left] + [Monitor1Width]  /4
[47]
  TriggerTop    = [Monitor1Top]  + [Monitor1Height] /6*4
  TriggerBottom = [Monitor1Top]  + [Monitor1Height] /6*5
  TriggerLeft   = [Monitor1Left] + [Monitor1Width]  /8*1
  TriggerRight  = [Monitor1Left] + [Monitor1Width]  /8*2
  GridTop       = [Monitor1Top]  + [Monitor1Height] /2
  GridBottom    = [Monitor1Bottom]
  GridLeft      = [Monitor1Left]
  GridRight     = [Monitor1Left] + [Monitor1Width]  /3
[48]
  TriggerTop    = [Monitor1Top]  + [Monitor1Height] /6*5
  TriggerBottom = [Monitor1Top]  + [Monitor1Height] /6*6
  TriggerLeft   = [Monitor1Left] + [Monitor1Width]  /8*1
  TriggerRight  = [Monitor1Left] + [Monitor1Width]  /8*2
  GridTop       = [Monitor1Top]  + [Monitor1Height] /6*4
  GridBottom    = [Monitor1Top]  + [Monitor1Height] /6*6
  GridLeft      = [Monitor1Left]
  GridRight     = [Monitor1Left] + [Monitor1Width]  /3

 

Title: Re: IDEA: drag window to edge automatically resizes it
Post by: Duane27 on February 13, 2009, 05:08 PM
Hi Ron, I only use it with my mouse.  Did you set the options to use the drag mode you prefer?  If you click the title bar towards the left side after setting the options to Use Drag On Window Title Method it should snap kick in.  You can adjust this area on the window's title bar via options Set Title Size.  You can also use your scroll wheel as a button and drag it that way if you prefer.  All this is done via Options which is easily accessible by right clicking the GridMove Tray Icon.  It's a great little app and worth getting familiar with.
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: jgpaiva on February 13, 2009, 05:21 PM
Hi Ron!

Duane explained it very well, it should work as he said. Are you still having trouble? If so, just contact me through PM ;)

@Duane: Cool grid! When you get it finished, post it at the custom grids thread (https://www.donationcoder.com/forum/index.php?topic=9387.0), I'm sure people will like to use your grid ;)
ps: you must have a HUGE screen, some of these elements are really too small for my notebook's screen :)
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: 3of0 on February 13, 2009, 05:36 PM
Duane27 - Yes, I have Use Drag On Window Title method, Use Drag With Middle Button method, and Use Drag Window To Edge method selected under options.  I haven't changed any of the features since installing it, except to use the 2 Part-Vertical Template.  When I drag the window using the left button, it shows the help text and moves the window, but I don't see anything else out of the ordinary.  The middle mouse button doesn't do anything.  And dragging it to any edge of the screen for 3 seconds (even though it's set to .5 seconds) doesn't do anything.

...  hang on a moment.  (plays with a few things and comes back in 5 minutes)

Okies, so it's something a little different.  I use InputDirector (http://www.inputdirector.com/ (http://www.inputdirector.com/)) to allow me to use 1 keyboard and mouse for multiple computer and monitors I have setup.  When I would move the mouse from Computer1 (where my Mouse and Keyboard are plugged into) to Computer2, the inputs were being put into Computer1, sent through the network, and given to Computer2.  GridMove was having problems with this.

When I plugged a physical mouse into Computer2, it worked just as expected and did everything I've been reading GridMove should be doing. :)

The program works Great!  I love it!  The problem here is, I need to be special. :)

It would be nice to have this work, however I won't be using it in my office with the many computers & monitors I have, I'll be using it at home with the few monitors and One computer i have. :)

Again, Great app, thanks! :D
   -- Ron
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: jgpaiva on February 13, 2009, 05:44 PM
:)

Unfortunatelly, I don't really know what's happening there for GridMove not to work with InputDirector. I suppose the program is sending emulated mouse moves/clicks which Autohotkey (the language GridMove is coded with) doesn't recognize. Unfortunatelly, there isn't much I can do.

But at least it works for you at home! (hopefully :P)
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: rex.withers on March 02, 2009, 07:28 PM
FYI GridMove.exe.ini is located here in Windows 7
C:\Users\%username%\AppData\Local\VirtualStore\Program Files\GridMove\GridMove.exe.ini
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: ebennetthill on March 04, 2009, 12:19 PM
I have found a clunky workaround solution to one of my problems with GridMove. I was often grabbing the title bar at the wrong place. i.e. I made the grid appear when I didn't want it or I was grabbing at different spots to get the grid to appear.

Using PowerPro I put two vertical bars across the title bar to mark the "hot" area. Now I know just where to click. There may be a more elegant solution using AHK, but this has made it easy me for me to use GridMove in my preferred mode.
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: jgpaiva on March 04, 2009, 12:46 PM
ebennetthill: that's a really cool solution!

I tried to do something like that with ahk, but it didn't work correctly, the button (I was using a button instead of the bars) kept disappearing of appearing on the wrong window.
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: dforionstar on March 07, 2009, 04:41 PM
I've been using GM for about a year and like it very much.  :Thmbsup:

1) However, sometimes when it is running, I inadvertently click on the Titlebar of a window I did not intend to move (usually a small window) and it gets moved anyway. I can't find a timer to slow this down and am using the LButton Drag option. Because I live on a notebook PC, I usually keep it down to 2 part grid V or H.

2) I am using V. 1.19.26 on XP SP2, is there any need to update, and what has changed?

Thanks! :D
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: tomos on March 09, 2009, 07:40 AM
I have NOT ;D read this thread so apologies if already covered

from another thread, I explained I used Winkey+G to activiate grids
Reply from cmpm

Thanks tomos, I had to add ^ to Winkey plus g.
Making it ctrl-WinKey-g + #
It didn't work with wk+g and numbers

just thought I'd report it here
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: jgpaiva on March 09, 2009, 02:58 PM
Tomos and cmpm: I suppose there was some other application using win+#, and gridmove was not able to capture the hotkeys..
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: Gordhan on June 07, 2009, 03:58 PM
Hi,

I've been using GridMove for a few days and like it a lot! Thanks for making such a useful program free  :)
I have one observation...I'd like to see a mode whereby I drag a window into a grid space already occupied by another window, and the window below automatically occupies the grid space left by the moved window. In effect, swapping windows with one move. Would that be possible? Sorry if it already is--I can't seem to find it.

Best
Gordhan
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: jgpaiva on June 07, 2009, 04:56 PM
Hi Gordhan!

If I recall correctly, there's a GridMove plugin to do just that. Even though it doesn't work exactly as you are asking, I think it might serve you well.
I thought this was included in the default GridMove package, but apparently it is not.
Unfortunatelly, my laptop's hdd has died recently, and I have only the backups of GridMove's stuff at my parents'. I'll see if I can find that plugin ;)
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: Gordhan on June 09, 2009, 11:06 AM
Thanks and I look forward to trying that out jgpaiva!  :Thmbsup:
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: Korbi on June 18, 2009, 02:29 AM
Hi!
I am new to the forum but not new to gridmove. I ve been using it for more than 1 year now. Thanks for this great app!!!
But now I got a tablet-pc and there seem to be some problems with gridmove. I simple cant get gridmove to work, when i am using the pen as an input device. Since I am running windows 7, there is allready aerosnap implemented, so "dragging to the edge" doesnt work. But when I click a window in the title area to resize it, nothing happens. (using a mouse it works, but the grid "flickers".)

There are basically 3 possible error-sources:
a) I am running windows 7
b) My screen is rotateable, so the resolution changes, while gridmove runs
c) The pen

I hope someone can help me solving the problem. (Actually if AeroSnap would be a little more configurable that would work too)

Greetz

Korbi

EDIT: I just figured out how to disable the snap feature on win7, but it didnt amke much of a change: pen still isnt working (even with the move to edge methode. so i figure gridmove doesnt recognise the pen as a mouse or something like that...)
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: jgpaiva on June 18, 2009, 04:48 AM
Hi Korbi!

I don't have windows 7 to test this, but I've used it under Vista Tablet and noticed the same problem.
I think the pen isn't identified as a mouse and thus GridMove can't work :(
Unfortunatelly, I have no idea how to sort this problem..

(the resolution problem can be sorted by clicking "reload" or "restart" on gridmove's menu each time you change resolution)
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: Korbi on June 18, 2009, 04:57 AM
Hi Korbi!

I don't have windows 7 to test this, but I've used it under Vista Tablet and noticed the same problem.
I think the pen isn't identified as a mouse and thus GridMove can't work :(
Unfortunatelly, I have no idea how to sort this problem..

(the resolution problem can be sorted by clicking "reload" or "restart" on gridmove's menu each time you change resolution)
OK, thanks for the quick answer. Thats sad. I really loved this app, but without pen support its not useable on my tablet. Hopefully a solution for this problem will be found...
(or the build in feature in win7 gets configurable)
Greetings
Korbi
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: Korbi on June 23, 2009, 01:42 PM
Hi Korbi!

I don't have windows 7 to test this, but I've used it under Vista Tablet and noticed the same problem.
I think the pen isn't identified as a mouse and thus GridMove can't work :(
Unfortunatelly, I have no idea how to sort this problem..

(the resolution problem can be sorted by clicking "reload" or "restart" on gridmove's menu each time you change resolution)
OK, thanks for the quick answer. Thats sad. I really loved this app, but without pen support its not useable on my tablet. Hopefully a solution for this problem will be found...
(or the build in feature in win7 gets configurable)
Greetings
Korbi
lts just been few days, but I miss gridmove already very much...
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: Gordhan on July 06, 2009, 03:38 AM
Hi jpgpaiva
GridMove is now one of my must-have programs! Just wondering if you could locate that plugin you mentioned?  :)
Best
Gordhan
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: jgpaiva on July 07, 2009, 10:04 AM
Hi Gordhan!

Actually, I'm not the author of the plugin, thus, I don't have its source code.
Still, It works pretty well, I've attached the executable to this post ;)

João
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: tmuka on July 07, 2009, 10:26 AM
I don't think GridMove supports maximize to a specific monitor yet? This would be very useful to me.

I use GridMove as a "poor mans Nvidia desktop tools" since the Nvidia tools are 100% unstable for me. This means I have to manually resize windows if I want them to span both my monitors. With GridMove I can easily make a grid item that sizes a window so that it fills both monitors, very nice.

I can make two items in the grid that resizes a window to the respective screensizes but "true" maximize removes a bit of the window edge, which I like.

I didn't see this in the documentation, but anyone know of a way to "Maximize" to a specific monitor yet?  I'm currently using screen edges coordinates, but it'd be nice to have a true maximize.

thanks!
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: jgpaiva on July 07, 2009, 10:53 AM
tmuka:
There's only a way to maximize to the screen where the mouse is.
See the EdgeGrid.grid file for an example of how to use it. You can find it in grid element 26.
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: tmuka on July 07, 2009, 11:06 AM
tmuka:
There's only a way to maximize to the screen where the mouse is.
See the EdgeGrid.grid file for an example of how to use it. You can find it in grid element 26.

thanks for the info, jgpaiva!
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: cavie on July 16, 2009, 10:20 AM
Hi,

I used to use Gridmove on a lcd monitor (1280x1024 resolution) and it works fine.  However, after switching to another monitor (1600x900 resolution), it does not work anymore.  The icon does not respond to right click anymore.  Any idea whether gridmove only work on some standard resolution? I dun run gridmove frequently, hence not sure if gridmove also depends on some dll etc, which might be affected by some software installation recently.  Thanks in advance.

Problem solved :) , due to advanced text services in Compatibility
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: Gordhan on July 17, 2009, 12:00 PM
Hey João
Sorry for the late reply and, thanks for the plugin. It does work, but the implementation is rather awkward--I would have to navigate to the plugin and activate it each time I want to be able to exchange windows  :(. Would it be possible to build this function into GridMove itself, so that we have an "Exchange Active Window Mode"? That would be great  :). I realise you may not think it worth doing, of course!
Thanks
Gordhan
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: Gordhan on July 17, 2009, 12:06 PM
Ah okay--simple workaround--just placed a shortcut to the plugin in the Quick Launch Toolbar. So now, I can exchange windows in 2 clicks  :Thmbsup: This will do till you make that new version of GridMove  :D
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: jgpaiva on July 17, 2009, 04:58 PM
Oh, I didn't understand your problem the first time..
Actually, GridMove already had that 'reload on resolution change' mode, but unfortunately, it kept reloading without changes in the resolution, it became more annoying than useful!

Good solution, Gordhan ;)

Sorry, got confused!
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: Gordhan on July 18, 2009, 11:23 AM
Hi Joao,
I don't know what 'reload on resolution change' means  :huh:. What I want is actually very simple. Imagine that my desktop is set up for a Gridmove template of 2-part vertical. I have one window occupying left part A and one window occupying the right part, B. Now when I drag, say, the window from part A to the space occupied by part B, by dragging on its title bar and dropping, I would like the window in part B--instead of being covered up by the incoming window-- to automatically switch to and occupy Part A. It's basically just exchanging window positions in one move. Is it possible to create this option? The plugin isn't really a good solution I'm afraid :-(
Gordhan
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: jgpaiva on July 18, 2009, 11:45 AM
Oh Gordhan.. I misread what you said, got confused with cavie's post!

Yes, I understand what you mean, but unfortunately I don't have time to implement it..
The way I meant for you to use the plugin was to call it from a grid element..

Try placing the executable in the plugins folder, then using the grid I attached to this post.
(just place it in the grids/ folder and select it from the menu ;) ).

This grid will allow you to place windows vertically, and using the 2 grid elements on the top, you can swap windows. It still needs one extra click, but I guess it should be a bit better :)
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: Gordhan on July 19, 2009, 12:15 PM
João

That's better for sure!! Thanks a ton for your time and trouble!!  :Thmbsup: :)

Gordhan
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: jgpaiva on July 19, 2009, 12:56 PM
João

That's better for sure!! Thanks a ton for your time and trouble!!  :Thmbsup: :)

Gordhan
Glad to know that! ;)
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: ZippyDan on September 23, 2009, 05:27 PM
hi!  i joined this forum just to ask you to please please please make gridmove compatible with Windows 7!

with gridmove running, i don't actually see anything on the desktop :-(
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: jgpaiva on September 23, 2009, 09:01 PM
Hi ZippyDan.

I haven't tried gridmove under windows 7, but it should work as it does with Vista..
I'll give it a go to see how it behaves with me.
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: ZippyDan on September 24, 2009, 08:50 AM
muito obrigado

edit: btw i did try to run it in Windows XP compatibility mode and as Administrator with no success

edit2: ok, actually it does work, at least somewhat.  i'm not sure how it is supposed to work.  if i hold a window at the edge of the screen for about 4 seconds, a yellow grid will appear with yellow numbers everywhere.  i can then move the window around the grid, but i can't figure out any relationship between the grid lines, numbers, and the resulting position of the window.  perhaps i should rtfm :-)
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: andonevris on November 16, 2009, 01:53 PM
Hi

I have just started using gridmove on windows 7, I actually started using it so I could keep the right side of my 2nd monitor free for my gadgets ala vista sidebar style, which it works well for.  On using it more I actually much prefer it to the built in windows 7 aero snap, namely because it has proper multimonitor support and I can arrange windows side by side on a single monitor without using the keyboard.

The only thing missing from this program IMO is the undocking functionality windows 7 has in its own aero snap. Namely if I dock a window to the side with aero snap as soon as I undock it returns to its former size. With gridmove it stays the same size so I have to manually resize.

Is there any chance this functionality could be added? It would make this a really perfect little app if it could be done

Here's Hoping  :)
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: jgpaiva on November 16, 2009, 02:06 PM
Hi

I have just started using gridmove on windows 7, I actually started using it so I could keep the right side of my 2nd monitor free for my gadgets ala vista sidebar style, which it works well for.  On using it more I actually much prefer it to the built in windows 7 aero snap, namely because it has proper multimonitor support and I can arrange windows side by side on a single monitor without using the keyboard.

The only thing missing from this program IMO is the undocking functionality windows 7 has in its own aero snap. Namely if I dock a window to the side with aero snap as soon as I undock it returns to its former size. With gridmove it stays the same size so I have to manually resize.

Is there any chance this functionality could be added? It would make this a really perfect little app if it could be done

Here's Hoping  :)
Hi andonevris!

Yes, I can relate to your problem, I think aero snap is really neatly implemented, but it's part of the Operating System. It'd be much more difficult for GridMove to do the same, and I currently really have no way of implementing it in a reasonable time.

I'm not sure how much of GridMove you can use, but if you can edit the grid, you can edit a "Restore" grid element with the size of the whole screen. It doesn't get you the same behavior as aero snap, but it can be seen as a workaround, I think.

Here's the element you should add: (notice: replace '4' with the number of the last grid element + 1, and don't forget to add one to the numberofgroups parameter!)
[4]

  TriggerTop   = [Monitor1Top]
  TriggerLeft  = [Monitor1Left]
  TriggerBottom= [Monitor1Bottom]
  TriggerRight = [Monitor1Right]
 
  GridTop   = Restore
  GridLeft  = Restore
  GridBottom= Restore
  GridRight = Restore
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: andonevris on November 16, 2009, 02:22 PM
Wow thanks for such a quick reply!

I see what you're saying regarding aero snap being part of the OS.

I've only just started playing with grids and wasn't aware there even was a restore grid element.  I'll give your solution a go

All the best

 :up:
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: empyrean on November 23, 2009, 04:45 PM
Thanks for a very nice app.  From time to time the grid appears when I'm not expecting (and don't want) it.  I'm not sure what I'm doing to cause his (I'm always surprised when it happens).  I think I'm just moving the mouse with no buttons or keys pressed.  I unchecked Fast Move, but that didn't help.  Sometimes typing ESC cancels the grid; sometimes I have to find Undo in the grid and click that.  I'm using the 2 Part-Vertical template on Vista with two monitors.  Is there a way to prevent this from happening.  First six options checked; also Use Command.  V1.19.59.
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: jgpaiva on November 23, 2009, 04:47 PM
Now that's surprising, empyrean. Are you sure you were not dragging a window to the edge of the screen or didn't click middle mouse button?
Those are other ways of activating the grid.
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: empyrean on November 24, 2009, 02:26 PM
Thanks.  No, not dragging.  Just moving the mouse (perhaps quickly).  Nothing pressed.  I have a Logitech VX Revolution wireless mouse with two main buttons, a scroll wheel and some auxiliary buttons (all mapped to defaults); no middle button.  There's also a Synaptics pointing device (laptop), but I cover that up.

I can't reproduce the problem at will; it just happens when I'm not expecting it.

If you can't think of a feature that might cause this, maybe it's my mouse.  Sometimes it loses its place when I'm selecting text, so maybe the wireless is sending bogus signals occasionally.
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: jgpaiva on November 24, 2009, 05:51 PM
I honestly haven't observed that behaviour.. Maybe someone else has noticed the same problem and can provide more details.
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: SweVictor on January 07, 2010, 11:24 AM
Hi

I have just started using gridmove on windows 7, I actually started using it so I could keep the right side of my 2nd monitor free for my gadgets ala vista sidebar style, which it works well for.  On using it more I actually much prefer it to the built in windows 7 aero snap, namely because it has proper multimonitor support and I can arrange windows side by side on a single monitor without using the keyboard.

The only thing missing from this program IMO is the undocking functionality windows 7 has in its own aero snap. Namely if I dock a window to the side with aero snap as soon as I undock it returns to its former size. With gridmove it stays the same size so I have to manually resize.

Is there any chance this functionality could be added? It would make this a really perfect little app if it could be done

Here's Hoping  :)
Hi andonevris!

Yes, I can relate to your problem, I think aero snap is really neatly implemented, but it's part of the Operating System. It'd be much more difficult for GridMove to do the same, and I currently really have no way of implementing it in a reasonable time.

I'm not sure how much of GridMove you can use, but if you can edit the grid, you can edit a "Restore" grid element with the size of the whole screen. It doesn't get you the same behavior as aero snap, but it can be seen as a workaround, I think.

Hi all!

I just found and downloaded this fantastic program today and of course went right to the contructing new grids part. I must say I dont really agree that the feature requested by andonevris would be a good thing... Since the possibilities are so much greater with the GridMove than with Windows 7 snap, I think the most common thing one wants to do is move the window, but retain the fixed size. To me it is good as it is!

However, I do have one (a little bit) related idea/request and one not at all related :)

#1: The concept of "smart fields" is fantastic I think, especially the possibility to maximize height and width separately. However, since you set the other values to WindowWidth and WindowHeight respectively I think you get some drawbacks... While the keyboard command works as "expected" the mouse action moves the window depending on the cursor position. I would very much like to be able to set GridTop = OldGridTop and GridBottom = OldGridBottom instead. Or maybe the possibility to omit the values or just leave them blank for "no change"? Just a thought! (and a more advanced one - when the value is omitted the underlying trigger sets that value.. I realize that's not at all easy, but it would make it very easy to specify advanced grid using columns and rows separately ;)  )

#2: Variables. Some kind of varible handling would be just wonderful! (that would actually solve #1 as well since you could specify one with the old value). The reason I would like this is when you make advanced grids with padding between the cells it gets very cumbersome to write everything all the time. Something like:
%cellTop% = [Monitor1Top] + 60 + ([Monitor1Bottom] - [Monitor1Top] - 90) /2 + 10
[GridTop] = %cellTop% + 5
[GridBottom] = %cellTop% + 20
for example would be very, very nice.

And even if nothing of that ever happens it is still a GREAT program!

Good work!
/Victor
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: jgpaiva on January 07, 2010, 12:11 PM
Hi Viktor!

Regarding #1, the intention really is to have the mouse select the place where you'd like to vertically/horizontally maximize the window, if you'd like to have only vertical maximize in the current position of the window, you can just use a plugin to do it, a simple program that moves the window to the desired dimensions. If no one else dos this, I may have some time to do it this weekend, if that's you request.

Regarding #2, I do understand how useful it would be to have that feature. However, I think that would involve writing a new method for reading the .grid files, which I really have no time to do :(
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: SweVictor on January 07, 2010, 03:10 PM
Hi Victor!

Regarding #1, the intention really is to have the mouse select the place where you'd like to vertically/horizontally maximize the window, if you'd like to have only vertical maximize in the current position of the window, you can just use a plugin to do it, a simple program that moves the window to the desired dimensions. If no one else dos this, I may have some time to do it this weekend, if that's you request.

Regarding #2, I do understand how useful it would be to have that feature. However, I think that would involve writing a new method for reading the .grid files, which I really have no time to do :(

Hi!
Being a coder myself I certainly can relate to how much time things take and realize that including variables would be a change that might require a rethink of the basic structure.

And for #1 - A program that only maximizes a window horizontally or vertically would, I think, would  be of limited functionality - I just personally think that the current behaviour (that it follows the mouse on one axis) is quite counterintuitive since each grid is specified so strictly. What however would be more useful would be the ability to omit a value (which would then not change). For example it would be possible to make a "change" control with functions like "expand/move" one cell left, stretch to top/bottom etc. And to be clear - this is not anything i really "need", i just think it would be really nice to have it!

Finally a quick question - is it possible to add labels in some way? I know that text show up for specific functions and external programs but is it possible to just add a label?

Thanks
/Victor
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: jgpaiva on January 07, 2010, 06:37 PM
I'm sorry, I really think I'm not following what you mean with #1 :(

No, currently there's no way to add labels. To be honest, though, that wouldn't be very hard to add. I'll add it to my todo list (along with this (https://www.donationcoder.com/forum/index.php?topic=19803.msg176344#msg176344) and this (https://www.donationcoder.com/forum/index.php?topic=9607.msg189991#msg189991)).
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: SweVictor on January 07, 2010, 08:24 PM
For #1:

Say you have the active window @ (t,l,b,r) = (50,100,150,200)
You drag it to the "extend left" cell which has the code
[GridLeft] = 0
GridTop, GridBottom and GridRight are all not there (or maybe "GridTop = " or "GridTop = current" or sth (same for the other two))

The behaviour I am looking for is "when value is not set, use current".

When the code above is carried out the new coords would be (t,l,b,r) = (50,0,150,200) - it will have extended left

/Victor
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: jgpaiva on January 08, 2010, 08:43 AM
oh, ok. I see what you mean. That might not be too hard to do, I'll add it to the todo list ;)
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: SweVictor on January 08, 2010, 08:51 AM
thanks =)

And thanks again for the program in general :D

I have an ambitious grid-making project going on right now, i'll post in the other forum when it's done. Part 1 (the easy part) of 4 or 5 or so is done :)


Although... It might take a while since I'm actually supposed to study for some exams ;)

/Victor
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: jgpaiva on January 10, 2010, 01:40 PM
And.. There we go, a new update!

Ok, I've added support for using user profiles for settings (https://www.donationcoder.com/forum/index.php?topic=19803.msg176344#msg176344) and a new grid (https://www.donationcoder.com/forum/index.php?topic=9387.msg181005#msg181005). I've also added the new DCUpdater helper.

Victor: I've added the feature you requested, with a small change: instead of leaving the field empty, you need to specify it as "Current". I'm leaving the empty field for a future feature where it'll use the corresponding trigger as grid value, that way making the "introduction to grid making" way easier since you'd only have to specify part of the grid.

Hope you like it! You may get it at the usual place (http://jgpaiva.dcmembers.com/gridmove.html) or through DCUpdater ;)

[edit] Sorry, forgot to say, gridmove will by default use the .ini file in gridmove' directory, if it exists. If it does not, it'll create the ini file in the appdata folder. Thus, if you want to have the former behaviour, delete the .ini file and restart gridmove! [/edit]
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: jgpaiva on January 10, 2010, 04:24 PM
And there we go.. A new update.

This includes the non-upx-compressed executable, to avoid problems with antiviruses.
Also, now you can create grids without specifying the "Grid" part (it'll default to the same value as the corresponding "Trigger" part), making it way easier to define simple grids.
See the 2-part, 3-part and 4-part grids as examples!

(and here's a simple example:)

[groups]
NumberOfGroups = 2

[1]

  TriggerTop   = [Monitor1Top]
  TriggerLeft  = [Monitor1Left]
  TriggerBottom= [Monitor1Top] + [Monitor1Height] /2
  TriggerRight = [Monitor1Right]
 

[2]

  TriggerTop   = [Monitor1Top] + [Monitor1Height] /2
  TriggerLeft  = [Monitor1Left]
  TriggerBottom= [Monitor1Bottom]
  TriggerRight = [Monitor1Right]


Title: Re: IDEA: drag window to edge automatically resizes it
Post by: SweVictor on January 10, 2010, 05:54 PM
Very nice  :Thmbsup: and (maybe apart from separate user profiles), im guessing, pretty simple change!

To me, the ability to set "current" is a very welcome addition and to many i think that the ability to omit the Grid section altogether also is welcome. I right now prefer the "miniview" type of triggers, but it is still nice to be able to build the trigger grid first and simply wait with the main grid for later.

Thanks!
/Victor
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: filpee on January 11, 2010, 09:56 PM
Been using Gridview on Vista for a few months now and have really liked it.

Upgraded to windows7 and now I'm having an issue.
Everytime it starts I get the "As this is GridMove's first run, you'll get some help in the form of tooltips." message. I have closed it through the tray menu but this doesnt seem to fix it.

It also does not remember the last grid I used. I could just delete all the grids that I am not using but that is not the point.

Any ideas?
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: jgpaiva on January 12, 2010, 04:13 AM
Hi plipee!

Have you tried the most recent version of GridMove? (released the day before yesterday)
If that doesn't solve it, then I'll have to try it myself under Windows7.

[edit] That happens to you because GridMove isn't able to read the setting from its ini file, which is created on first run. The new version of GridMove stores the ini file in a different place, thus, it should work under Windows 7. [/edit]
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: TheSunbird on January 12, 2010, 02:23 PM
As this is GridMove's first run, you'll get some help in the form of tooltips.
Im using GridMove V1.19.61 on WinXP Sp3 and get the same issue.
If i select Options->ShowNumbersOnGrid GridMove even restarts itsself and shows the quoted sentence again. :(
Furthermore my selected Grid and the other options are lost if it restarts. :(

Maybe it's the ini file as mentioned by jgpaiva. In my installdirectory, there isn't an ini file - and has never been created during install.
How can I fix that? Any suggestions?
Help would be appreciated, because GridMove is awsome!  :Thmbsup:
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: jgpaiva on January 12, 2010, 02:43 PM
Apparently there's a serious problem with the most recent version, I see.
Could any of you try to find if there's a gridmove.exe.ini file in c:/documents and settings/<your username>/application data/donationcoder/gridmove ?
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: SweVictor on January 12, 2010, 03:32 PM
My guess is that it is due to UAC (User Access Control) in Win Vista and Win 7. If you have problems i suggest right-clicking and choose "Run as administrator" when you want to make any changes. This means that the program will have access to write to files in different directories. If the ini is really located in the documents and settings path it _should_ work anyway though...

Give it a go anyway! (Since i dont have the problem I might be far off though ;)  )
/Victor
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: TheSunbird on January 12, 2010, 03:35 PM
Could any of you try to find if there's a gridmove.exe.ini file in c:/documents and settings/<your username>/application data/donationcoder/gridmove ?

The following path missing at all: "donationcoder/gridmove"
I searched my computer for "gridmove.exe.ini" and didn't get any results.

Hope, this information could help you.
By further questions I try to provide you help - if I can do so!  ;)

My guess is that it is due to UAC (User Access Control) in Win Vista and Win 7.
As mentioned above, i have WinXP SP3 - so no UAC.  8)
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: jgpaiva on January 12, 2010, 04:27 PM
SweVictor: GridMove should work with UAC ON, I'm all for it, and really want it to work like that. I'll have to give it a better look.

TheSunbird: are you running on a guest account?
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: jgpaiva on January 12, 2010, 04:41 PM
Ok guys, I figured it out.. Should come up with a solution real soon.
Meanwhile, to solve it, you only need to create the folder I mentioned (c:/documents and settings/<your username>/application data/donationcoder/gridmove) and GridMove should work.

[edit] actualy, you only need to create the c:/documents and settings/<your username>/application data/donationcoder/ folder, apparently gridmove isn't creating that specific folder. [/edit]
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: filpee on January 12, 2010, 05:40 PM
Ok guys, I figured it out.. Should come up with a solution real soon.
Meanwhile, to solve it, you only need to create the folder I mentioned (c:/documents and settings/<your username>/application data/donationcoder/gridmove) and GridMove should work.

[edit] actualy, you only need to create the c:/documents and settings/<your username>/application data/donationcoder/ folder, apparently gridmove isn't creating that specific folder. [/edit]

In windows 7 on my laptop this folder is actually at "C:\Users\<your username>\AppData\Roaming\donationcoder\gridmove".
Thanks for the quick reply jgpaiva this has fixed the issue.
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: jgpaiva on January 12, 2010, 06:32 PM
Ok, I have just uploaded a new version which fixes the issues on the previous posts, everything should be ok now.
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: jgpaiva on January 12, 2010, 07:34 PM
Hmm, I just tried GridMove under windows 7, and found that unfortunatelly it must be ran with compatibility with windows XP, in order to be able to move some windows (one example being Windows Live Messenger) :(
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: SweVictor on January 13, 2010, 02:05 PM
I just want to say that I second that it does not move Windows Live Messenger for example (Win 7). Compatibility mode did not solve the problem for me though (tried XP SP3 and 2000).

/Victor
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: TheSunbird on January 13, 2010, 04:32 PM
TheSunbird: are you running on a guest account?
No, I run GridMove as an administrator.

Creating the two folders helped me out, cause GridMove now created the ini file. :)
Now, it's possible to run GridMove without the described problems.

[edit]
Just installed the new version!
Problems disappeared!  :Thmbsup:
[/edit]

Greetz and thanks for the fast help!
I keep on watching this thread to help if necessary. :)
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: jgpaiva on January 14, 2010, 04:42 AM
Victor: You need to run gridmove as administrator in win7 for it to work with those windows :(
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: SweVictor on January 14, 2010, 06:28 AM
Hmm... Does not work for me as admin either... Nor with compatibility mode nor any combination i have found  :huh:

/Victor
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: jgpaiva on January 14, 2010, 09:57 AM
That's really strange, Victor. Unfortunately from my testing, it works under my friend's win7, thus there's not much more I can do... Can you provide more details?
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: SweVictor on January 14, 2010, 10:51 AM
I sure understand that... I have the same behaviour on both my Win 7 computers (one 32bit and one 64bit). I am though going to install a new computer later this week so i can check everything again with the newest version of all programs. I'll get back on this.

And deatails, well... Nothing really happens (apart from normal drag action) when grabbing close to the top left corner and the edge method does not work either. Other windows (like firefox) work well though... Apart from msn things like the calculator and the "run" dialog does not work. Control panel and most other windows work though AND Msn Live Messenger in fullscreen mode!!!

/Victor
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: jgpaiva on January 14, 2010, 04:54 PM
What you are describing is similar to what I have observed on my friend's windows 7, however, after I enabled admin mode, it went away. In order not to clutter the thread with this, maybe we should solve it through PM and then post the result here, ok?
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: rachelm920 on March 10, 2010, 01:30 PM
Hi. I downloaded GridMove V1.19.62 today to my Windows XP Pro PC (since I love the snap feature on my Win7 PC). I cannot get it to work!! I see it in the taskbar but I do not see any grids on my desktop and when I drag a window it does nothing!! I've rebooted, tried different grids, turned options off and on.. nothing  :(

I was thinking maybe there's a conflict with a cpl other customization softwares I use...
Stardock WindowBlinds and Stardock Fences (free version)

Any ideas??
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: jgpaiva on March 11, 2010, 02:07 AM
Hi Rachel,

Sorry that's happening. There should be no problem in windows XP, I think. Could you try pressing windows key and 'g' at the same time to see if the grid comes up?
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: rachelm920 on March 11, 2010, 01:13 PM
Hi Rachel,

Sorry that's happening. There should be no problem in windows XP, I think. Could you try pressing windows key and 'g' at the same time to see if the grid comes up?

I do see the grid when I hit the Windows key and G, but when I drag a window into it, it doesn't do anything. Then the grid goes away after about 30 seconds. Isn't it supposed to automatically make it the size of the grid? I'm trying the 2 part vertical template.
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: jgpaiva on March 13, 2010, 11:45 AM
If the grid comes up when you press win+g, then it should be working. When you press win+g, you can move a window by typing the number of the grid you want the window to move to.
As for the grid not appearing then you drag... Could you try dragging the window close to the left icon, or trying dragging it with the middle mouse button?
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: helloall on March 25, 2010, 09:21 PM
Hello all :)

today i found out about GridMove. Such an awesome tool! Far better than all other similar tools i´ve tested. I´ll definitly give it a try in my all day use starting tomorrow...

I ran into a small "bug" (Using Windows 7):

When you grab the TitleBar a bit lower, the edge detection does not get fired? I noticed that this happens quite often for me. It´s definitly not an random issue, it´s fully reproducible. (see video)
(I even disabled the automatic built-in Windows-Snapping of Windows 7 (Aero Snap) to be sure that it´s not a conflict between both functions. So the video was taken with Aero Snap disabled)

I made a Screencast of the problem (.mov H264):
http://www.file-upload.net/download-2379643/gridmove_grab_window_too_low.mov.html

Thanks for any reply. If you need the video in some other format to play it, just tell me.

Greetings and many thanks again! :)
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: jgpaiva on March 26, 2010, 06:33 AM
Hi!

I can see what you mean.
GridMove was originally designed for win XP, and apparently windows 7 behaves a bit differently from xp with the title bar height.
When I have some time, I'll look into it.
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: helloall on March 26, 2010, 10:10 AM
Hi,

thanks for your reply :) Good news...
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: helloall on April 11, 2010, 02:25 PM
I´m using GridMove for some Weeks now and i´m really happy with it while using 2 LCD displays.

No major problems beside the already mentioned "TitleBar height problem" which happens in about 40% of my usage. (It´s not that annoying, but i would love too see it fixed some time.)

Donated you some Bucks! :)

Greetings
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: gockel on April 28, 2010, 12:51 PM
Hi jgpaiva,

First of all many thanks for this nifty app, it really helps me to do some cross-reading and when comparing some content on the large screen with exactly equal-sized windows.

Since I quite like the functions and the possibility to create-your-own-template, I was wondering if I could also use it at work, but the license type obviously does not allow that. So is there any way to get an approval to use it in an office environment? The purpose (at least in my case) would be restricted to using it on the desktop PC, not to implement parts or all of the app in a commercial software or the like.

I am not sure this is the proper place to ask this question, but then again I could not find any suitable way of contacting the author. Apologies if I misbehave here with my first post ever.

Cheers
-gockel
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: helloall on May 12, 2010, 08:19 PM
It´s very quiet in here? :D
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: cranioscopical on May 12, 2010, 08:24 PM
It´s very quiet in here?
Well, Hello! It's nice to see you posting, at least.
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: jgpaiva on May 13, 2010, 04:12 AM
Hi.

I'm sorry, but I have absolutely no time to keep GridMove up to date.
I've looked into the problem you mentioned, but apparently it's related to windows 7 protecting GridMove from accessing other windows. If you're interested in looking into it, I can tell you what you can try.

You may install autohotkey (http://www.autohotkey.com/), download the source code for gridmove (http://jgpaiva.dcmembers.com/CS/GridMove/GridMove.zip) and edit the "GridMoveP1.ahk" file by right-clicking it.

At the beginning of the file, there's this line:
  CaptionSize += BorderSize
This sets that height to '24' (at least in my computer). You can set it to a larger value this way:
  CaptionSize := 50

Unfortunately, in my computer this still doesn't fix it, gridmove doesn't grab the mouse. Maybe if you compile the script and run it as administrator it might get fixed, but I'm not really sure and I don't understand enough of windows 7 to be able to fix it.

Sorry

(I have returned your DC credits since I couldn't really fix the problem)
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: helloall on May 13, 2010, 09:29 AM
Hey man,

thanks for your reply. I hope there is no serious trouble going on in your life.


I looked in the source some weeks ago and i speculated that this line has to do with the problem, but i was afraid of not understanding the autohotkey stuff. : D

Thanks for telling me that it´s very easy to edit it.
I set it to "35" now and compiled it by rightclicking "GridMoveP1.ahk"

Guess what:
It SEEMS the problem is fixed. Will try in allday use and post here. :)

I´m irritated a little bit that the new .exe file is only 216kb since your .exe was 450kb?
Why? Is that something to be worried about?


The donation wasn´t ment to be money for fixing the problem. It was for GridMove itself, since i use it every day.
Redonated it, please keep it!

Hope to see you back on your nice project one day.
Private things come first.


Best wishes and thank you

helloall
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: jgpaiva on May 13, 2010, 09:33 AM
thanks for your reply. I hope there is no serious trouble going on in your life.
No, no problem. I'm just getting my PhD and it's been crazy with work lately.

It SEEMS the problem is fixed. Will try in allday use and post here. :)
If it solved for a few windows, then it probably got solved for all windows, great!

I´m irritated a little bit that the new .exe file is only 216kb since your .exe was 450kb?
Why? Is that something to be worried about?
No worries, that's because I compile it without compressing the executable so it's less provable that it'll get flagged by antiviruses.

The donation wasn´t ment to be money for fixing the problem. It was for GridMove itself, since i used it every day.
Redonated it, please keep it!
Thanks  :D
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: helloall on May 13, 2010, 09:37 AM
Well, good to hear.

Good luck for you PhD!  :)
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: helloall on May 14, 2010, 04:43 AM
You can now find "GridMove 7 Lite Portable"  (Windows 7 custom version) here:

https://www.donationcoder.com/forum/index.php?topic=22739

 :)
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: krusader23 on June 19, 2010, 07:43 AM
Hi,
the 1.19.62 latest version doesn't work for me:
- the program installs normally, but after this the welcome window (with two bars) hangs and I have to kill the window process using the taskmanager
- the GridMove icon is present in the taskbar however you can't click on it in any way (the menu doesn't appear)
- I've also tried to move the windows to the edges of the screen and no grid appears
- furthermore, the WIN+G screen also doesn't work (it opens firefox - the default browser)
Fortunately helloall posted the portable version of the software, which (except that the WIN+G key still opens firefox) works great ;)
I've tried running GridMove on my two PC's (Windows XP SP3 and Windows XP Tablet Edition 2005) and it doesn't work on both.
I think it probably has to do sth with the current version. I would suggest adding some older versions of the software in the download section on the program's site, so if sth doesn't work, you could always test the older version (I've looked for the older version, but apparently all the external download sites redirect direclty (;) ) to jgpaiva site.

Regards
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: helloall on June 19, 2010, 08:58 PM
Have you tried to delete the settings in your user folder?

The normal version of Gridmove stores the settings in a folder like this by default:

C:\Users\YourUserName\AppData\Roaming\DonationCoder
(Path can differ based on your OS. Mine is Win7)

Try to delete that "DonationCoder" folder and then try a fresh install of the normal GridMove version.

Don´t know if it helps since you tried it on two computers, but you can still try...
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: krusader23 on June 20, 2010, 07:11 AM
Yes, I've tried it, when I delete the file nothing changes. If you run the program after deleting, the welcome bar appears again and the program hangs. When you run the program again, the taskbar icon is present, but you can't click on in in any way. (after the deletion of the DonationCoder folder GridMove behaves as if it was a fresh install).
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: Halbyrd on July 19, 2010, 03:04 PM
Great program; it's saved me tons of hassle. One weird issue I'm running into lately though:

I run a dual widescreen setup, and have made a custom grid to suit my idiosyncratic needs. Problem is, GridMove is putting the grids for monitor 1 on monitor 2 and vice versa. I've checked and double-checked my settings; the monitors are identifying themselves correctly in the video card drivers, and Windows has them properly assigned. Is there any other reason why it would behave like this?

System details follow:
Windows 7 Enterprise 64-bit
AMD Phenom II X4 910
4GB RAM
NVidia GeForce GTX 465, Forceware 258.96
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: geraldzjh on July 20, 2010, 12:16 AM
Hi all, new guys for this forum.
The application Gridmove is great!
Just one problem regarding this application. I don't know anyone here can answer it.
When I use the fuction of "Always on top", It works all right. But I want to know how I can restore it to normal, I mean how can I restore the function so that the window will NOT stay on top any more?
It seems the windows will stay on top forever and cannot restore to normal...unless I close it and re-open it.
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: jgpaiva on July 20, 2010, 07:05 AM
Halbyrd: could you send me the grid and describe the behaviour you were expecting?

geraldzjh: using always on top again should work, it is supposed to "toggle always on top".
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: Halbyrd on July 20, 2010, 12:44 PM
jgpaiva: grid file is attached, though it displays this misbehavior with every grid I've tried. Basically, it acts like my monitors are flipped, so grids for monitor 1 show up on monitor 2, and grids for monitor 2 show up on monitor 1. I haven't had this problem until just recently, when I switched to a NVidia video card.  The example grid I've attached is set up for a 2x(1680x1050) desktop, side by side. I use the Win+G hotkey to relocate windows; all mouse activation is disabled in GridMove's options, so it won't conflict with Aero Snap.
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: jgpaiva on July 20, 2010, 01:00 PM
Oh... That is completely new to me, I've never seen it happen :(
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: geraldzjh on July 20, 2010, 07:53 PM
That's great! Thanks jgpaiva!
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: prnd321 on August 04, 2010, 10:37 PM
I'm currently using 'twinsplay'. It's very simple - only provides two vertical zones, but it's effective by using the hotkeys. I will search for better programs but now I feel good enough. You may have a try with it.
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: Halbyrd on August 19, 2010, 09:52 PM
Update: found a solution, and possibly some insight into the nature of the problem.

The way I had things set up, I had my primary display plugged into the "second" DVI port on my video card (as if these things are labeled :shrug:). GridMove apparently wasn't looking at what monitors Windows was treating as "primary", "secondary", and so on, it was looking at which physical port the display was plugged into.  Swapping the cables and restarting GM solved the problem.

Edit: Wait, no, it's still displaying this messed up behavior. I had swapped over to an unfamiliar grid, which masked the symptoms. Nothing to see here, move along...
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: nudone on August 27, 2010, 07:30 AM
just a quickie, jgpaiva...

i'm not sure if this is a bug or just something weird with my machine, the question is:

does GridMove work with multi-monitor setups - regardless of the number of screens.

I've got four monitors plugged in and it appears that GridMove is only aware of 3 of them. admittedly, they are in an unusual layout, that is: 3 in a row and 1 above middle (like and inverted letter T).

if you remember, you made some excellent adjustments to Dialogmove to work with my multi-monitor setup. that worked brillilantly.

i wonder if something is required for GridMove to work with the same number of monitors?

thanks.
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: nudone on August 27, 2010, 07:41 AM
ignore all that above  :)

i've just seen that the grids are using 3 monitors - so i've just added the fourth and it works as expected.

marvellous.
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: nudone on September 01, 2010, 03:36 AM
Can anyone answer this, please, if you know for sure...

Can GridMove move a window to a zone/grid area without changing the size of the window?

e.g. there are times when i just want to center a window on my main screen - but the size is perfectly adequate so doesn't need fitting to a grid.
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: jgpaiva on September 01, 2010, 03:57 AM
Hi nudone!
IIRC, there's no way to do that, even though it does sound like something one would look for :(
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: nudone on September 01, 2010, 04:00 AM
Okay, thanks jgpaiva (wasn't sure if you were still regularly around).

i'm sure there will be an autohotkey script that already does this so i'll have a search for it - i was just trying to avoid re-inventing the wheel if GridMove did it already.
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: jgpaiva on September 01, 2010, 04:42 AM
Okay, thanks jgpaiva (wasn't sure if you were still regularly around).
Unfortunatelly, I'm not, but I still follow this thread, trying to help with that I can :)

i'm sure there will be an autohotkey script that already does this so i'll have a search for it - i was just trying to avoid re-inventing the wheel if GridMove did it already.
It shouldn't be hard to find a ahk script that centers a window, it's really simple. If you can't find one, I'm sure someone in the coding snacks area could do one easily ;)
Also, if you know how to use the "Run" grid element, you can call the ahk script directly from gridmove ;)
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: nudone on September 01, 2010, 05:41 AM
Also, if you know how to use the "Run" grid element, you can call the ahk script directly from gridmove

oh, that's interesting. i didn't know that. that's a good idea then - i'll look into that.

I've not used GridMove for a long time so i've lost track of what's happening - BUT, i've discovered it's the absolute ESSENTIAL tool for using with my 4 monitors...

...I wanted a tool that would let me hit a hotkey and then move a window to a specific monitor. there are "professional" programs out there (not free, and i'm using them) for multi-monitor setups yet they can't send a window to a specific monitor - they simply let you cycle through available monitors until you get the window moved to the monitor you wanted it on, i.e. window is on monitor 1, you want it on monitor 4 - that requires 3 hits of the hotkey to make it happen - the window jumping to window 2, then 3 and then 4. so, very annoying.

GridMove lets me put the window to the monitor (or grid) that i want - with one hotkey hit that relates to that specific grid/monitor zone (using an ahk script).

but, of course, GridMove lets me set up unique zones on each monitor so I've got hotkeys for some of those too.

it would have been nice if the window didn't have to be resized in the process of moving to a secondary monitor - but i can live without that.
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: tomos on September 01, 2010, 06:20 AM
e.g. there are times when i just want to center a window on my main screen - but the size is perfectly adequate so doesn't need fitting to a grid.

have you looked at MilesAhead's TicTac ?

No, it doesn't play the game. It just positions the active window to a section that would correspond to a tic tac toe position.  The positions visually correspond to the NumPad number keys.  3 is Bottom Right, 8 is Center Top etc..

AFAIK it doesnt support multi-monitor but he might be able to help all the same


[edit] although upon reflection I think it's pretty different and might not be any help - sorry! [/edit]
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: nudone on September 01, 2010, 08:09 AM
thanks, tomos - and MilesAhead.

TicTac may be enough - i only really need the main monitor support... i think. i'll try it out for a few days.
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: spyro on December 14, 2010, 04:23 AM
Hi there,

great tool! :)

It would be great if you could increase the thickness of the rule lines. There pretty hard to see on higher resolutions. Additionally you maybe could 'soften' the screen behind the grid or bright it up a little.

Is it possible to improve the reaction time for GridMove? When I middle-click on the titlebar of a window it lasts about 0.5 s until the grid shows up...

Keep on the great work!

spyro
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: ahbi on January 30, 2011, 08:41 PM
Using GridMove 1.19.62, Win7-Ult, native snap disabled

First, thanks I have used this for years and loved it.

Now for the question.
With Office 2010 (specifically Word 2010), when you cut and paste text into a document Word pops up this "right-click"-like menu to choose: Keep Source Formatting, Merge Formatting, Paste as Plain Text.

The problem comes in when you paste something in Word, causing the paste-menu, and then use HotKeys in GridMove to resize Word. 
Unfortunately, that paste-menu isn't a "menu" but a window, that now resizes to the Grid you wanted Word to resize to.  Word stays at its un-resized size and place.
.
The workaround is to hit ESC before using the GridMove hotkey (ESC closes the paste-"menu").  But, you know that isn't ideal.
I should add, I never use GridMove via the mouse.  I assume the act of selecting Word's titlebar would deselect the paste-"menu" and everything would then work as expected.
.
Any thoughts or fixes for this?
Thanks

Title: Re: IDEA: drag window to edge automatically resizes it
Post by: jgpaiva on January 31, 2011, 06:00 AM
The problem comes in when you paste something in Word, causing the paste-menu, and then use HotKeys in GridMove to resize Word. 
Unfortunately, that paste-menu isn't a "menu" but a window, that now resizes to the Grid you wanted Word to resize to.  Word stays at its un-resized size and place.
Hi!

GridMove always works on the window which is topmost, as long as it can be resized.
This may cause multiple problems similar to yours, where a window opens a child window and you wanted to move the parent window. However, other times you may want the child window to be moved.
The problem you mentioned would imply me writing an explicit exception in the code for every window that someone required. Also note that some people may actually want to move the child window :(

I think there is no better solution than what you mentioned. Maybe you could alt-tab (to change focus) before using GridMove?
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: nextogen on March 30, 2011, 07:57 PM
hello jgpaiva,

First, thanks for a great software. Been using it for a long time and it made my life much easier.

I have one problem tho. When using Autodesk Softimage i can only make GridMove ignore the window for that particular session. Program is run by a bat script and opened always in a window with different signature so you end up with a list of exceptions in GridMove.exe.ini like:

Afx:0000000004000000:8:0000000000010005:0000000000000000:00000000255406AG
Afx:0000000004000000:8:0000000000010005:0000000000000000:0000000000D3154Y
Afx:0000000004000000:8:0000000000010005:0000000000000000:0000000011740GDT
etc.

Is there a way to tell GridMove to ignore all the windows that start with certain set of symbols?

Thanks
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: luetkmeyer on April 27, 2011, 02:13 PM
Hi.

I loved this app. Thank you.

Well, can I change the colors and transparency?

Thanks in advance.
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: kevinf on July 29, 2011, 08:24 PM
hello there, I use dual HDMI+DVI monitor with a custom gridmove template with 13 elements (undo + 4 quads on left, and 4 quads + edges on right).

Im having a random issue where when I left click on the title area to begin dragging into a grid, sometimes gridmove completely locks up my computer for 1minute (mouse frozen), then shows the grid layout, then 30 seconds later mouse moves a bit more, and if i press esc a bunch of times, maybe 45 seconds later it cancels. Restarting the software makes the issue go away (eg: software works as expected). FYI: i leave my computer on for weeks at a time, going to standby overnight. Can you think of some kind of memory leak or something that could cause this? Anyone experience this before? Could my grid be at fault? I can post it if needed..

Also minor: when i accidentally double click on the title (within the 100pixels) it sometimes jumps to the wrong monitors grid. Any thoughts?

Thanks! It really is great software when it works, but having it lock up my computer when I have documents open is a bit scary..... If we resolve this issue, I would definitely be willing to donate some funds.
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: jgpaiva on July 30, 2011, 05:06 AM
Hi,

To be honest, I'm not sure why this would happen. Regarding memory leaks, you can check how much memory it is using the next time it happens (after it unfreezes the computer) by pressing ctrl-shift-esc to show the task manager and looking for the "memory" column. However, the language used to program GridMove does all the memory management, so I wouldn't expect this to be happening. I'm 100% sure it isn't related to your grid. I've tested GridMove with very complex grids (some with 100+ parts!) and even though it was slower and took some time to load, this never happened.
Can you tell me if this happens in the first few hours after you start GridMove? If not, I could set a timer for it to restart itself every day or something like that. (it's not the best solution, but it might work :) )

re: minor. GridMove should already take a few miliseconds and require the mouse to move to activate, but I fear that if these settings are too large, GridMove would become less responsive. Have you tried the middle button method? Its simpler and more reliable, I think.

Title: Re: IDEA: drag window to edge automatically resizes it
Post by: kevinf on August 23, 2011, 11:10 AM
Thanks for your suggestions. I never got a chance to see if the memory usage spiked as the system was too "locked up" to open task manager. Makes sense that autohotkey would take care of that stuff anyways.

I took your suggestion and use a different method, so I use drag to edge to activate gridmove instead of mouse click. Middlemouse button does not work with my logitech G5 laser mouse w/ setpoint software running. So i dont get the double click issues (i routinely dc on titlebar to maximize a window)

Just to give you an update on the lockup issue, it seems to have fixed itself, kinda of.
Reproduce:
-wake up computer from sleep (after being off all night)
-try to do a gridmove

The slow down always happens when I do that. It doesn't seem so severe now, i just wait it out the 5-10 seconds. A second gridmove attempt is back to normal speed. So its like its re-caching the grid or something that takes time. I don't reset the software to get the normal behavior back. So i guess it could be the drag method on titlebar that caused it, due to your script or due to ahk's implementation, or perhaps my mouse is to blame, it does report at 2000 reports/second (rather fast).
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: Kadah on September 02, 2011, 12:50 PM
Im having a random issue where when I left click on the title area to begin dragging into a grid, sometimes gridmove completely locks up my computer for 1minute (mouse frozen), then shows the grid layout, then 30 seconds later mouse moves a bit more, and if i press esc a bunch of times, maybe 45 seconds later it cancels. Restarting the software makes the issue go away
Let me guess, Windows XP or any other 32bit Windows version? I had the same issue too, I think its due to gridmove getting swapped to the page file and having to be swapped back. I tried looking for ways to keep it from getting paged, but came up empty. I finally switched over to 7x64 with lots of ram it never happened again.
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: kevinf on September 02, 2011, 07:10 PM
Im having a random issue where when I left click on the title area to begin dragging into a grid, sometimes gridmove completely locks up my computer for 1minute (mouse frozen), then shows the grid layout, then 30 seconds later mouse moves a bit more, and if i press esc a bunch of times, maybe 45 seconds later it cancels. Restarting the software makes the issue go away
Let me guess, Windows XP or any other 32bit Windows version? I had the same issue too, I think its due to gridmove getting swapped to the page file and having to be swapped back. I tried looking for ways to keep it from getting paged, but came up empty. I finally switched over to 7x64 with lots of ram it never happened again.

makes perfect sense too. It happened again today, when i was using 99% of my ram (several virtual machines), and i accidentally moved a window, and solid 5minute lockup. Plus gridmove uses 10% of my quad core 3.2ghz processor which doesn't help when your out of ram... Same thing when you first get out of standby, probably from not using for so long it got paged out... I guess we can consider it solved! thanks
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: jgpaiva on September 05, 2011, 10:17 AM
@kevinf: I find it strange how GridMove takes so much more time to answer again than it would take to start up, or do you also experience slow starts like that? Also, after it takes those 5minutes to get back, does it then start acting normal or does it still need a restart?
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: kevinf on September 05, 2011, 03:09 PM
nope, after the slow down, typically by then i have more ram available, and the software is fine without reset. On clean startup the software doesn't take long either.
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: ghostsquad on October 27, 2011, 08:39 PM
I absolutely love Gridmove, and I've recommended it to several friends. It doesn't seem to be compatible with the latest versions of Firefox. That browser has moved away from having a normal toolbar to having 1 dropdown menu in the top left corner. Whenever I click the drop down menu, Gridmove detects the window as being moved against the edge of my screen, and will re-size it. I've set Gridmove to ignore Firefox, but it would be nice to have Firefox work as normal and be able to re-size it with Gridmove.
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: jgpaiva on October 29, 2011, 07:10 PM
ghostsquad: have you tried using gridmove with the middle-click method? Its much faster because it works anywhere on the window, and it does not have that kind of trouble with strange apps (which unfortunately are more and more frequent)
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: aarontx on November 11, 2011, 12:12 PM
I apologize if this has already been asked.  I did a search and did not run across the answer (maybe in too big a rush).

Is there a keyboard shortcut (or can there be one added) that moves all windows to a grid location?
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: jgpaiva on November 11, 2011, 12:16 PM
aarontx: Honestly, it never occurred me that someone would need such a function, so it's not possible to do that GridMove.
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: crazy4chrissi on November 24, 2011, 01:14 PM
First: Thanks for the great program. On a Full-HD screen, this is a must-have. You cannot browse the web with 1920px width browser-window as a lot of sites use 100% width and therefore reading texts is painful. But half of 1920px is not enough (windows 7 makes half the screen easy). So your app makes this work in a cool and easy way.

But I have kind of a problem: When I plug in my external monitor into my laptop, I need to restart GridMove because the external monitor has another resolution. Couldn't Gridmove detect whenever I plug an external monitor in or out and restart itself? This would be very helpful.

Thanks again for your great program.

Christopher
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: jgpaiva on November 24, 2011, 01:23 PM
Hi Christopher, welcome to DC!

Actually, that was a feature of GridMove, but it caused random restarts to too much people, and I ended up disabling it.
Right now, I guess the best way to do it is just to press win+g (to show the command window) and then 'r' (to restart GridMove).
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: crazy4chrissi on November 24, 2011, 03:59 PM
Hi,

okay, thanks for the info and the tip with the shortcut. That's already a bit better. Maybe you could make the feature optional and turn it off by default? So people that want the feature although it might cause random restarts can turn it on whereas people that do not need it or do not want random restarts could turn it off?

How did you detect this? Event listener that is called when devices change? I think you might be able to check the resolution every few seconds and if it changed, restart GridMove. Or when the event was fired, you could check whether the resolution really changed and only restart if it did.
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: bkeadle on February 05, 2012, 08:11 AM
I found this utility as I was looking for a way to define Windows for certain programs to be placed on a specific screen and a specific size.  This looks like it *ALMOST* fits the bill.  Which leads to this suggestion: I'd like to be able to define certain programs to automatically go to a certain grid location - doable?
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: jgpaiva on February 05, 2012, 01:35 PM
Hi bkeadle, right now, that's out of the scope of GridMove.
But I think skrommel's winwarden (https://www.donationcoder.com/Software/Skrommel/#WinWarden) could help you with that ;)
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: MilesAhead on February 05, 2012, 03:08 PM
I found this utility as I was looking for a way to define Windows for certain programs to be placed on a specific screen and a specific size.  This looks like it *ALMOST* fits the bill.  Which leads to this suggestion: I'd like to be able to define certain programs to automatically go to a certain grid location - doable?


WinSize2 may do what you want. But you have to position the windows manually, then press a hotkey to memorize size and position. The first time that window opens with WinSize2 running, it will move and size it if needed.

http://winsize2.sourceforge.net/en/index.html

Title: Re: IDEA: drag window to edge automatically resizes it
Post by: bkeadle on February 05, 2012, 03:16 PM
Nice find!  Thank you - I'll give it a try!
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: MilesAhead on February 05, 2012, 04:58 PM
Nice find!  Thank you - I'll give it a try!

I used it for awhile. Very stable. Only reason I don't still use it is I have my own tools where I can click and move stuff. It's a nice utility though.
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: bkeadle on February 11, 2012, 07:44 AM

I found this utility as I was looking for a way to define Windows for certain programs to be placed on a specific screen and a specific size.  This looks like it *ALMOST* fits the bill.  Which leads to this suggestion: I'd like to be able to define certain programs to automatically go to a certain grid location - doable?

WinSize2 may do what you want. But you have to position the windows manually, then press a hotkey to memorize size and position. The first time that window opens with WinSize2 running, it will move and size it if needed.

http://winsize2.sourceforge.net/en/index.html


Fantastic find!  I love it, does exactly what I wanted and exceeded my expectations



Title: Re: IDEA: drag window to edge automatically resizes it
Post by: orbidia on February 25, 2012, 06:39 PM
Is there a way to change the color of the "selected grid". Right now it is a milky white and for some reason, I can hardly see it... It would be great if I could make it blue for example. I also don't understand why the numbers and lines fade out behind the selection grid. They should remain clear and the selection color should make it obvious what the selection really is - not the numbers fading out.

Hopefully this is possible with changing an .ini file or something...

Overall though, this seems like a great program. I've made a new grid which maybe others would like... where do I upload it?
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: tomos on February 26, 2012, 08:00 AM
I've made a new grid which maybe others would like... where do I upload it?

:up:  GridMove: Grids Here (https://www.donationcoder.com/forum/index.php?topic=9387.0)
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: orbidia on February 27, 2012, 04:06 PM
I'm trying to use the untouched source code in AutoHotKey by double clicking "GridMoveP1.ahk":   ScriptVersion = 1.19.62.

It mostly works, but I get an error on things like the EdgeGrid "Undo" and "Minimize":

When hovering over "Undo" or "minimize" a window pops up saying:
"Error: Invalid option.
Specifically: .000000 y1120.000000 w120.000000 h30.000000 NoActivate
Line#221: Gui,2:show,x% ..."

And when I "compile" the script with AutoHotKey, I get an 840k file vs the downloaded Gridmove.exe only being 449KB...

Why do the errors happen?
How do you compile it properly?
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: jgpaiva on February 27, 2012, 06:03 PM
Is there a way to change the color of the "selected grid". Right now it is a milky white and for some reason, I can hardly see it... It would be great if I could make it blue for example. I also don't understand why the numbers and lines fade out behind the selection grid. They should remain clear and the selection color should make it obvious what the selection really is - not the numbers fading out.

Hopefully this is possible with changing an .ini file or something...
Hi,
There is no way to change the color of the overlay except byt editing the code itself, honestly it never occured to me that someone might wish for a different color there :)

Regarding the error, it wasn't supposed to happen. I think the source code version isn't exactly the same (I had a problem with my laptop and lost some GridMove code a while ago), so it may actually be a bug.
That might explain the different file sizes of the compiled version, but probably it's only because you compiled it with a newer version of AutoHotkey which must include a larger runtime environment.

If you'd like, I have a newer (unreleased) version of GridMove which I can send you. Hopefully it will not have that bug. Just contact me through email so I can send it to you!
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: orbidia on February 28, 2012, 03:58 PM
jgpaiva,

I didn't know how to get your e-mail:

On your forum user page, you list a homepage which then has a link to your contact email. I sent the e-mail there. But then I realized you may have simply meant to send you a private message "email" through this forum instead which makes more sense. I should have just done that...

Hopefully you got the email. I can send it again through "private message" if you didn't receive the first one.
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: jgpaiva on February 29, 2012, 06:42 PM
orbidia, I did mention the email I have registered in the forum, but most people miss that :)
I answered you yesterday, I hope you got the email!
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: poidi on May 23, 2013, 02:45 AM
Hi folks, is this still an active topic?

as it suggests above it isn't - but i have a question / feature request for Grid Move

It would be great to not only have
 - Monitor1Top
 - Monitor2Top
 - ...

But also to have an option
 - MonitorActiveTop
 - MonitorActiveBottom
 - ...

Why?
First of: I'm a keyboard guy...
I have my Grids set up as the numpad suggests it (so 1 is left bottom; 5 is center; 6 is half right;...)

For my other monitors i have a similar system - just one decade higher (11 is left bottom on second screen, 21 on third)

the Fast Move works perfectly on the main monitor - but for the other monitors i'm not able to use fastmove, since it does not interpret more than one digit. (so i use the command hotkey - which is slightly slower, of course)

so my actual idea:

set up a grid that uses not a fixed monitor, but the actual (where the mouse is present) monitor

so instead of setting up 9 grids for each monitor, i would only need 9 grids at all.

other option would be to tell fastmove to interpret more digits as well (in order to use fast move to grid 24)

thanks!
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: jgpaiva on May 23, 2013, 01:40 PM
Hi poidi!

I find your idea interesting, I would only suggest that to aim at a 100%-focused keyboard solution, it would be better to consider that "actual monitor = monitor where the window is".
Regardless, and to be honest, I have posted the code for GridMove on github (https://github.com/jgpaiva/GridMove) because I haven't been able to followup on the requests posted to the forum (I've explained it elsewhere, but basically not being a Windows user anymore makes developing GridMove a burden instead of a pleasure).
So, unless someone else steps up to fullfil your request, I fear it won't be done :(

I'm really sorry for this,
João
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: kippg on March 23, 2014, 12:13 PM
Hi jgpaiva,

I am finding that its not working very well in Windows 8.  I have a donation ready to go.... can you fix it?
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: tomos on March 23, 2014, 02:36 PM
I am finding that its not working very well in Windows 8.  I have a donation ready to go.... can you fix it?

this might be worth testing (I havent tried it lately, so cant comment) -
GridMove Lite Portable | Windows7/8 ready, combine w/ Aero Snap | XP/Vista Supp. (https://www.donationcoder.com/forum/index.php?topic=22739.0)
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: MilesAhead on March 23, 2014, 02:56 PM
Hi jgpaiva,

I am finding that its not working very well in Windows 8.  I have a donation ready to go.... can you fix it?

Just one thought.  Have you tried running as administrator? I find some of my programs don't want to work on W8 without it.
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: kippg on March 23, 2014, 10:15 PM
Thanks for the suggestions.  I ended up getting it to work with win7 compatibility.
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: jgpaiva on March 24, 2014, 06:15 AM
Thanks for the suggestions.  I ended up getting it to work with win7 compatibility.
Hi,
Indeed from Windows 7 onwards, Windows as a tighter grip on what each application is allowed to see from other running applications. This means that GridMove cannot move other windows or recognise the mouse when it's over windows from other applications. Typically, the solution seems to be to run it in administrator mode, but it's good to know that on win7 compatibility it also works :)
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: MilesAhead on March 24, 2014, 11:39 AM
Thanks for the suggestions.  I ended up getting it to work with win7 compatibility.

I didn't think of trying that on my programs.  I'll give it a shot.  :)
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: asticilluder on September 16, 2014, 07:28 AM
Just wanted to post a thank you for this program. I looked long and hard for a program of this quality to resize windows. Don't know how I lived without it! I'll be sure to send a donation your way when I can.

AHK has been a great tool to add to my arsenal as a developer. Hopefully, I'll be able to contribute in the future.
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: kippg on October 29, 2014, 08:20 AM
I'm interesting in donating for GridMove but I see the last release is 2009.  Is the project no longer being developed?
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: jgpaiva on October 29, 2014, 10:17 AM
Hi kippg,

I'm still here, just haven't changed anything in GridMove as it seems to be stable for most people.
I have since moved to OSX and no longer own a Windows computer, so I don't use it everyday myself (unfortunately), which means I don't add any features anymore and mostly just do support and bugfixing if needed.

João
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: shmuel1 on November 06, 2014, 05:01 AM
I don't know if anyone mentioned this, but since Windows 7 there have been shortcut keys to fit a window to the right or left of the screen: Windows Key + Left Arrow and Windows Key + Right Arrow.
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: tomos on November 06, 2014, 01:19 PM
I don't know if anyone mentioned this, but since Windows 7 there have been shortcut keys to fit a window to the right or left of the screen: Windows Key + Left Arrow and Windows Key + Right Arrow.

There's also an app from MilesAhead here on dc, let's see, here's a review I wrote:
MoveIt - windows management app - Mini-Review (https://www.donationcoder.com/forum/index.php?topic=31763.0)

I use it in conjunction with GridMove (and Windows' default Winkey + Arrow keys) in Windows 7.
(I dont know if Moveit works in Windows 8.)
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: MilesAhead on November 08, 2014, 10:13 AM
(I dont know if Moveit works in Windows 8.)

It works if Run As Administrator.  I check that option in Compatibility Tab and put a shortcut in the StartUp folder to have it start with Windows logon  (Typing shell:startup in Run box is an easy way to optn the User StartUp Folder.)
( Edit it also works in Windows Ten Preview but I believe I had to use the Registry Run key and put UAC all the way down to auto start it.  )

Thanks for mentioning it Tomos.  I'm glad someone out there uses MoveIt.  :)
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: ycomp on November 28, 2014, 10:32 AM
don't know if anyone mentioned this yet, I haven't read the thread.

But it's a bit annoying having to rename the groups all the time. And the bigger the file, the more that must be done.

I mean [1], [2], [3], etc.

maybe I don't understand something... but anyhow I am renaming them often so that the overlaps work correctly for my layout.

My current layout has 18 groups.

I wanted to use notepad++ but couldn't figure out how to do it that way. If anyone knows, let me know please.

So I used TextPad ... if you do a search and replace in TextPad it will renumber all the groups in the order they appear in the file.

Code: Perl [Select]
  1. Search: ^\[[0-9]*\]
  2. Replace: \[\1\i\]
Hope that helps someone...
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: ycomp on December 06, 2014, 06:57 PM
anyone know how to solve this problem? I get at least a couple times a day this annoying "transporting" of my current window to the last used grid position.

It happens when I click the middle button (the middle button is what I use to drag windows to new grid postions, I have all other grid-initiation techniques disabled). But it only happens a couple times a day, not every time I click the middle mouse button (which is fairly often since I use the browser a lot)

But as far as I can tell, I'm not doing anything else... not touching the keyboard, not moving the mouse. Are there any shift/alt/ctrl-key combinations that are used to "teleport" the window to its last used grid position? I occasionally do have stuck key problems but I'm not so sure they are stuck when this strange behaviour occurs.
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: jgpaiva on December 09, 2014, 04:39 AM
Hi ycomp,

Do you have any grid element configured with the "restore" element? Maybe when you click and are over the restore element, gridmove is assuming you want to move there? Did it ever happen to move to some element other than restore?
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: ycomp on December 09, 2014, 04:51 AM
nope, I use no special keywords. My Grids are just the basic Trigger, Grid and [Monitor or WindowHeight/Width stuff. It happened again a few times yesterday. Always to the previous position that I had moved in the Grid... I mean lets say I move/sized a window to the top left using the Grid. Then I don't use Gridmove for 1/2 hour (that's just an example number)... then I press the mouse middle button - then it might move the grid. I mean it doesn't happen every time I click the middle mouse button. But when it happens, it will move back to the last grid placement position (in this example, to the Top Left). Never to another grid position, only to the last used one.

Very Strange
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: jgpaiva on December 09, 2014, 04:57 AM
So, it never maximizes vertically nor horizontally? Grr, there doesn't seem to be any reason for it to spontaneously decide to restore to the previous size :/
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: ycomp on December 09, 2014, 05:02 AM
only moves to the last position with the same last used grid size... no maximizing in either direction when this happens.

actually it would be a cool feature, if I could activate it when I needed it :) but when you're trying to work and this thing happens a few times (I think sometimes it is a one off thing , sometimes it will happen a few times in a few minutes or less but I guess that's because of my work habits - when I'm doing a lot of middle clicking in the browser, it is more likely to occur)
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: jgpaiva on December 09, 2014, 05:43 AM
only moves to the last position with the same last used grid size... no maximizing in either direction when this happens.
OK. That's strange because the part of the code that restores, first tries to maximize in each direction. I suppose that if it somehow was inadvertently entering that part of the code, it might enable either of the three.

actually it would be a cool feature, if I could activate it when I needed it :)
You know that you can use the "restore" element for that?

but when you're trying to work and this thing happens a few times (I think sometimes it is a one off thing , sometimes it will happen a few times in a few minutes or less but I guess that's because of my work habits - when I'm doing a lot of middle clicking in the browser, it is more likely to occur)
I understand, sorry :( It seems I can't quite figure out why this happens.
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: ycomp on December 09, 2014, 06:18 AM
Where could I get some info on FastMove? I don't really understand what it is.

p.s. I've attached a notepad++ syntax coloring file just in case if anyone finds it useful. Ok, I couldn't figure out how to attach so I've linked to it:

Notepad++ User Defined Language Syntax Highlighting File for GridMove (http://pastebin.com/Kg3QkiRG)
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: ycomp on December 09, 2014, 06:20 AM
ah, I found FastMove in the menu and instructions are there. It was just confused about it from the docs having almost no info on it except the name.
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: jgpaiva on December 09, 2014, 09:24 AM
Sorry, fastmove is just moving windows with the keyboard. I think I had a sudden attack of laziness and decided to stop documenting there.  :-[
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: jgpaiva on December 09, 2014, 09:25 AM
PS: thanks for the syntax coloring file! (even though I'm more of a Vim (http://www.vim.org/) fan myself ;) )
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: KLR71 on January 09, 2015, 03:59 PM
I like this app a lot but for some reason my x64 Win7 won't let me use the F12 key to set a window to be ignored.  I haven't remapped that key or anything.  I was using F11 in another program with it set to be used globally (seek ahead 10 secs on my media player), tried disabling that but Gridmove still won't let me use the F12 - I press it and nothing happens.  Hitting F11 does sucessfully cancel the operation.  Any thoughts?  This is about the only bug of any matter for me, too.  I've tried Window Manager too, man is that thing overkill. 
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: jgpaiva on January 13, 2015, 04:34 AM
Hi KLR71,

I'm not sure why that would happen... Can someone with win7 x64 chime in to tell us if they can reproduce this issue?
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: tomos on January 13, 2015, 05:03 AM
Hi KLR71,

I'm not sure why that would happen... Can someone with win7 x64 chime in to tell us if they can reproduce this issue?

only to say I cannot reproduce the issue here in Win 7 x64 -
i.e. F12 works as it should, adding window to exceptions:

---------------------------
GridMove.exe
---------------------------
added MozillaWindowClass to exceptions
---------------------------
OK  
---------------------------
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: jgpaiva on January 13, 2015, 05:06 AM
KLR71, apparently according to this (http://superuser.com/questions/661961/what-other-tool-is-using-my-hotkey), there's a "Windows Hotkey Explorer" which may help you find if there's another program using F12.

@tomos: thanks a lot for your help!
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: AxCrusik on July 29, 2015, 12:45 PM
Hey jgpaiva, I've been using Gridmove for years and love it. I just upgraded to Windows 10 and unfortunately, when I use Gridmove, it snaps the windows into different quadrants/sections of the screen as before but now it leaves a large gap between them (like a couple mm).
I was wondering if there was a way to fix this in the settings (so the windows touch each other instead of leaving the gap) or if you would consider creating a Windows 10 optimized version of Gridmove in the future?
Thanks!
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: jgpaiva on August 04, 2015, 12:48 AM
Hi AxCrusik,

I still haven't upgraded my home computer to windows 10, so I'm sorry I cannot reproduce that problem. Still, wouldn't it be a solution to build grids that slightly overlap as a workaround for that problem?
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: mbroskamp on August 09, 2015, 04:56 PM
Hi jgpaiva, I just wanted to confirm that I was able to reproduce the issue AxCrusik mention in his post.

Below is a screenshot to illustrate, note the black border between windows:
http://imgur.com/KwxEuvh
(http://i.imgur.com/KwxEuvhl.png)
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: Ath on August 10, 2015, 02:31 AM
Windows 10 seems to have a transparant border around all windows, recognizable when hovering the mouse across a border: the size-cursor shows when the mouse is already outside the window! I assume/suspect that this translates into a black border when inside a grid.
Have you tried to add the negative offset/overlap in grid coordinates, as suggested earlier?
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: michaewlewis on October 23, 2015, 12:38 PM
Hello. I started using Eizo Screenslicer a few months ago to create virtual screen partitions on my 4k tv/monitor, but found that it was pretty limited for custom grids and didn't work with admin windows. I did some more searching and found grid move and am pretty impressed. The only problem I have is the method of moving screens to a grid. Setting it to "Use Drag Window To Edge method" is workable except, with a 4k screen, it's a long distance to the edge from some locations of the screen, and then you have to wait for it to recognize that you're at the edge. The "Use Draw With Middle Button method" doesn't work for me because I have several programs which use the middle click for 3d rotation (Google Earth, Vizio, and others).
I would like to suggest that there be a "Shift-Click" option, like Eizo uses, where you hold the shift button on the keyboard and then drag the window to the desired grid.
Thanks for the consideration and good job on the software. :)
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: gtavo on December 12, 2015, 07:19 AM
I've just registered in this forum to thank you all for this awesome software (GridMove), specially to jgpaiva, I did a donation this mourning.

I'm on windows 10, and I solved the space between windows just overlapping the grids.

Thanks again for your work
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: mouser on December 12, 2015, 03:12 PM
gtavo, thank you for taking time to post and especially for donating to support the coders here.  :up:

can you make sure to either follow the link in the license key email to "activate" your donation and then send your donationcredits to jgpaiva, who wrote GridMove -- or just email me and let me know what email/name you donated under so i can make sure the donation goes to jgpaiva.
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: gtavo on December 13, 2015, 02:11 AM
gtavo, thank you for taking time to post and especially for donating to support the coders here.  :up:

can you make sure to either follow the link in the license key email to "activate" your donation and then send your donationcredits to jgpaiva, who wrote GridMove -- or just email me and let me know what email/name you donated under so i can make sure the donation goes to jgpaiva.

I made the donation via the donate button in the GridMove program, using paypal, I found this forum a couple of hours later...
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: mouser on December 13, 2015, 02:52 AM
ah, even better!  :Thmbsup: :Thmbsup: :Thmbsup:

I've upgraded your forum account to show that you are a supporting (donating) member.
Title: Ultrawide Simple [a template designed with Ultrawide Monitors in mind]
Post by: ycomp on March 03, 2016, 12:12 PM
content moved here (https://www.donationcoder.com/forum/index.php?topic=9387.msg396695#msg396695)
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: ycomp on March 03, 2016, 12:35 PM
Hi jgpaiva, I just wanted to confirm that I was able to reproduce the issue AxCrusik mention in his post.

Below is a screenshot to illustrate, note the black border between windows:
http://imgur.com/KwxEuvh
(http://i.imgur.com/KwxEuvhl.png)

I think this isn't gridmove-specific, LG Screen Split also does this.

On both applications, it doesn't seem to affect all windows - depends on what application the window belongs to, but seems like the majority.
Title: Feature Suggestion: Window Swapping
Post by: ycomp on March 06, 2016, 01:41 PM
I guess that GridMove is not being developed anymore, but just in case i wanted to suggest a great feature.

One of the things I miss most from LG Screen Split, is the ability to swap windows. Would be great if GridMove could do that... let's say either by holding down shift when dragging, or going into a swap mode (say double tapping ctrl or something - not shift because that's used in IntelliJ IDEA)

swap mode meaning that if there is a window existing at the target location, then that window gets moved to the original location and size of the source window.

it's really great for re-organizing windows. I'd say download LG Screen Split to see what I mean but it works on LG monitors only I think.

an example, let's say you have 3 windows side by side.. and you drag the right one to the left zone, holding shift, then the window that was in the left zone moves to the right and the window from the right is now on the left.
Title: AltDrag
Post by: ycomp on March 18, 2016, 03:00 PM
This software is crazy sweet and works really well with grid move...

I prefer to disable the semi-conflicting options in it though, like middle click on title in it - because i often middle click the title with gridmove

anyhow, AltDrag is great at helping you move windows in place, when you are not grid-moving... I mean, you often move windows around with grid-move but then sometimes you just want to drag a window the regular way, and since you have so many nicely aligned windows courtesy of gridmove, you can easily "pop" a window into place because it is attracted to other windows edges or edges of the screen. As you can see, explanation is a bet messy but one you actually try it, you'll see what i mean.

I guess what I'm trying to say is that the windows just slide into place easily... when moving or resizing

GridMove + altDrag = a killer combination, basically nothing else comes close. I tried most of window managers out there.

I was close to purchasing a more bloated program called aquasnap because it didn't allow this type of thing with secondary monitors unless you paid, but alt-drag works on multi-monitors, is small and unobtrusive and free.

https://stefansundin.github.io/altdrag/

Title: Re: IDEA: drag window to edge automatically resizes it
Post by: MilesAhead on March 19, 2016, 09:15 AM
@ycomp do you know any way to use Alt Drag one-handed?  I like the right click drag window resizing but I hate having to use two hands just because I have to hold down the Alt key.

It is not a big deal except when trying to eat while moving windows around and surfing the net etc..  I hate to have to put down my cinnamon roll because it will get the desktop sticky.  It is just awkward.  I am usually sitting in a library when WiFi-ing.. If I was in my own place that would be another matter.  :)
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: ycomp on March 19, 2016, 09:21 AM
@ycomp do you know any way to use Alt Drag one-handed?  I like the right click drag window resizing but I hate having to use two hands just because I have to hold down the Alt key.

It is not a big deal except when trying to eat while moving windows around and surfing the net etc..  I hate to have to put down my cinnamon roll because it will get the desktop sticky.  It's is just awkward.  I am sitting in a library. If I was in my own place that would be another matter.  :)


dunno, I guess you could set it to your middle mouse button if you don't use that for grid move (I do)

I just use the alt-drag application for automatic window snapping - making windows attracted to other windows and screen edges, it even snaps on resizing a window

I have auto snapping turned on in general tab in configuration and it seemed to work better for me when I turned on snapping in the advanced tab as well.

Title: Re: IDEA: drag window to edge automatically resizes it
Post by: MilesAhead on March 19, 2016, 09:26 AM
I just use the alt-drag application for automatic window snapping

Ok.  I'll check it out.  I noticed the same programmer did SuperF4 btw.

Edit:  Seems like I can use it while MoveIt is active as long as I disable the MoveIt Snap to Quadrant feature.  I like how Alt Drag slides to window and screen edges. Not too much magnetism.  Pretty cool.

Title: Re: IDEA: drag window to edge automatically resizes it
Post by: Ath on March 20, 2016, 06:16 AM
do you know any way to use Alt Drag one-handed? 
You could turn on the windows feature 'sticky keys' for that, perhaps?
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: MilesAhead on March 20, 2016, 02:21 PM
do you know any way to use Alt Drag one-handed? 
You could turn on the windows feature 'sticky keys' for that, perhaps?

That works with MoveIt but not Alt Drag.  No biggie.  My fake mouse gesture in MoveIt is enough to skate by while cinnamon rolling.  :)

If Alt Drag proves stable then I am happy.  :)
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: ycomp on March 21, 2016, 05:43 PM
do you know any way to use Alt Drag one-handed? 
You could turn on the windows feature 'sticky keys' for that, perhaps?

That works with MoveIt but not Alt Drag.  No biggie.  My fake mouse gesture in MoveIt is enough to skate by while cinnamon rolling.  :)

If Alt Drag proves stable then I am happy.  :)


I don't know what its like where you are, but man, the cinnamon buns here (Toronto) in Ikea are great... you can smell them in half the store. They do that on purpose because cinnamon scent makes you buy things - I was reading it on the internet (that cinammon smells puts you in "want to buy mode") so it must be true! (well I can believe it)
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: MilesAhead on March 21, 2016, 06:26 PM
do you know any way to use Alt Drag one-handed? 
You could turn on the windows feature 'sticky keys' for that, perhaps?

That works with MoveIt but not Alt Drag.  No biggie.  My fake mouse gesture in MoveIt is enough to skate by while cinnamon rolling.  :)

If Alt Drag proves stable then I am happy.  :)


I don't know what its like where you are, but man, the cinnamon buns here (Toronto) in Ikea are great... you can smell them in half the store. They do that on purpose because cinnamon scent makes you buy things - I was reading it on the internet so it must be true! (well I can believe it)

I wish I could get fresh baked.  The Entenmann's they sell in the supermarkets aren't too bad.  But a box of six is almost $7.00 now.  Ridiculous price.  The vending machines at the college have Big Texas brand for $1.25.  Lucky for you Toronto is cold so I won't be sneaking up there to heist your C Rolls.  :)

Edit:  I am from Boston originally.  But I have lived in South Florida for over 20 years.  I have become acclimatized.  Anything below 60 F and I want to put on a hoodie.  :)

Edit2:  Speaking of cinnamon aroma, I worked for a short time at a house cleaning service.  One guy there had his own "secret formula" that he sprayed around the room after cleaning.  The major component was cinnamon scent.  He claimed he got consistently bigger tips when he used the cinnamon scent as a finishing touch.
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: questionsquestions on March 10, 2017, 03:59 AM
Hey.

I'm not really a coder so I'm having some trouble with gridmove. I would like to set it up so I can do 4 vertical windows on my dell u34. Is there an easy way to make a custom grid of some sort? I didn't really understand it from reading the note file :P Nothing like I want in the templates.

And I saw some people talking about changing the hotkeys for moving the windows around. I also find it that the middle mouse button doesn't work out for me. Could I possible make it something like windows+arrow keys to like it is on standard win10 snaps?


Thanks in advance for any help.
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: Rockets on August 31, 2017, 07:36 AM
If I connect a monitor to a notebook, GridMove has a layout from notebook's resolution. GridMove's restart helps. Is there any automatic way to do it?
Title: Re: IDEA: drag window to edge automatically resizes it
Post by: erkange on November 29, 2023, 03:13 AM
hi there,
I like the idea.
But when I drag screen the right, there is a gap between windows and my monitor's edge.
How I can remove it?