Is there any way to reload a module, even xLabel itself, and get it to hook back into a xLabel without a recycle? Currently that's one of the annoying things I'm dealing with, tinkering, and between xLabel and many popups, recycling isn't so speedy.
Does anyone know if what the module Kidnap does is the same as hooking? (it's able to capture and release windows)
Currently I don't understand why themes have to be made so that they have to be recycled often and/or during normal usage.
Enlighten me.
Smurth said you can "hook around" at runtime in here:
http://www.litestep.net/index.php?section=4&action=view&catId=3&id=2002&hl=skinbox
however, he didn't go into details.
He went into as much detail as Rabidcow did in another thread...both ones I made, oddly enough.
If it could be scripted, I'd love to do it. !Reload and !NetReLoadModule get anything that isn't hooked done, but right now that's all of...Popup2 :/.
Untested, but I think this should do the trick:
*script var P "%"
*script bang !HookModule
; *ModuleHook !HookModule (name) (real hook bang)
; - to load it the first time
; !HookModule (name)
; - to rehook the module later
*script gotoif ("%{\2}" = "") done
*script exec !VarSet i "2"
*script label loop
*script exec !IfEval ("%{P}{\%{i}}" = "") !VarRemove i
*script exec gotoif ("%{i}" = "") done
*script exec !VarSet %{\1}HookCommand "%{P}{%{\1}HookCommand} %{P}{\%{i}}"
*script exec !VarAdd i "1"
*script goto loop
*script label done
*script exec !exec %{P}{%{\1}HookCommand}
*script ~bang
about the recycle time, try to load the xlabel version equivalent to xlabellight 1.1, if youre on 2.8 or 2.9 youll solve your recycle time problem.
Even with a different xLabel, it still takes awhile. Popup is just not speedy at loading when you have several popups.
...and Popup is the one module that doesn't need any hooking, and does just fine with a simple !reload and !netreloadmodule.
Ideally, being able to destroy the label, reload the module, and then recreate the label should do it. It works for LsBox usually. The trouble there being that !LabelCreate doesn't work.