| View previous topic :: View next topic |
| Author |
Message |
Leef_me
Joined: 08 Apr 2009 Posts: 5336 Location: San Diego, California
|
Posted: Wed Sep 23, 2009 6:56 am Post subject: Request: try script in WinXP & WinVista & post resul |
|
|
The following "Winset, Region" code works on my XP system but incorrectly on Vista.
Using Notepad as the active window, the client area is reduced, but the frame/border around the application remains.
Notice the blue frame and the close/min/max buttons still visible? http://www.autohotkey.net/~Leef_me/winset_problem.jpg
BTW, after 5 seconds the active window IS restored correctly.
Can several people run the script and report OS and whether the frame is hidden or left visible?
If you have an answer why/work-around I welcome that as well.
Thanks in advance.
Leef_me
| Code: | CoordMode, mouse, Screen
msgbox Press #q to make active window smaller
return
;----------- Operate by hotkey, Win-q
#q::
;----------- find the title and coordinates of active window
WinGetActiveTitle, OutputVar
WinGetPos , X, Y, Width, Height, %OutputVar%
;----------- move to UL and LR diagonal corners to show size
sleep, 1000
mousemove, %x%, %y%, 20
sleep, 1000
x1:=x+width
y1:=y+height
mousemove, %x1%, %y1%, 20
sleep, 1000
;----------- half the width, half the height, change visible region
w:= Width/2
h:= Height/2
WinSet, Region , 0-0 w%w% h%h% , %OutputVar%
sleep, 5000
;----------- restore visible region
WinSet, Region , , %OutputVar%
return |
|
|
| Back to top |
|
 |
Murp|e
Joined: 12 Jan 2007 Posts: 531 Location: Norway
|
Posted: Wed Sep 23, 2009 8:07 am Post subject: |
|
|
Leef_me: Why double post?? The script works like a charm for me on Windows XP Pro. SP2. It nicely sliced my Notepad in half.
P.S. I know it's silly, but I liked the way the mouse slowly moved from one corner of the window to the other. |
|
| Back to top |
|
 |
aaffe
Joined: 17 May 2007 Posts: 1002 Location: Germany - Deutschland
|
Posted: Wed Sep 23, 2009 8:30 am Post subject: |
|
|
It does what expected at my winXP computer.
The maximize minimize buttons are away. |
|
| Back to top |
|
 |
Leef_me
Joined: 08 Apr 2009 Posts: 5336 Location: San Diego, California
|
Posted: Wed Sep 23, 2009 4:49 pm Post subject: |
|
|
@Murple
Yes, I hate D.P. but it appeared the original thread was no longer being seen.
I need some 'trials' to confirm or deny my theory that it is Vista based.
Thanks for your response. |
|
| Back to top |
|
 |
txquestor
Joined: 22 Aug 2009 Posts: 294
|
Posted: Thu Sep 24, 2009 1:48 am Post subject: RE: Script Test on Vista |
|
|
Hi Leef_me,
I tested your script in Vista, Sp1 and it works fine.
Good Luck _________________
"Man's quest for knowledge is an expanding series whose limit is infinity" |
|
| Back to top |
|
 |
Leef_me
Joined: 08 Apr 2009 Posts: 5336 Location: San Diego, California
|
Posted: Sat Sep 26, 2009 4:01 pm Post subject: |
|
|
| Bump, just a quick test. Takes 5 minutes max! |
|
| Back to top |
|
 |
closed
Joined: 07 Feb 2008 Posts: 509
|
Posted: Sat Sep 26, 2009 7:43 pm Post subject: |
|
|
works like you want it in XP SP3  |
|
| Back to top |
|
 |
gahks
Joined: 10 Jan 2009 Posts: 32
|
Posted: Sat Sep 26, 2009 8:25 pm Post subject: Re: |
|
|
On XP SP2: Works fine
On Vista: Not working, tried with notepad, firefox, same problem as on the screenshot.
On autohotkeys debugging window on the other hand, it worked like a charm.
Cheers,
gahks |
|
| Back to top |
|
 |
Petru
Joined: 17 Dec 2007 Posts: 235 Location: Galati, Romania
|
Posted: Tue Sep 29, 2009 4:35 pm Post subject: |
|
|
| I don't think this is actually a problem, but the way WinVista behaves to the function... |
|
| Back to top |
|
 |
ahklerner
Joined: 26 Jun 2006 Posts: 1381 Location: USA
|
Posted: Tue Sep 29, 2009 4:40 pm Post subject: |
|
|
i think it probably depends on if you have transparency enabled _________________
ʞɔпɟ əɥʇ ʇɐɥʍ |
|
| Back to top |
|
 |
Leef_me
Joined: 08 Apr 2009 Posts: 5336 Location: San Diego, California
|
Posted: Tue Sep 29, 2009 5:37 pm Post subject: |
|
|
| Petru wrote: | | I don't think this is actually a problem, but the way WinVista behaves to the function... |
You don't consider that a problem
| ahklerner wrote: | | i think it probably depends on if you have transparency enabled |
Thanks, that seems to be the first direct clue. I'll investigate.
BTW, neither of you bothered to post your results.
Leef_me |
|
| Back to top |
|
 |
|