[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [MacPerl-Toolbox] HAL Lives!



> The redraw hook is not called until the next WaitNextEvent or two. You
> can either put in a few WNEs, or call it yourself.

I tried three WNEs after calling &setup_hal, which works, but seems 
rather inelegant. Not sure exactly how to go about it the other way (I'm 
back to feeling daft again).

>> $65,000 question: has anyone ever done anything with SpeechRecognition.pm?
>
>Yes. ( And shouldn't that be $65,535? :)

I've set the idea of tackling this aside for the moment, and no, that 
would be the $64K question.  It was an obscure reference to begin with.

>> How to detect monitor resolution, and center HAL in the screen, regardless?
>
>GetMainDevice()->gdRect will return the boundaries of the main screen.
>See demo program at end for example.

Okay, saw demo.  Did syntax check on same. I get:

# Can't call method "dispose" without a package or object reference.
File '<AppleEvent>'; Line 38

Line 38:

END {$win->dispose}

works better as:

END {
	$win->dispose() if (defined($win));
	}

but I'm just being picky.


# Fungal Parataxonomy                   Mycology Information (Mycoinfo)
# Webmaster, Staff Writer      **The World's First Mycology E-Journal**   
# <mailto:webmaster@mycoinfo.com>            <http://www.mycoinfo.com/> 
#
# First they ignore you. Then they laugh at you. Then they fight you.
# Then you win.                                     --Mohandas Gandhi


==== Want to unsubscribe from this list?
==== Send mail with body "unsubscribe" to macperl-toolbox-request@macperl.org