It gets the window position of the Word window active, and applies the benefit of the Toggle Full Word command to that specific Word window (in result the window position of that specif Word file remains without the main Tool bar and without the Quick Access Toolbar)
but when I have two or more Word docs opened the script is not working well for the other Word files (just maximized them without bringing them back to the previous win position).
So, how can I add the option of finding the Win Position for each Word opened and applying to each one the benefit of Toggle Full Word?
Code: Select all
+!sc027:: ;ToggleFull into same window position
WinGet, active_id, ID, A
WinGetPos, X,Y,W,H,ahk_id %active_id%
Send ^!{F5} ;ToggleFull
Sleep 500
WinRestore, ahk_id %active_id%
WinMove ahk_id %active_id%,,%X%`,%Y%`,%W%`,%H%
WinActivate
Return