21
Post New Requests Here / Re: IDEA: AutoMaximize Windows
« on: June 19, 2013, 04:10 PM »
*Amended*:
As I re-read the other linked thread I think this is more suitable for your needs.
Enjoy!
~BigVent
"would maximize automatically every maximizable window, when new windows of apps/Explorer etc opening."
As I re-read the other linked thread I think this is more suitable for your needs.
Enjoy!
Code: Autohotkey [Select]
- ;http://www.autohotkey.com/board/topic/19672-detect-when-a-new-window-is-opened/
- ;DLLCall / Shell / MsgBox = SKAN
- ;-------------------------------------------------------------------
- ;--Program monitors newly opened windows & maximizes accordingly--
- ;-------------------------------------------------------------------
- #SingleInstance, force
- SetWorkingDir %A_ScriptDir%
- onexit, exitsub
- Gui +LastFound
- Return
- ShellMessage( wParam,lParam )
- {
- Local k
- If ( wParam = 1 ) ; HSHELL_WINDOWCREATED := 1
- {
- NewID := lParam
- }
- }
- minmax_func()
- Return
- ralt & Esc:: ;right Alt key & Esc
- exitsub:
- {
- }
- ;=================
- ;==Function(s)====
- ;=================
- minmax_func()
- {
- global NewID, minmax
- if (minmax=0)
- {
- ;use PostMessage for stubborn windows
- ;PostMessage, 0x112, 0xF030,,, NewID ; 0x112 = WM_SYSCOMMAND, 0xF030 = SC_MAXIMIZE
- }
- else
- if (minmax=-1)
- {
- }
- }
~BigVent