Posted by member 71746 on 2003-10-29 01:09:43
I'd like to see modules start adopting a new !Bang, !ModuleUnHook..
It's cool to be able to hook a module into an LSBox, but it'd be even cooler to be able to unhook a module from one box and hook it to another, maybe employing a syntax like
As an example, you could have BoxOne be a floating widget and BoxTwo be your bar anchor, and have LSXCommand hooked to the bar by default and have the command hidden, then have a line like
Of course scripting could be set up to alter the command X/Y/W/H values and whatnot...
I'm just using LSXCommand as an example, I'd like to see the feature implemented in any module that supports box hooks :)
It's cool to be able to hook a module into an LSBox, but it'd be even cooler to be able to unhook a module from one box and hook it to another, maybe employing a syntax like
!UnHook
// unhooks module from the box it's currently hooked to.
!BoxHook (box name)
// hooks module to specified Box, this way the hook command could be called any time, not just at box creation.
// unhooks module from the box it's currently hooked to.
!BoxHook (box name)
// hooks module to specified Box, this way the hook command could be called any time, not just at box creation.
As an example, you could have BoxOne be a floating widget and BoxTwo be your bar anchor, and have LSXCommand hooked to the bar by default and have the command hidden, then have a line like
*Hotkey Win Z !Execute [!CommandUnHook] [!CommandBoxHook BoxOne] [!LSBoxHide BoxTwo] [!LSBoxShow BoxOne]
// hides the bar, shows the floating widget, and moves LSXCommand to the floating widget
*Hotkey Win X !Execute [!CommandUnHook] [!CommandBoxHook BoxTwo] [!LSBoxHide BoxOne] [!LSBoxShow BoxTwo]
// hides the widget, shows the bar, hooks LSXCommand to the bar.
// hides the bar, shows the floating widget, and moves LSXCommand to the floating widget
*Hotkey Win X !Execute [!CommandUnHook] [!CommandBoxHook BoxTwo] [!LSBoxHide BoxOne] [!LSBoxShow BoxTwo]
// hides the widget, shows the bar, hooks LSXCommand to the bar.
Of course scripting could be set up to alter the command X/Y/W/H values and whatnot...
I'm just using LSXCommand as an example, I'd like to see the feature implemented in any module that supports box hooks :)