Skip to content

Instantly share code, notes, and snippets.

@jimfoltz
Created March 27, 2020 20:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jimfoltz/d32cee4728aef5562a73d766b3b696d8 to your computer and use it in GitHub Desktop.
Save jimfoltz/d32cee4728aef5562a73d766b3b696d8 to your computer and use it in GitHub Desktop.
#SingleInstance Force
;DetectHiddenWindows, On
ToolbarRow1 =
(
Fuzzy Finder
Shape Bender
Keyframe
Solid
Extension
Reload
)
ToolbarRow2 =
(
)
; Set a hotkey `
#`::
align_toolbars(ToolbarRow1)
align_toolbars(ToolbarRow2)
return
align_toolbars(Toolbars)
{
Loop, Parse, Toolbars, `n, `r
{
if A_Index = 1
{
WinGetPos, x0, y0, w, h0, %A_LoopField% ahk_exe SketchUp.exe
{
x := x0 + w
y := y0
}
} else {
WinGetPos,,, w, , %A_LoopField% ahk_exe SketchUp.exe
WinMove, %A_LoopField% ahk_exe SketchUp.exe,, x, y
x := x + w
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment