Hi, dsavant,
I have no idea about Excel (using openOffice), and would shy away from employing
such a big program for those helper things.
This here gives you a grid of buttons for macro actions which can be edited and added-to quite easily.
EDITED:
Added Auto-Reload section: you could keep the script's text open, on editing & saving, use
your new macro instantly (...well, set to 4000ms...)
Now stays on top of not-onTop windows.
For windows manipulation: asks to indicate the window to handle.
---Oh yes, I finally bought a 5-Button mouse, so with the help of
this script:
http://www.autohotkey.com/forum/topic55562.html
I finally have 6 more clicks (X1 & X2 each having long-, double-, and singleClick).
The tilde in here:
~$XButton2::
keeps those working. The DollarSign, I found out, keeps the buttons from issuing
BrowserBack or -Forward commands if this script is listening for clicks.
Code:
#Persistent
#SingleInstance force
; UPDATEDSCRIPT: http://www.autohotkey.com/forum/viewtopic.php?t=135
SetTimer,UPDATEDSCRIPT,4000
UPDATEDSCRIPT:
FileGetAttrib,attribs,%A_ScriptFullPath%
IfInString,attribs,A
{
FileSetAttrib,-A,%A_ScriptFullPath%
SplashTextOn,,,Updated script,
Sleep,1500
SplashTextOff
Reload
}
Return
;http://www.autohotkey.com/forum/topic1771-15.html -here I nicked the buttons.
~$XButton2::
Gui, Add, Button, x2 y2 w56 h36 , left`nhalf ;`n to get a line feed on the button's face.
Gui, Add, Button, x62 y2 w56 h36 , macro`n12
Gui, Add, Button, x122 y2 w56 h36 , macro`n13
Gui, Add, Button, x182 y2 w56 h36 , macro`n14
Gui, Add, Button, x242 y2 w56 h36 , on`nTop
Gui, Add, Button, x2 y42 w56 h36 , righ`nthalf
Gui, Add, Button, x62 y42 w56 h36 , macro`n22
Gui, Add, Button, x122 y42 w56 h36 , macro`n23
Gui, Add, Button, x182 y42 w56 h36 , macro`n24
Gui, Add, Button, x242 y42 w56 h36 , tog`nTitle
Gui, Color, f0f2c0
Gui, Show, Noactivate h80 w300, ACTlONS ;no coordinates: autocentered first, then remembering it's position.
WinSet, AlwaysOnTop, On, ACTlONS ;UNIQUE window title -different from script name- needed for this "onTop"
Return ; Note: the cap "i" is really a lowerCase "L".
;Change if you'd use "actlons" in a file name.
;------------MACROS-------------
Buttonlefthalf:
Progress, zh0 fs12, Click the window you want to move
KeyWait, LButton, D T8
Progress, Off
MouseGetPos, , , actID
WinMove, ahk_id %actID%, ,0, 1, 512, 769
return
Buttonmacro12:
msgbox, macro12
return
Buttonmacro13:
msgbox, macro13
return
Buttonmacro14:
msgbox, macro14
return
ButtononTop:
Progress, zh0 fs12, Click the window you want to toggle AlwaysOnTop off/on
KeyWait, LButton, D T1.5
Progress, Off
MouseGetPos, , , actID
Winset, AlwaysOnTop, Toggle, ahk_id %actID% ; toggle Window topmost
WinGet, ExStyle, ExStyle, ahk_id %actID%
If (ExStyle & 0x8) ; 0x8 is WS_EX_TOPMOST.
WinSet, Transparent, 215, ahk_id %actID% ;if topmost, make it transparent just a bit, as visual feedback for "topmost"
else
WinSet, Transparent, 255, ahk_id %actID%
return
Buttonrighthalf:
Progress, zh0 fs12, Click the window you want to move
KeyWait, LButton, D T8
Progress, Off
MouseGetPos, , , actID
WinMove, ahk_id %actID%, ,513, 1, 512, 769
return
Buttonmacro22:
msgbox, macro22
return
Buttonmacro23:
msgbox, macro23
return
Buttonmacro24:
msgbox, macro24
return
ButtontogTitle:
Progress, zh0 fs12, Click the window you want to toggle Caption off/on
KeyWait, LButton, D T8
Progress, Off
MouseGetPos, , , actID
WinSet, Style, ^0x80800000, ahk_id %actID%
return
As it is now, the buttons just show their names. The names, prefixed by a "Button", make the macro handlers.
No time to look it up now, but I'm sure the button's faces can be edited to show icons or thumbnails instead of
text, or the text they show can be edited. Search for "button" in the ahk.chm,, open the GUI-related items.
Not sharing your burden, I am nonetheless interested in doing as much as possible with the mouse. You may want to
search the forum for "Hot Corners" for inspiration, and you may have a look at this thread:
http://kmeleon.sourceforge.net/forum/read.php?1,100290,100290#msg-100290
if you are interested in a slim & fast browser coming with configurable mouseGestures and
stunning overall configurability, namely, K-Meleon.[/url]