Group : Top-tier Member
Active : 05/16/2010 @ 04:50 PM
Posts : 172
So here's a mistery that I've been trying to solve, actually by posting the question on the Speech Computing forum after having done lots of trial and error:
I have created a command line macro that opens a RoboForm passcard from a list and logs me in. The login is determined by the command line parameter "l". I use the macro on my XP machine without problems.
The same macro doesn't work under Vista, even though I have the same RoboForm version installed. It only opens the passcard, but there's no login. I've tried ShellExecute as an alternative, using the parameter with and without quotes, but it keeps getting ignored, as are all other parameters (e.g. "g".
Here's the macro
Sub Main AppBringUp Environ ("mydocs" & "\My RoboForm Data\Default Profile\" & Mid(ListVar1,1,InStr(ListVar1,"\"-1), , "l" End Sub
The command line parameter works fine with a different program that I use for launching RoboForm passcards. Desktop Shortcuts also work with the parameter. Only Dragon (Advanced Scripting) doesn't get it.
Any ideas on what might cause this problem? And more importantly: Might there be a solution?
Thanks,
Boris
DNS 10 German & French ProDual Boot Windows XP Pro SP3 Ger & Vista Ultimate SP2 Eng. Fujitsu-Siemens S7110 notebook, Intel Core2 T2300, 2x 1.66 GHz, 4 GB RAM, L2 2MB; Mic: Sennheiser CC 550.
Thread Moderated by Lunis Orcutt on the 12/27/2009 @ 07:23 PM Reason : Clarified the command by adding a JPEG
Group : Top-tier Member
Active : 03/29/2010 @ 02:22 PM
Posts : 224
Thread has been edited.
Edit Count :
7 times.
Date Last Edited :
12/30/2009
Time Last Edited :
01:08 PM
I would try forming the expression first, then passing it:
<code> Sub Main var$ = Environ ( "mydocs" ) & "\My RoboForm Data\Default Profile\" & Mid ( ListVar1, 1, InStr ( ListVar1 , "\" ) -1 ), , "l" AppBringUp var$ End Sub </code>
But, perhaps you are missing some quotes on the last part to concatenate? As in:
<code> Sub Main var$ = Environ ( "mydocs" ) & "\My RoboForm Data\Default Profile\" & Mid ( ListVar1, 1, InStr ( ListVar1, "\" )-1 ) & ", , l" AppBringUp var$ End Sub </code>
or for clarity:
<code> Sub Main var$ = Environ ( "mydocs" ) var$ = var$ & "\My RoboForm Data\Default Profile\" var$ = var$ & Mid ( ListVar1, 1, InStr ( ListVar1, "\" ) -1 ) var$ = var$ & ", , l" AppBringUp var$ End Sub </code>
Hth,
And HAPPY NEW YEAR to all!!
[EDITED to try and get rid of emoticons - it used on this forum that if you put your stuff between [code] and [/code] tags, you could avoid the smilies. Also, trying [pre] and [/pre] (which are the usual ht tags to use for code) and their ht forms and which at least does the formatting. Finally resorted to using spaces.]
PG
DNS 9.5 Pro Gen-Large Vocab, on various high-speed, lots of memory, AMD and Intel-based PCs (home, office, laptops) and Plantronics CS50-USB mics - using local user in default directory that is imported and exported as needed to USB flash drive for portability.
Group : Top-tier Member
Active : 05/16/2010 @ 04:50 PM
Posts : 172
Thread has been edited.
Edit Count :
1 times.
Date Last Edited :
01/02/2010
Time Last Edited :
03:12 PM
PG LTU,
Thanks, but it didn't work. All I get is an error message like "file not found".I think that the commandline parameter is not concatenated correctly when the file path is being split up.
After tinkering some more with the code and trying to create a keyboard macro I have resorted to using hotkeys to launch the PassCards.
Boris PS: Happy New Year, belatedly!
DNS 10 German & French ProDual Boot Windows XP Pro SP3 Ger & Vista Ultimate SP2 Eng. Fujitsu-Siemens S7110 notebook, Intel Core2 T2300, 2x 1.66 GHz, 4 GB RAM, L2 2MB; Mic: Sennheiser CC 550.
Group : Top-tier Member
Active : 05/16/2010 @ 04:50 PM
Posts : 172
Just a short note: After reinstalling Windows XP on a different computer I get the same problem that I have on my Windows Vista machine. Instead of logging in RoboForm just opens the passcard. Dragon is very mysterious again... Go figure! Boris
DNS 10 German & French ProDual Boot Windows XP Pro SP3 Ger & Vista Ultimate SP2 Eng. Fujitsu-Siemens S7110 notebook, Intel Core2 T2300, 2x 1.66 GHz, 4 GB RAM, L2 2MB; Mic: Sennheiser CC 550.