/\/\o\/\/ PowerShelled

This blog has moved to http://ThePowerShellGuy.com Greetings /\/\o\/\/
$AtomFeed = ("Atom.xml")
$PreviousItems = (" The Scripting Games Event 6 in MSH "," Scripting Games week 2 "," Monad Links "," MSH Concentration (scripting games part 4) "," scripting games part 3 "," 2006 Winter Scripting Games (part 2) "," Monad hosting "," Get current user in Monad "," Different ways to do things in Monad, and some links "," 2006 Winter Scripting Games "," ")

Thursday, February 23, 2006


Scripting Games almost over

On this rest day, the article Don’t Worry, Get SAPI, is posted on the scripting guys site.

I will keep it short today, the rest is up-to-you

(new-object -com SAPI.SpVoice).speak((get-date)),

this Lets Monad say the date for you

Tomorrow a bigger post with the MSH solutions for the Events 7 and 8,

for both I have 2 solutions in MSH, and another last line for Event 6 (as of it is not edited enough ;-))

I think the scripts posted tomorrow will make real nice examples of the power of Monad,

Greetings /\/\o\/\/

Tags :

Anonymous Anonymous
Hmmm, power? Here's the simple VBScript equivalent

Blogger /\/\o\/\/
Thats why I kept it a this ;-)

I was talking about the scipts for event 7 and 8 .

but also in the former events I think are some good samples, the power of MSH in working with COM would be this :

MSH>(new-object -com "SAPI.SpVoice") | get-member

TypeName: System.__ComObject#{269316d8-57bd-11d2-9eee-00c04f797396}

Name MemberType Definition
---- ---------- ----------
DisplayUI Method void DisplayUI (int, string, string, Variant)
GetAudioOutputs Method ISpeechObjectTokens GetAudioOutputs (string, string)
GetVoices Method ISpeechObjectTokens GetVoices (string, string)
IsUISupported Method bool IsUISupported (string, Variant)
Pause Method void Pause ()
Resume Method void Resume ()
Skip Method int Skip (string, int)
Speak Method int Speak (string, SpeechVoiceSpeakFlags)
SpeakCompleteEvent Method int SpeakCompleteEvent ()
SpeakStream Method int SpeakStream (ISpeechBaseStream, SpeechVoiceSpeakFlags)
WaitUntilDone Method bool WaitUntilDone (int)
AlertBoundary Property SpeechVoiceEvents AlertBoundary () {get} {set}
AllowAudioOutputFormatChangesOnNextSet Property bool AllowAudioOutputFormatChangesOnNextSet () {get} {set}
AudioOutput Property ISpeechObjectToken AudioOutput () {get} {set by ref}
AudioOutputStream Property ISpeechBaseStream AudioOutputStream () {get} {set by ref}
EventInterests Property SpeechVoiceEvents EventInterests () {get} {set}
Priority Property SpeechVoicePriority Priority () {get} {set}
Rate Property int Rate () {get} {set}
Status Property ISpeechVoiceStatus Status () {get}
SynchronousSpeakTimeout Property int SynchronousSpeakTimeout () {get} {set}
Voice Property ISpeechObjectToken Voice () {get} {set by ref}
Volume Property int Volume () {get} {set}

gr /\/\o\/\/
Blogger Sung Meister
Wuah, I didn't even know that there exists SAPI...

I am downloading SDK right now to play around with... :)

Well hope you did well on Scripting Games there, /\/\o\/\/
Blogger /\/\o\/\/

I'm going for the Managed (.NET) version ;-)(winFX)

I finished the VB scripts, on the second day (like I do advent-calendars ;-), the MSH sitekick I did enjoy most ;-), I'm go to work on my last post now .

but for a quick preview, for Event 7 the MSH answer :

# 10 Points one-liner unsorted

gc C:\Scripts\Event_7.txt | foreach {$l = $_.split(",");"$($l[0];(([datetime]`"00:$($l[1])`").Add([timespan]`"00:$($l[2])`")).tostring('m:ss'))"}

and then look at the answer posted by the scripting guys.

@Anonymous (could a bit easier in VBscript also, but still I think not as easy as this )

but as said more is on the way ;-)

gr /\/\o\/\/
Blogger Sung Meister
I don't get [DateTime]`00? and [TimeSpan]`"00? ...

Oh yeah, would you be able to paste content of "C:\Scripts\Event_7.txt"? or if you can't, what the file is like? :)
Blogger /\/\o\/\/
Just posted the entry,
links are in there

gr /\/\o\/\/
Post a Comment

<< Home


October 2005   November 2005   December 2005   January 2006   February 2006   March 2006   April 2006   May 2006   June 2006   July 2006   August 2006   September 2006   October 2006   November 2006   December 2006  

$Links = ("PowerShell RC1 Docs"," PowerShell RC1 X86"," PowerShell RC1 X64"," Monad GettingStarted guide"," Monad Progamming Guide"," Monad SDK"," Monad videos on Channel 9"," MSH Community Workspace"," scripts.readify.net "," MonadSource"," www.reskit.net"," PowerShell Blog"," Under The Stairs"," computerperformance powershell Home"," proudlyserving"," MSH on wikipedia"," MSHWiki Channel 9"," Keith Hill's Blog"," Precision Computing"," PowerShell for fun"," MSH Memo (Japanese)"," monadblog")

find-blog -about "PowerShell","Monad" | out-Technorati.
find-blog -contains "","" | out-Technorati.
Web mow001.blogspot.com

This page is powered by Blogger. Isn't yours?