AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

WindowPad - multi-monitor window-moving tool
Goto page Previous  1, 2, 3, 4, 5, 6, 7  Next
 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Scripts & Functions
View previous topic :: View next topic  
Author Message
pieter333



Joined: 30 Nov 2007
Posts: 1

PostPosted: Fri Nov 30, 2007 8:51 pm    Post subject: Reply with quote

I succefully created a exe file with autohotkey and a system tray icon of windowpad appears on the system tray.

But if i hold the Windows key and presses some key of the numpad nothing happens Sad

(My numpad is activated)...

Does anyone know what I could be doing wrong??

I have Windows XP SP2.

Thanks alot!!

Greetings,
Pieter
Back to top
View user's profile Send private message
Guest






PostPosted: Sat Dec 01, 2007 12:18 am    Post subject: Reply with quote

look in winpad.ini there are all the hotkeys ..test for instance numpad0+ on a window
Back to top
daorc



Joined: 18 Oct 2006
Posts: 78

PostPosted: Sat Dec 08, 2007 9:00 pm    Post subject: Reply with quote

Awsome script - this is going to save so much time! Beta version gives me this error, though:

Quote:

---------------------------
WindowPad.ahk
---------------------------
Error at line 116.

Line Text: "`n"
Error: Bad default value.

The program will exit.
---------------------------
OK
---------------------------



Cheers, Daorc Smile
Back to top
View user's profile Send private message
engunneer



Joined: 30 Aug 2005
Posts: 6309
Location: Pacific Northwest, US

PostPosted: Sat Dec 08, 2007 9:26 pm    Post subject: Reply with quote

that means you need to upgrade your version of AHK. it was changed to alow default values for functions to be strings.
_________________
Unless otherwise noted, all code is untested.
Common Answers: 1.(Loops, Viruses, etc.) 2. Search 3.RTFM
Back to top
View user's profile Send private message Visit poster's website
eliben16
Guest





PostPosted: Mon Dec 24, 2007 4:34 pm    Post subject: problem with windows hiding behind other windows Reply with quote

Hello,

I'm using WinPad and enjoying it immensely - great job!

However, I have a nagging problem that appears from time to time which I think is related to WinPad. Sometimes, windows insist on staying hidden behind other windows. For example, at the moment the IE window in which I'm writing this is on top. I have another window, minimized. I click it on the taskbar, and it restores but the part that is supposed to come in front of this IE window comes instead to the back.

Has anyone had such a problem ? I think it appears only when using WinPad!

TIA
Back to top
Lexikos



Joined: 17 Oct 2006
Posts: 2472
Location: Australia, Qld

PostPosted: Tue Dec 25, 2007 12:57 am    Post subject: Reply with quote

WindowPad does not detect activation, or even activate windows. I can't even begin to imagine how it could cause that behaviour.
Back to top
View user's profile Send private message
Endre



Joined: 14 Jan 2008
Posts: 1

PostPosted: Mon Jan 14, 2008 10:10 am    Post subject: Hotkey for minimizing? Reply with quote

Thank you, Lexikos, for an absolutely great tool! I love the beta with the customizable keys, although I'm very happy with the default assignments (more so than with the original Windows key combinations, which I like to reserve for my own hotkeys).

It was a bit confusing that the comments in the beta still referred to the old hotkeys, but it's a beta after all.

I wonder if it might make sense to include a hotkey for toggling the minimized status of the current or the previous window as a counterpart to the Maximize toggle (currently Num0/NumDot+NumAdd). There would even be an intuitive hotkey free for use: Num0/NumDot+NumMinus.

Or am I overlooking something and minimizing is already available?

Thanks again, Lexikos, for your great contribution.
Endre
Back to top
View user's profile Send private message
Lexikos



Joined: 17 Oct 2006
Posts: 2472
Location: Australia, Qld

PostPosted: Mon Jan 14, 2008 10:49 am    Post subject: Re: Hotkey for minimizing? Reply with quote

Endre wrote:
It was a bit confusing that the comments in the beta still referred to the old hotkeys, but it's a beta after all.
I didn't really intend to release it like that, but lost interest in developing WindowPad. I chose to release it in its incomplete form rather than keeping it to myself. Smile
Quote:
I wonder if it might make sense to include a hotkey for toggling the minimized status of the current or the previous window as a counterpart to the Maximize toggle (currently Num0/NumDot+NumAdd).
Commands can be added to the beta as simply as adding a label. Adding the following to WindowPad will allow you to assign "Minimize" and "Unminimize" to keys in WindowPad.ini, like any other WindowPad command.
Code:
Minimize:
    ;WinMinimize, A  ; seems to leave the window active on my system...
    PostMessage, 0x112, 0xF020,,, A  ; WM_SYSCOMMAND, SC_MINIMIZE
    return
Unminimize:
    if WinExist(GetLastMinimizedWindow())
        WinRestore
    return

GetLastMinimizedWindow()
{
    WinGet, w, List

    Loop %w%
    {
        wi := w%A_Index%
        WinGet, m, MinMax, ahk_id %wi%
        if (m = -1) ; minimized
            lastFound := wi
    }

    return "ahk_id " . (lastFound ? lastFound : 0)
}
I use GetLastMinimizeWindow() with my mouse gestures script. I usually use XButton2 & LButton to minimize and RButton & left, right (or right, left) to restore, so never added these features to WindowPad.


Bug: I find that sometimes (usually only the first time I press CapsLock after logging in) the CapsLock hotkey doesn't register and it instead toggles caps lock. Does anyone else have this or a similar issue?
Back to top
View user's profile Send private message
Andreone



Joined: 20 Jul 2007
Posts: 257
Location: Paris, France

PostPosted: Mon Jan 14, 2008 3:45 pm    Post subject: Reply with quote

Hi. I'm using 1.5 beta.
To facilitate inclusion in an other script, I have added a little function to set the WindowPad ini path, otherwise, when the ini must be in the same dir as the main script.
Code:
WindowPadSetIni(path)
{
    global
    WINDOWPAD_INI_PATH := path
}
And this modification line 75:
Code:
    if(WINDOWPAD_INI_PATH == "")
        WINDOWPAD_INI_PATH = %A_ScriptDir%\WindowPad.ini
Then, init is done like this:
Code:
   WindowPadSetIni(A_ScriptDir . "\Addons\WindowPad\WindowPad.ini")
   Gosub, WindowPadInit


Question I tried to use Ctrl and Shift+Ctrl as a replacement of Numpad0 and NumpadDot, but I doesn't work
Code:
^ = Hotkeys, Active Window (Numpad)
+^ = Hotkeys, Previous Window (Numpad)



Arrow Also, referring to an previous post where a asked you about a button to move windows accross screen.
lexikos wrote:
Feel free to work on it yourself, and post it here (or elsewhere) for any other users that might find it useful. Smile You can trigger a screen-switch in WindowPad using:
I finally decide myself to use two simple mouse combos (just using the mouse was the goal)
Code:
MButton & RButton::WindowScreenMove("Next")
MButton & LButton::WindowScreenMove("Prev")
Back to top
View user's profile Send private message
Lexikos



Joined: 17 Oct 2006
Posts: 2472
Location: Australia, Qld

PostPosted: Mon Jan 14, 2008 5:03 pm    Post subject: Reply with quote

Andreone wrote:
To facilitate inclusion in an other script, I have added a little function to set the WindowPad ini path, otherwise, when the ini must be in the same dir as the main script.
I'll keep that in mind for when I eventually update WindowPad. Perhaps WindowPadInit should become WindowPad_Init(IniPath).
Quote:
I tried to use Ctrl and Shift+Ctrl as a replacement of Numpad0 and NumpadDot, but I doesn't work
Code:
^ = Hotkeys, Active Window (Numpad)
+^ = Hotkeys, Previous Window (Numpad)
WindowPad.ini maps hotkeys to actions. +^ is actually Shift+6 with US keyboard layout. (The "^" is not interpreted as a modifier, since there is no key name to modify.)

The next issue is that Numpad1 (with no *) will not trigger if any standard modifier keys are pressed.

The final issue is that Windows sends different key codes for the number pad when shift is down. Numpad1 becomes NumpadEnd, Numpad2 becomes NumpadDown, etc.

The "Hotkeys:" sections (and corresponding Hotkey = Hotkeys, SectionName) are really only appropriate for "custom combinations." If you are using regular modifier keys, you can merge the "Hotkeys:" sections with the main "Hotkeys" section, and prepend the modifier symbols to each hotkey.


The WindowPad GUI was intended to handle all these details for you. Mostly due to lack of proper planning, I got side-tracked with unnecessary features and lost interest.
Back to top
View user's profile Send private message
Andreone



Joined: 20 Jul 2007
Posts: 257
Location: Paris, France

PostPosted: Wed Jan 16, 2008 12:57 pm    Post subject: Reply with quote

lexikos wrote:
I'll keep that in mind for when I eventually update WindowPad. Perhaps WindowPadInit should become WindowPad_Init(IniPath).
Yes, that would be the best.

lexikos wrote:
The WindowPad GUI was intended to handle all these details for you. Mostly due to lack of proper planning, I got side-tracked with unnecessary features and lost interest.
Too bad Crying or Very sad I hope you'll change your mind. WindowPad is a great little app and easy configuration of what prefix keys to use is the last thing missing.
Actually, I wanted to switch from Numpad0 to Ctrl because I sometimes type a hotkey by accident when typing numbers quickly. This is annoying to have the activated window resized to a quarter of the screen because I typed 1.01 Laughing
For now, I will stick to WADS.
Back to top
View user's profile Send private message
Da Rossa



Joined: 06 Dec 2007
Posts: 141

PostPosted: Wed Feb 27, 2008 2:25 am    Post subject: Reply with quote

Are there any conflicts (not shown by errormessages) between Windowpad and Nifty Windows? This is because I appended both of them to my main script and WP is not working... however, if I close my script and run WP separately, it works. What can I do?
_________________
AHK is perfect.
Back to top
View user's profile Send private message
Lexikos



Joined: 17 Oct 2006
Posts: 2472
Location: Australia, Qld

PostPosted: Wed Feb 27, 2008 6:15 am    Post subject: Reply with quote

WindowPad needs to be initialised either by including it in the auto-execute section of the script or...
Code:
gosub WindowPadInit
Back to top
View user's profile Send private message
Da Rossa



Joined: 06 Dec 2007
Posts: 141

PostPosted: Tue Mar 04, 2008 12:30 am    Post subject: Reply with quote

lexiKos wrote:
WindowPad needs to be initialised either by including it in the auto-execute section of the script or...
Code:
gosub WindowPadInit


Thanks!
_________________
AHK is perfect.
Back to top
View user's profile Send private message
Jose
Guest





PostPosted: Thu Mar 06, 2008 3:58 am    Post subject: Reply with quote

Is there any trick someone could use to span a window across two monitors and remove the area that would be behind the bezels of the two monitors.

Akin to the bezels blocking the view of the window? If you could clone the spanned window, move the clone to the right, resize-bezel width, move the original to the left and resize-bezel width or something like that. Anything be used to clone a window?

I guess resize wont work, how about chop the contents of a window?
Back to top
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Scripts & Functions All times are GMT
Goto page Previous  1, 2, 3, 4, 5, 6, 7  Next
Page 6 of 7

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group