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 

Request: try script in WinXP & WinVista & post resul

 
Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
Leef_me



Joined: 08 Apr 2009
Posts: 5336
Location: San Diego, California

PostPosted: Wed Sep 23, 2009 6:56 am    Post subject: Request: try script in WinXP & WinVista & post resul Reply with quote

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.

Question 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
View user's profile Send private message
Murp|e



Joined: 12 Jan 2007
Posts: 531
Location: Norway

PostPosted: Wed Sep 23, 2009 8:07 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
aaffe



Joined: 17 May 2007
Posts: 1002
Location: Germany - Deutschland

PostPosted: Wed Sep 23, 2009 8:30 am    Post subject: Reply with quote

It does what expected at my winXP computer.
The maximize minimize buttons are away.
Back to top
View user's profile Send private message
Leef_me



Joined: 08 Apr 2009
Posts: 5336
Location: San Diego, California

PostPosted: Wed Sep 23, 2009 4:49 pm    Post subject: Reply with quote

@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
View user's profile Send private message
txquestor



Joined: 22 Aug 2009
Posts: 294

PostPosted: Thu Sep 24, 2009 1:48 am    Post subject: RE: Script Test on Vista Reply with quote

Hi Leef_me,

I tested your script in Vista, Sp1 and it works fine. Laughing

Good Luck
_________________

"Man's quest for knowledge is an expanding series whose limit is infinity"
Back to top
View user's profile Send private message
Leef_me



Joined: 08 Apr 2009
Posts: 5336
Location: San Diego, California

PostPosted: Sat Sep 26, 2009 4:01 pm    Post subject: Reply with quote

Bump, just a quick test. Takes 5 minutes max!
Back to top
View user's profile Send private message
closed



Joined: 07 Feb 2008
Posts: 509

PostPosted: Sat Sep 26, 2009 7:43 pm    Post subject: Reply with quote

works like you want it in XP SP3 Smile
Back to top
View user's profile Send private message
gahks



Joined: 10 Jan 2009
Posts: 32

PostPosted: Sat Sep 26, 2009 8:25 pm    Post subject: Re: Reply with quote

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
View user's profile Send private message
Petru



Joined: 17 Dec 2007
Posts: 235
Location: Galati, Romania

PostPosted: Tue Sep 29, 2009 4:35 pm    Post subject: Reply with quote

I don't think this is actually a problem, but the way WinVista behaves to the function...
Back to top
View user's profile Send private message Yahoo Messenger
ahklerner



Joined: 26 Jun 2006
Posts: 1381
Location: USA

PostPosted: Tue Sep 29, 2009 4:40 pm    Post subject: Reply with quote

i think it probably depends on if you have transparency enabled
_________________

ʞɔпɟ əɥʇ ʇɐɥʍ
Back to top
View user's profile Send private message
Leef_me



Joined: 08 Apr 2009
Posts: 5336
Location: San Diego, California

PostPosted: Tue Sep 29, 2009 5:37 pm    Post subject: Reply with quote

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 Shocked Laughing

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.

Arrow BTW, neither of you bothered to post your results. Rolling Eyes

Leef_me
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    AutoHotkey Community Forum Index -> Ask for Help All times are GMT
Page 1 of 1

 
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