! MouseHole 1.3 on its way -- let's talk about it
why the lucky stiff
why at hobix.com
Tue Dec 13 02:15:43 EST 2005
Okay, I've just checked in the new user script code, which uses a little
bit of mettyklass spongery to clean things up. Please try it out with
yer user scripts and tell me if it breaks things bad. There is one
incompatibility with the Writeboards user script which couldn't be
helped and that's okay. It's minor.
The hardest thing to get used to is that the scripts now act much more
like class definitions since they are evaluated in the scope of a
mediklasss. So, for example, if you're trying to do something like this
in the definition:
@link = "<a href='#{self.mount}'>Click!</a>"
That won't work any more. You're going to want to set those up in
`initialize'.
= TODO!! =
I really need help with a few items IF ANYONE CAN SPARE A MOMENT! There
are basically two things I'd really like to wrap up and I am desperate
for your unique talents and grace!!
1. The Net::HTTPIO class is slow and blame awful. It needs a recode.
It's only ninety-eight lines long, so it's not too much work really.
But I really need another approach. This is the lynchpin on MouseHole's
success. If we speed this up and keep it from blockin threads, then
we're basically fast.
2. I need some kind of a way for scripts to call each other. For
example, what if the Hoodwink'd script could store little commands in
MouseCommand?? That would be nifty and let's spoil me! Maybe we could
expose methods to other scripts like:
export :add_mouse_command do |cmd|
end
Anyway, yank from Subversion. I am on travels right now, so I'm not
around much, but sometime tomorrow for sure.
_why
More information about the Mousehole-scripters
mailing list