Created
March 27, 2020 20:28
-
-
Save jimfoltz/d32cee4728aef5562a73d766b3b696d8 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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