Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - rudmei

Pages: [1]
1
Tips and Tricks / Re: Extended Conversation
« on: September 17, 2010, 09:37:10 AM »
This would be particularly useful if we could pass command line parameters to the vbscript and then use them as variables.  Do you know how to do that?  That way for example, if Vox requested a bunch of now playing information from WMC (or XBMC etc) we could pass it to the vbscript and then you could do whatever you want with it.

Oh, yes! Look at my posting http://voxcommando.com/forum/index.php?topic=73.0. It's a small calculator where VoxCommando passes "numbers and an operator" as parameter to the VBScript. The script evaluates the parameters and "tells" the (hopefully right) result...

2
Tips and Tricks / Exercise in arithmetics, let the computer calculate
« on: September 17, 2010, 09:20:43 AM »
With a small VBScript you can let your computer calculating some arithmetic exercises.
Here is my approach:

I want to tell her (my computer) the exercise like  "how much is 70 divided by 12" or "how much is 12 minus 19"
Voxcommando can handle this structure very easily:

see picture1, I defined the starting phrase "vieviel ist" (how mich is), then a payload range for the numbers (1 to 1000), then a payload xml-file for the operators (see picture2) and then again a payload range for the second number




Payload for operators:




Here is the VBScript:

Code: [Select]
' read the command line options
' e.g. 5 + 3
'
Dim message,sapi,parameter,objarguments

set sapi = CreateObject("sapi.spvoice")
Set WshShell = WScript.CreateObject("WScript.Shell")

Set objarguments = WScript.Arguments
For i = 0 to objarguments.Count - 1
    parameter= parameter + " " + objarguments(i)
Next


message =  " das macht " & eval(parameter)
sapi.Speak message

Last but not least tell VoxCommando to lauch the calculating VBScript with the three parameters (see Picture3)




OK, that's it, have fun!

3
Tips and Tricks / Extended Conversation
« on: September 17, 2010, 04:37:32 AM »
I love it! I got a german female voice and with the tts feature of VoxCommande she (my computer) has always the final say - I call it a "real life simulation"  ;)

The enhancement is that tts can also be controlled by other applications and scripts.
For example, it is very easy to let your computer talk to you by a VBScript:

Code: [Select]

Dim sapi,ttsmessage
set sapi = CreateObject("sapi.spvoice")

'---------------------------------------------------
'
'put your code here and fill the variable ttsmessage
'
'e.g. ttsmessage = "here I am."
'
'---------------------------------------------------

sapi.Speak ttsmessage


Save the script and in VoxCommando you only have to use the command 'launch' with the path and filname of your script

4
WMC / Re: windows media center plugin
« on: September 14, 2010, 01:36:20 AM »
just need to know if i can use switches on the command line?

try && to seperate commad from parameters (ref no 2 here: http://voxcommando.com/forum/index.php?topic=37.msg115#msg115)


Pages: [1]