Here's the example script ...
Here is a menu macro to call the menu commands:
It has to be fleshed with all them menu commands. E.g. item1 of the Project menu is NewProject.
NewProject:
will then contain something like the CompactWindowLayout macro, but with the appropriate number of arrow movements.
The menu can be controlled by keyboard.
alwayslockyourbike
With AutoHotkey you can control the menu and add your own keyboard shortcuts.
Example: Assign the View 6 (Compact) to function key F9
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
; #Warn ; Enable warnings to assist with detecting common errors.
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
;Assign this macro to F9
F9::
Send, {Alt}
Sleep, 500
;Navigate to the View menu
Send, {Right 2}
Sleep, 500
;Navigate to the Window layout menu
Send, {Down 8}
;Open the Window menu
Send, {Right}
;Navigate to the View 6 command
Send, {Down 5}
;Execute the command
Send, {Enter}
return