Speak, your mind... In Excel that is...
I think what i am posting is quite old of a stuff.
But oh well... Like I care...
Let excel "speak" what you type...
function speak {
param([string] $text = "Hello, World!")
$ex = new-object -com excel.application
$ex.speech.speak($text, $null, $null, $null)
}
now,
MSH> speak "your mind..."
Oh yeah, the problem is that, after each "speak", an instance of "excel" will be shown on your Task Manager. So if you would like to spam "speak", create an instance of excel object "outside" of function speak, then use that excel object repeately.
Bah, i am not sure how to dispose that $ex when it's out of scope of function speak yet. I thought it was gonna be done automatically... I guess i should mess around with scope, tomorrow...