 |
AutoHotkey Community Let's help each other out
|
| View previous topic :: View next topic |
| Author |
Message |
Hubauer
Joined: 18 Dec 2008 Posts: 2 Location: Germany
|
Posted: Wed Feb 04, 2009 6:30 am Post subject: |
|
|
It worked. It is easier than I thought.
Thanks a lot for your quick response and help |
|
| Back to top |
|
 |
JaseF_Is_Guesting Guest
|
Posted: Wed Feb 18, 2009 11:45 pm Post subject: Feature Queries/Request |
|
|
Hi All!
Yay for Lexicos, WindowPad & AHK!!! Thanks as always.
I'm wondering if it is possible to move windows to the next/previous monitor without resizing them? (ie: the default behavior of say Caps/Space changes the monitor from Max'ed mode to windowed, swaps monitor and then max's again)
I ask because I've been using Ultramon which (has been crashing hence why I'm here; but also) seems to nail the speed hard! And now I've been spoilt!
Secondly, is there also any way to setup a keycomobo to a 'large' window; Ie: Res of monitor -2 pixels per edge? I hate it when my browser puts itself (or I put it) in Window mode and its all squished. EEEeeep nyark tasting :shakes tongue:
Thanks fer readin |
|
| Back to top |
|
 |
Lexikos
Joined: 17 Oct 2006 Posts: 4465 Location: Qld, Australia
|
Posted: Thu Feb 19, 2009 8:54 am Post subject: |
|
|
| Quote: | | I'm wondering if it is possible to move windows to the next/previous monitor without resizing them? | WindowPad does not provide that, but it should be easy to add. The following code from WindowScreenMove() determines whether the window will be resized, then calculates its new size:
| Code: | if (IsResizable()) {
w := Round(w*(mdw/msw))
h := Round(h*(mdh/msh))
} | If you want windows to always be moved between screens without resizing, simply remove that section. To selectively disable resizing, add a condition to the if().
| Quote: | | Secondly, is there also any way to setup a keycomobo to a 'large' window; |
Merge something like (one or more of) the following with your WindowPad.ini:
| Code: | [Hotkeys]
#NumpadSub = WindowPadMove, 0, 0, 1.0, 1.0
[Hotkeys: Active Window (WADS)]
f = WindowPadMove, 0, 0, 1.0, 1.0
[Hotkeys: Active Window (Numpad)]
*NumpadSub = WindowPadMove, 0, 0, 1.0, 1.0
| The parameters "0, 0, 1.0, 1.0" mean "centre horizontally, centre vertically, 100% screen width, 100% screen height". |
|
| Back to top |
|
 |
JaseF_Is_Guesting Guest
|
Posted: Mon Feb 23, 2009 12:28 am Post subject: Thanks V. Much :) |
|
|
| Most appreciated |
|
| Back to top |
|
 |
DentalTI_KJH
Joined: 23 Feb 2009 Posts: 1 Location: IN
|
Posted: Mon Feb 23, 2009 3:31 am Post subject: |
|
|
Just wanted to send out a brief Thank You! Normally, when we set up our Dual Monitors in dental offices, we use an extended desktop via the ATI control panel. Also, we are typically using monitors that are able to handle normal resolutions to move windows back and forth across the screens. We were just doing a setup this evening where the doctor's monitor displays 1280x1024 just fine, but the patient's monitor would not handle this resolution.
The Doctor wishes to move the window with xrays to the patient's monitor to show them areas of concern. Previously, they were using the Nvidia Nview which handles this action with an icon next to the minimize button, but ATI lacks this option. I was using a hot-key to swap display mapping before I increased the resolution to 1280x1024 and this was working just fine because the patient monitor could view the 102x768.
I checked out this script and it works wonderfully! I am even going a step further and using the Gyration mouse with programmable buttons that simulates the hot-key being pressed so they don't even have to interact with the keyboard to send the window to the other screen! _________________ K. Henseler
Dental Technology Integrators
http://www.dentalti.com |
|
| Back to top |
|
 |
mana Guest
|
Posted: Wed Feb 25, 2009 4:52 pm Post subject: Integrate into generic AHK script |
|
|
Hi all, pls forgive the beginner question. I am trying to integrate this great script into my default AutoHotkey.ahk but I haven't found how to do it.
I copied all files in a folder, then copy/pasted the code in my AutoHotkey.ahk file, then replaced all instances of %A_ScriptDir% with the actual folder location on my drive, but it does not seem to be enough
thanks
Mana |
|
| Back to top |
|
 |
Lexikos
Joined: 17 Oct 2006 Posts: 4465 Location: Qld, Australia
|
Posted: Thu Feb 26, 2009 9:59 am Post subject: Re: Integrate into generic AHK script |
|
|
Get a fresh copy of WindowPad and copy it into the same directory as your main script. Include this in the auto-execute section of your script:
| Code: | WindowPad_Init()
; You may optionally specify the path of the ini file:
; WindowPad_Init("myconfigdir\WindowPad.ini")
| ...and include the following not in the auto-execute section of your script:
| Code: | | #Include WindowPad.ahk |
WindowPad_Init() must be called for WindowPad to loads its configuration to activate any hotkeys. It should not be necessary to replace %A_ScriptDir%. |
|
| Back to top |
|
 |
mana
Joined: 25 Feb 2009 Posts: 6
|
Posted: Thu Feb 26, 2009 11:21 am Post subject: |
|
|
Fantastic, works now!
Now that you told me, I also moved another script that I had in my AutoHotkey.ahk to an external file
Thanks! |
|
| Back to top |
|
 |
ReflexNPG Guest
|
Posted: Sat Mar 07, 2009 11:36 pm Post subject: |
|
|
i have also some small wishes :
Mouse support:
- additional title buttons (for example: max left / right to "maximize" on the half of the screen)
- docking mode while moving the window with middle mouse
- small always on top layout selector window
Great work, thanks! |
|
| Back to top |
|
 |
7enderhead
Joined: 21 Oct 2008 Posts: 2
|
Posted: Thu Mar 12, 2009 11:00 am Post subject: Sizing of Remote Desktop Windows |
|
|
Dear Lexikos,
Hi forum,
WindowPad is one of my all-time favourite helper applications. I use it constantly.
Now, I can think of a WindowPad feature which would make my life even easier
I constantly use Remote Desktop to connect to other machines. What I do with the RD window is the following:
- I do _not_ maximize the window (for most of the time), because I want my local Autohotkey scripts to work within the RD window. Also, Alt-Tabbing then works with my local and the RD window.
- The remote screen resolution is the same as on my local screen.
To maximize screen estate, I do the following:
- I move the (not full size) RD window to the lower right corner.
- I resize the window at the upper left corner to its maximum possible size.
- Now the window is _bigger_ than my local screen, because (in non-maximized mode) it also has the title bar and a bit of frame around it.
- I then position the window so that its title bar is hidden by my local screen's upper border.
- Effect: I have full resolution on the RD window (so, no scrollbars there), and it fits my local screen. I don't care about the title bar.
- Bad thing: Windows sometimes 'forgets' this state, so that the RD window's title bar is positioned 'correctly' (i.e., visibly) upon my local screen. That's of course not what I want.
So... after all this rambling: I thought WindowPad could automate the window-resizing and positioning process as outlined above.
Would that be possible?
Thanks for your consideration,
Christian |
|
| Back to top |
|
 |
Lexikos
Joined: 17 Oct 2006 Posts: 4465 Location: Qld, Australia
|
Posted: Thu Mar 12, 2009 12:25 pm Post subject: |
|
|
I don't see what this has to do with WindowPad. I suggest starting with WinMove; if you have further questions, start a thread in Ask for Help.
On the other hand, Windows' Remote Desktop client has an option "Apply Windows key combinations"; the default is "Only when using the full screen", but there is also "On this computer". Unless I've misunderstood what you're asking for, you can probably achieve it by setting this option and entering full-screen mode. |
|
| Back to top |
|
 |
mana
Joined: 25 Feb 2009 Posts: 6
|
Posted: Thu Mar 12, 2009 12:48 pm Post subject: |
|
|
Not sure it will help you, but what you can easily do is assign a custom position/size to one of the shortcuts in the ini file. I changed for example #5. The sequence is:
position of left border, position of center, position of right border, height
; Win+Numpad for Active Window:
#Numpad1 = WindowPadMove, -1, +1, 0.5, 0.5
#Numpad2 = WindowPadMove, 0, +1, 1.0, 0.5
#Numpad3 = WindowPadMove, +1, +1, 0.5, 0.5
#Numpad4 = WindowPadMove, -1, 0, 0.5, 1.0
#Numpad5 = WindowPadMove, -0.2, 0, 0.6, 0.6
#Numpad6 = WindowPadMove, +1, 0, 0.5, 1.0
#Numpad7 = WindowPadMove, -1, -1, 0.5, 0.5
#Numpad8 = WindowPadMove, 0, -1, 1.0, 0.5
#Numpad9 = WindowPadMove, +1, -1, 0.5, 0.5 |
|
| Back to top |
|
 |
7enderhead
Joined: 21 Oct 2008 Posts: 2
|
Posted: Thu Mar 12, 2009 2:15 pm Post subject: |
|
|
| Lexikos wrote: | I don't see what this has to do with WindowPad. I suggest starting with WinMove; if you have further questions, start a thread in Ask for Help.
On the other hand, Windows' Remote Desktop client has an option "Apply Windows key combinations"; the default is "Only when using the full screen", but there is also "On this computer". Unless I've misunderstood what you're asking for, you can probably achieve it by setting this option and entering full-screen mode. |
Damn! That works! I do feel rather, ehm, stupid now, but in fact I was searching for a very complicated solution, so the obvious evaded me...
Thanks for the hint!
Cheers,
Christian |
|
| Back to top |
|
 |
Gius Guest
|
Posted: Wed Mar 18, 2009 5:24 pm Post subject: windows move from laptop to monitor and vice versa |
|
|
Hi all,
I'm using the windows keys + left/right to move the active screen back and forth:
| Code: | #Left::
WinRestore, A
WinWait, A
WinMove, -101,1
WinMaximize, A
return
#Right::
WinRestore, A
WinWait, A
WinMove, 2280,0
WinMaximize, A
return |
You might want to tune the pixels of WinMove that it matches your resolution.
Regards,
Remi |
|
| Back to top |
|
 |
korosif Guest
|
Posted: Thu Mar 19, 2009 12:05 pm Post subject: maximize using both screens |
|
|
Hi,
I am in love with Window Pad, thank you so much!
Just on question/request:
Can I make an hotkey to maximize a window using both of my screens (as if they were one giant screen)? |
|
| Back to top |
|
 |
|
|
You can post new topics in this forum You can reply to topics in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|