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 

Methods for resizing a window to be larger than the desktop?

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



Joined: 10 Jun 2007
Posts: 1

PostPosted: Tue Sep 25, 2007 12:22 pm    Post subject: Methods for resizing a window to be larger than the desktop? Reply with quote

I've created a script that uses WinSet, Region to precisely crop part of a maximized window. Once I've isolated the desired part of the window, I want to then resize this area so that it fills the screen. The app in question scales the graphics in my chosen area according to the window size so this should be feasible. However, I run into troubles because the window is already maximized and won't resize greater than the desktop dimensions! Grr.

Not all is futile, though, as I found a workaround on my desktop machine: since the desktop is across two monitors I can resize my cropped window to effectively “stretch” (in the horizontal aspect) to completely fill one of the screens (since the combined width is 3200 px and I only need to resize my cropped area to 1600 px in order to fill one screen). This suits my needs but I'd really like to create a similar effect on my laptop.

I've searched the forums several times and found users with the same problem (i.e. resizing a window to be larger than the desktop) but no solutions were offered…

Any new ideas?
Back to top
View user's profile Send private message
tic



Joined: 22 Apr 2007
Posts: 1424

PostPosted: Tue Sep 25, 2007 2:57 pm    Post subject: Reply with quote

Use StretchBlt to stretch the chosen part into a child window
Back to top
View user's profile Send private message
Jaime



Joined: 06 Nov 2007
Posts: 7

PostPosted: Tue Nov 06, 2007 5:56 pm    Post subject: Reply with quote

I have been browsing the forums, looking for help to build that exact script, as I need to magnify a certain area of a specific application. However, my coding skills are quite lacking, so my efforts have been unsuccessful. Please, that script would really help me, could you share it with me?

Thanks
Back to top
View user's profile Send private message
tic



Joined: 22 Apr 2007
Posts: 1424

PostPosted: Tue Nov 06, 2007 6:11 pm    Post subject: Reply with quote

Could you be more clear as to what you want Jaime please. SO you want to duplicate a selected area and make it bigger? Tell me exactly want you want to do and i may be able to help
Back to top
View user's profile Send private message
engunneer



Joined: 30 Aug 2005
Posts: 7698
Location: Germany (but I only speak English)

PostPosted: Tue Nov 06, 2007 7:43 pm    Post subject: Reply with quote

http://www.autohotkey.com/forum/viewtopic.php?t=11700
_________________
Unless noted, all code is UNTESTED.
Answers Here: 1.(Loops, Viruses, etc.) 2.Search 3.RTFM 4.Ask for Help.
PMs will be ignored unless you are hiring me.
Back to top
View user's profile Send private message Visit poster's website
Jaime



Joined: 06 Nov 2007
Posts: 7

PostPosted: Wed Nov 07, 2007 9:01 am    Post subject: Reply with quote

Thank you for your help, tic & engunneer. I have a program that is designed for a resolution of 800x600. What I need is a way to magnify the portion of the screen the program uses, so I can see it at "full-screen" without changing the resolution. The ScreenMagnifier is impressive Shocked and I will definitely be using it for a lot of things, but not in this particular case, as it follows the mouse. It would be perfect if I could just make it a fixed window, magnifying the specified area of a specific window, with the click-through functionality the ScreenMagnifier seems to provide... Seems I have a lot of reading to do!
Back to top
View user's profile Send private message
tic



Joined: 22 Apr 2007
Posts: 1424

PostPosted: Wed Nov 07, 2007 9:36 am    Post subject: Reply with quote

But how could you make it full screen? It would cover up the thing youre magnifying
Back to top
View user's profile Send private message
Jaime



Joined: 06 Nov 2007
Posts: 7

PostPosted: Wed Nov 07, 2007 3:56 pm    Post subject: Reply with quote

tic wrote:
But how could you make it full screen? It would cover up the thing youre magnifying


That's the point. See, the main window of the program is designed for 800x600, so it covers just the upper/left corner of the screen. If I could magnify it to a 1260x1000 window, for instance, while retaining click-through capability, my life would be much better Very Happy Just think of it like holding a real magnifying glass over the screen. There are some programs already capable of this feat, namely igzoom and DesktopZoom, but they lack the image quality and tweaking capability of Holomind's ScreenMagnifier.
Back to top
View user's profile Send private message
tic



Joined: 22 Apr 2007
Posts: 1424

PostPosted: Wed Nov 14, 2007 6:36 pm    Post subject: Reply with quote

basically all you want is a magnifier then?

whats the problem with holominds or this one?

http://www.autohotkey.com/forum/viewtopic.php?t=24973
Back to top
View user's profile Send private message
Jaime



Joined: 06 Nov 2007
Posts: 7

PostPosted: Fri Nov 16, 2007 11:15 am    Post subject: Reply with quote

tic wrote:
basically all you want is a magnifier then?

whats the problem with holominds or this one?

http://www.autohotkey.com/forum/viewtopic.php?t=24973


That last one would be perfect, if I knew how to modify it to make static and not follow the mouse. That is, a permanent lens over my application. Any help?
Back to top
View user's profile Send private message
tic



Joined: 22 Apr 2007
Posts: 1424

PostPosted: Fri Nov 16, 2007 11:29 am    Post subject: Reply with quote

yes. just change the highlighted parts to the x and y coordinates


Code:
WinMove, ahk_id %hWnd%,, Xmouse-Width, Ymouse-Height, 2*Width, 2*Height
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   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