News:

VC = Vox = VoxCommando
EG = EventGhost
WMC = Windows Media Center
WSR = Windows Speech Recognition

Main Menu

Flexibility of RegEx and replacing text

Started by SexGecko, December 19, 2011, 06:19:51 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

SexGecko

I'm finally getting back into toying around with this and I was wondering how easy it would be to replace text in my variables.

I have something like:

Get weather command
Results.storelast into {weather}
???
TTS. Speak {weather}

But in the "???" I'd like to replace some text
(for example instead of saying "ten degrees see(C)" I'd rather it be "centigrade" or something.
And instead of saying "Wine-d ess double-you (Wind SW), maybe something as ambitious as "A south-westernly wind"(Note said "win'd" not "wine-d"))

I can figure out the logic fine I'm sure, I'm just not sure how to replace text within my variables properly, your help would be much appreciated.

jitterjames

sorry, this one slipped through the cracks.  Do you still need help with this?

Are you using the google weather plugin, or scraping text by yourself?

What version of VC are you using?