Trouble with macro including a URL with a underscore
Submitted by Projectpaperclip on Tue, 02/12/2008 - 23:50.
The underscore in the URL in the below macro is causing problems; does anyone know how to get this to work correctly?
Post this news article = "{Shift+tab}{Ctrl+v}{tab}"Wait(100)"{Ctrl+v}{enter}"Wait(100)"[URL]{Ctrl+v}[/URL]{tab_2}{space}"Wait(3000)"{Alt+d}'http://www.desticam.com/_forum/posting.php?mode=post&f=3'{enter}{f3}";



I don't know what scripting
I don't know what scripting system you're using. Therefore, I don't know which underscore is causing a problem -- "tab_2" and/or "_forum". Also, the format of the example is a nuisance. An occasional line break would be a relief to someone who comes on this example for the first time.
FWIW, do you know for sure which underscore is causing a problem? The "tab_2" looks odd to me -- in the scripting systems I know it would be written "tab 2".
Bruce
PS: As I was clicking off I noticed the qualifier "URL", which resolves one of my problems. Still, "tab_2" doesn't look right, but that judgement may reflect my ignorance.
It is a Vocola script, the
It is a Vocola script, the "tab_2" just tells the program to hit the tab key twice.
The underscore in the URL is what is causing the problem; it shows up as a space in the address bar; evidently Vocola thinks it should be a space.
Thank you for the help and ideas.
I have
I have information/disinformation:
The information is that I have recently seen a discussion of problems relating to the use of the underscore in Vocola
The disinformation is that I can recall neither the source nor the substance
Maybe someone with better memory can help you out.
Bruce
The discussion I saw
The discussion I saw occurred in the VoiceCoder list regarding an updated/unified Vocola/UniMacro installation. So far as I can tell, the underscore is a special character in Vocala -- global command files must begin with an underscore.
Quintijn Hoogenboom, who seems to be responsible for most of the new work, comments:
"About your question to have non-letters in filenames of grammar files. Now it is possible to have [a-zA-Z0-9_] in filenames. I did only once experience this as a limitation, a program that was called something like edit++.
The implication seems to be that the problem has been overcome with the latest set of Vocola files, so maybe an update would fix your problem.
In any case, maybe you could direct an inquiry to him.
HTH,
Bruce
_'s between {}'s are treated
_'s between {}'s are treated as spaces in Vocola.
You'll need to break up your quotation to get it to work:
Post this news article = "{Shift+tab}{Ctrl+v}{tab}" Wait(100) "{Ctrl+v}{enter}" Wait(100) "[URL]{Ctrl+v}[/URL]{tab_2}{space}" Wait(3000){Alt+d} "'http://www.desticam.com/_forum/posting.php?mode=post&f=3'" {enter}{f3};
Note that the URL string does not contain any braces.
(Vocola currently uses an extremely primitive test for is an _ within {}s that does not take nesting into account; Rick and I have discussed fixing this in a future version.)
mdl wrote: _'s between {}'s
_'s between {}'s are treated as spaces in Vocola.
You'll need to break up your quotation to get it to work:
Post this news article = "{Shift+tab}{Ctrl+v}{tab}" Wait(100) "{Ctrl+v}{enter}" Wait(100) "[URL]{Ctrl+v}[/URL]{tab_2}{space}" Wait(3000){Alt+d} "'http://www.desticam.com/_forum/posting.php?mode=post&f=3'" {enter}{f3};
Note that the URL string does not contain any braces.
(Vocola currently uses an extremely primitive test for is an _ within {}s that does not take nesting into account; Rick and I have discussed fixing this in a future version.)
Thank you very much; that works nearly perfectly. I just had to remove the apostrophes within the quotes surrounding the URL. The apostrophes were being sent so that is why I removed them.