Windows 7 Forums

Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: Script/Key/Shortcut Help Request

24 Mar 2017   #1
MourningStar

Microsoft Windows 7 Home Premium 64-bit 7601 Multiprocessor Free Service Pack 1
 
 
Script/Key/Shortcut Help Request

OK Gang -

I open a window (explorer, internet - whichever). I then maximize the window. A r-clik at the very top will produce a menu with 'maximize (unselectable because the machine knows the window is already max'd), minimize, restore and close. I want to press a key that will execute the 'restore' function (resizes window to original, pre-max size).

-thx


My System SpecsSystem Spec
.
24 Mar 2017   #2
Lance1

Windows 7 Ultimate, Service Pack 1, 64 bit
 
 

If you want to use a single key for this operation you'll need to look around for keyboard manipulation software. Other then that there's always keyboard shortcuts. There all over the net. here's few.

Win+Home: Clear all but the active window.
Win+Space: All windows become transparent so you can see through to the desktop.
Win+Up arrow: Maximize the active window.
Shift+Win+Up arrow: Maximize the active window vertically.
Win+Down arrow: Minimize the window/Restore the window if it's maximized.
Win+Left/Right arrows: Dock the window to each side of the monitor.
Shift+Win+Left/Right arrows: Move the window to the monitor on the left or right.
My System SpecsSystem Spec
25 Mar 2017   #3
MourningStar

Microsoft Windows 7 Home Premium 64-bit 7601 Multiprocessor Free Service Pack 1
 
 

Quote   Quote: Originally Posted by Lance1 View Post
If you want to use a single key for this operation you'll need to look around for keyboard manipulation software.
er, ... uh , you reply like this because you believe a solution cannot be provided by the wizards that grace this most wonderful forum?
My System SpecsSystem Spec
.

25 Mar 2017   #4
Callender

Microsoft Windows 7 Home Premium 64-bit 7601 Multiprocessor Free Service Pack 1
 
 

Just double click the title bar.

Edit: Or try [ALT+SPACE+ENTER] + [ENTER]
My System SpecsSystem Spec
25 Mar 2017   #5
MourningStar

Microsoft Windows 7 Home Premium 64-bit 7601 Multiprocessor Free Service Pack 1
 
 

Quote   Quote: Originally Posted by Callender View Post
Just double click the title bar.
this will be my 'go-to' method until the requested key function comes along.

-thx!
My System SpecsSystem Spec
25 Mar 2017   #6
Callender

Microsoft Windows 7 Home Premium 64-bit 7601 Multiprocessor Free Service Pack 1
 
 

Okay I created an app using an AHK script.

Usage: Run the executable and make sure you click inside the active window that you want to resize.

Press [WINKEY+W] to resize or toggle window size.

To exit the program right click the icon in the system tray.

It's not signed so if you get prompts from security software you will need to allow it to run. The process name in task manager is resize.exe

If you like it and prefer a different hotkey assigned let me know but it should be a key that is not already assigned to another application.
Resize.zip


My System SpecsSystem Spec
25 Mar 2017   #7
MourningStar

Microsoft Windows 7 Home Premium 64-bit 7601 Multiprocessor Free Service Pack 1
 
 

Quote   Quote: Originally Posted by Callender View Post
Okay I created an app using an AHK script.
...
If you like it and prefer a different hotkey assigned let me know but it should be a key that is not already assigned to another application.
oh yes, this is pure genius!

I have a gamer keyboard (image attached) with 16 programmable keys and would really like to assign this function to one of them. I am also attaching a pdf that will hopefully provide you with enough information (perhaps the chapter titled "Assigning commands to G-keys/buttons"?).

thx, fingers crossed ... :


Attached Images
Script/Key/Shortcut Help Request-g510s.png 
Attached Files
File Type: pdf lgs-guide[1].pdf (668.0 KB, 3 views)
My System SpecsSystem Spec
25 Mar 2017   #8
Callender

Microsoft Windows 7 Home Premium 64-bit 7601 Multiprocessor Free Service Pack 1
 
 

I think that it's a little beyond my capabilities but reading through that manual you should be able to assign G-keys to the [WINKEY+W] combination. Unfortunately you'd need to have resize.exe running in thebackground.
My System SpecsSystem Spec
25 Mar 2017   #9
Callender

Microsoft Windows 7 Home Premium 64-bit 7601 Multiprocessor Free Service Pack 1
 
 

If you manage to assign that shortcut you could add a startup entry for resize.exe so that it launches on boot without a UAC prompt. Let us know if you need to do that.
My System SpecsSystem Spec
25 Mar 2017   #10
MourningStar

Microsoft Windows 7 Home Premium 64-bit 7601 Multiprocessor Free Service Pack 1
 
 

Quote   Quote: Originally Posted by Callender View Post
I think that it's a little beyond my capabilities ...
well, then it is definitely light-years beyond mine. ...
.
.
Quote   Quote: Originally Posted by Callender View Post
Unfortunately you'd need to have resize.exe running in thebackground.
no problem, it would definitely not be alone there. Guess I'll just have to muck around and stumble my way thru until ... . Thank you Callender.
My System SpecsSystem Spec
Reply

 Script/Key/Shortcut Help Request




Thread Tools




Similar help and support threads
Thread Forum
How to run a script using a simple keyboard shortcut
I have posted this earlier as a followup question https://www.sevenforums.com/customization/156452-shortcut-hide-unhide-folders-files.html It might be best if I start a new thread with this query. I've created the script that I asked about there and works just as I want, but is there some way...
Customization
Windows Script Host: Can not find script file ?
Hello & Thanks , win7 x64 Starting yesterday , I keep getting the following message: Windows Script Host Can not find script file "C:\ProgramData\{95137DD0-C591-AC56-7417-DCD4A4950F5A}\2.0.1.9\lare.txt". Any idea why and how to fix it ? Thanks/ ...Vern Tags: win7 x64, Download Games...
General Discussion
Custom 'Desktop (create shortcut)' Remove .fileextension - Shortcut
Hi guys n girls, I have for ever got sick and tired of right click -> open Send to Menu and creating a Desktop Shortcut for a file or app....then needing to go to the Desktop right click the newly made shortcut and then removing the trailing file extension, dash and words shortcut in brackets....
Customization
How do I fix a 400 Bad Request? Size of a request header field exceed
Bad Request. Your browser sent a request that this server could not understand. Size of a request header field exceeds server limit. Cookie /n I have read about some fixes in Google. Some I don't trust. Some I don't understand. I have used ATF cleaner to clear away the cookies and all the...
Browsers & Mail
Setting Default Communications Device using a shortcut or script?
I bought myself a Logitech G930 wireless headset and it works great. Only problem is that when I want to use it I have to Control Panel > Sound > and 'Set as Default Device' When I want to use my main speakers again I have to do the whole process again. Could I somehow make a shortcut, or a...
Hardware & Devices


Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 18:45.
Twitter Facebook Google+ Seven Forums iOS App Seven Forums Android App