AutoHotkey Community

It is currently May 27th, 2012, 4:35 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 337 posts ]  Go to page Previous  1 ... 14, 15, 16, 17, 18, 19, 20 ... 23  Next
Author Message
 Post subject:
PostPosted: February 18th, 2010, 10:21 pm 
Offline

Joined: October 17th, 2006, 4:15 pm
Posts: 7503
Location: Australia
ossandcad: Does it move but not resize the window? If so, try adding an exception to IsResizable().


Report this post
Top
 Profile  
Reply with quote  
PostPosted: February 26th, 2010, 11:42 am 
Offline

Joined: October 17th, 2007, 4:06 pm
Posts: 3
Location: Maidenhead
Is it possible by default or by defining keys in the ini file to make WindowPad stretch the active window across both monitors please?

Hopefully this post is the right place as this thread is all about WindowPad
:?:


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: February 26th, 2010, 3:37 pm 
Offline

Joined: October 17th, 2006, 4:15 pm
Posts: 7503
Location: Australia
No. However, if you add the following to WindowPad.ahk you may then assign the pseudo-command "FillVirtualScreen" to a hotkey:
Code:
FillVirtualScreen:
    if WindowPad_WinExist(Params)
    {
        SysGet, vX, 76  ; SM_XVIRTUALSCREEN
        SysGet, vY, 77  ; SM_YVIRTUALSCREEN
        SysGet, vW, 78  ; SM_CXVIRTUALSCREEN
        SysGet, vH, 79  ; SM_CYVIRTUALSCREEN
        WinMove,,, vX, vY, vW, vH
    }
    return
Code:
[Hotkeys]
...
; Active window
#f = FillVirtualScreen
; Previous window
#g = FillVirtualScreen, P
; Window at mouse
#MButton = FillVirtualScreen, M


Report this post
Top
 Profile  
Reply with quote  
 Post subject: nice
PostPosted: March 4th, 2010, 4:44 am 
Offline

Joined: September 15th, 2009, 1:14 am
Posts: 562
thanks for this.
I was going to start making something similar in my constant script, well I actually had started to, but only has like 1 or 2 things so far, but definitely no where near the quality of this.

This will definitely save me some time.


Report this post
Top
 Profile  
Reply with quote  
PostPosted: March 5th, 2010, 7:36 pm 
Offline

Joined: February 18th, 2010, 5:27 pm
Posts: 5
Lexikos wrote:
ossandcad: Does it move but not resize the window? If so, try adding an exception to IsResizable().


Sorry Lexikos for the delayed answer, but I relied on the forum to send me an email if a reply had been posted - and I got no such email.

As for the answer to your question - Nope. ScottradeELITE does not respond to the keyboard shortcuts at all. Caps+Space does not move it, Caps+Tab does not maximize/restore it. These are the shortcuts I use most. Not sure if I can provide any debug information to you to help with this? Any links/suggestions you can provide to debug this would also be most helpful.

Thanks for the wonderful script again.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: March 6th, 2010, 6:33 am 
Offline

Joined: October 17th, 2006, 4:15 pm
Posts: 7503
Location: Australia
Double-click the tray icon (or right click, Debug) and confirm that the appropriate hotkeys are listed. Since you use the CapsLock set, CapsLock should appear in the list. If you have pressed CapsLock since starting the script, Tab, Space, z, x, c, etc. should also appear but will be "OFF" unless you're actually holding CapsLock down.

If you press Ctrl+K while the debug window is active (or View, Key history and script info) it will show the last 20 key-presses/releases. Pressing Caps+Space should show something like this:
Code:
14  03A   h   d   3.61   Caps Lock         
20  039   h   d   0.22   Space             
20  039   s   u   0.09   Space             
14  03A   s   u   0.42   Caps Lock     
"h" indicates the keypress was recognized as a hotkey.

If the hotkeys are being recognized, you may press Ctrl+L (or View, Lines most recently executed) to determine which lines of script they are executing.

The following lines may appear as a result of navigating through the debug window, and may be ignored:
Code:
896: Critical
897: id := wParam & 0xFFFF
898: if id in 65305,65404,65306,65403
906: } (27.75)


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: March 6th, 2010, 5:58 pm 
Offline

Joined: October 17th, 2006, 4:15 pm
Posts: 7503
Location: Australia
Quote:
Version 1.60
  • Functions with up to 5 parameters may now be used as commands in WindowPad.ini.
  • Added WPM as an alias for WindowPadMove.
  • Added FillVirtualScreen command.
  • Added config file for Compile_AHK II (for recompiling with icons).
  • If WinTitle is _ (a single underscore), the last minimized window is used.


At some point I added the capability to restore the window to its most recent "non-WindowPad" position. For instance, I use something like this:
Code:
[Hotkeys: Active Window (WADS)]
...
LAlt = WPM, R, R0, , 1.0
If the window is already in a position not set by WindowPad, pressing CapsLock+LAlt will expand the window vertically to the height of the screen. Otherwise WindowPad attempts to restore the window's position. Omitting X or Y has the same effect as specifying "R".


Report this post
Top
 Profile  
Reply with quote  
PostPosted: March 8th, 2010, 4:34 pm 
Offline

Joined: February 18th, 2010, 5:27 pm
Posts: 5
Lexikos wrote:
Double-click the tray icon (or right click, Debug) and confirm that the appropriate hotkeys are listed. Since you use the CapsLock set, CapsLock should appear in the list. If you have pressed CapsLock since starting the script, Tab, Space, z, x, c, etc. should also appear but will be "OFF" unless you're actually holding CapsLock down.

CapsLock does appear in the list. And the shortcut key CapsLock+Space works with other windows.

If you press Ctrl+K while the debug window is active (or View, Key history and script info) it will show the last 20 key-presses/releases. Pressing Caps+Space should show something like this:
Code:
14  03A   h   d   3.61   Caps Lock         
20  039   h   d   0.22   Space             
20  039   s   u   0.09   Space             
14  03A   s   u   0.42   Caps Lock     
"h" indicates the keypress was recognized as a hotkey.

I pressed Ctrl+K but the above lines do not show up anywhere even after a few refreshes. Which tells me that the shortcut key combo is not being recognized by the window in question.

So now the question is - is there a possibility that I can get WindowPad to work with this window (ScottradeElite) or is it a lost cause and I should look elsewhere.

If the hotkeys are being recognized, you may press Ctrl+L (or View, Lines most recently executed) to determine which lines of script they are executing.

The following lines may appear as a result of navigating through the debug window, and may be ignored:
Code:
896: Critical
897: id := wParam & 0xFFFF
898: if id in 65305,65404,65306,65403
906: } (27.75)


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: March 9th, 2010, 10:09 am 
Offline

Joined: October 17th, 2006, 4:15 pm
Posts: 7503
Location: Australia
So after pressing CapsLock+Space with that window active and refreshing the key history, CapsLock and Space do not show up? If that is the case, I think you are out of luck.


Report this post
Top
 Profile  
Reply with quote  
 Post subject: thanks for your help
PostPosted: March 15th, 2010, 5:28 am 
Offline

Joined: February 18th, 2010, 5:27 pm
Posts: 5
Lexikos wrote:
So after pressing CapsLock+Space with that window active and refreshing the key history, CapsLock and Space do not show up? If that is the case, I think you are out of luck.


Oh well. I guess I am out of luck. any suggestions on other similar scripts I could try - perhaps ones inspired by WindowPad or ones WindowPad is inspired from?


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: March 15th, 2010, 7:19 am 
If those keystrokes don't appear in the key history, it's unlikely any AutoHotkey script will work. To be sure, check that the following also doesn't register the keystrokes:
Code:
#InstallKeybdHook
KeyHistory
; Switch to your app and press Caps+Space,
; then switch back to this and refresh (F5).


Report this post
Top
  
Reply with quote  
PostPosted: March 15th, 2010, 7:04 pm 
Offline

Joined: February 18th, 2010, 5:27 pm
Posts: 5
lexikos* wrote:
If those keystrokes don't appear in the key history, it's unlikely any AutoHotkey script will work. To be sure, check that the following also doesn't register the keystrokes:
Code:
#InstallKeybdHook
KeyHistory
; Switch to your app and press Caps+Space,
; then switch back to this and refresh (F5).


Thanks for the comment lexikos, but I am afraid I don't know how to follow your instructions. Where do I need to check the code that you posted? In the WindowPad.ahk or in the Debug screen? I searched both places and am not able to find those lines of code. Sorry for being such a noob, but any help you can provide would be most helpful.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: March 30th, 2010, 12:14 pm 
Offline
User avatar

Joined: October 18th, 2008, 2:09 pm
Posts: 429
absolutely brilliant, great job!

something you might want to add: ontop or notontop:

Code:
hotkey_ontop:
   WinGet , active_id, ID, A
   WinSet , Alwaysontop, On, ahk_id %active_id%
return
hotkey_offtop:
   WinGet , active_id, ID, A
   WinSet , Alwaysontop, Off, ahk_id %active_id%
return

Code:
[Hotkeys]
...
hotkey, %Prefix_Active%Up , hotkey_ontop
hotkey, %Prefix_Active%DOWN , hotkey_offtop


I use win up and win down combo's to do the ontop-ness... well, you get the idea :)

I'm missing a "restore" button, in case I accidentily do a win+numpad5 on a window and want it back to the way it was originally... maybe save all original sizes in a variable and then call them if the restore hotkey is pressed?

and I like a nice icon for each script I run, so I added this line as well:
Code:
Menu, Tray, Icon, Shell32.dll, 25


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: April 2nd, 2010, 8:15 am 
Offline

Joined: October 17th, 2006, 4:15 pm
Posts: 7503
Location: Australia
Maestr0 wrote:
I'm missing a "restore" button,
Download the latest version via the "Download Latest Version" link. It appears you've copied the script under "Ye Olde Version". Once you've done that, read my previous post mentioning this feature. Note that the "non-WindowPad" positions are stored for each window via window properties, which remain until the window is closed even if the script is restarted.
Quote:
and I like a nice icon for each script I run, so I added this line as well:
More recent versions include an icon, though I don't know if you'd call it "nice". :)
Quote:
something you might want to add: ontop or notontop:
I use WindowPad alongside my private hotkey script, which includes:
Code:
; Toggle always-on-top.
#`::WinSet, AlwaysOnTop, Toggle, A

ossandcad wrote:
Where do I need to check the code that you posted?
Sorry for the late reply; the code is to be copied into a new standalone script and run. It merely shows the key history while ensuring the keyboard hook is active.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: April 2nd, 2010, 10:28 am 
Offline
User avatar

Joined: October 18th, 2008, 2:09 pm
Posts: 429
heh, you're right, copied the code instead of downloading the zip, my bad, thanks ;)


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 337 posts ]  Go to page Previous  1 ... 14, 15, 16, 17, 18, 19, 20 ... 23  Next

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 11 guests


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

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