--- In [email protected], "quantiworks" <quantiwo...@...> wrote:
>
> I've downloaded the script FlexLaunch and I'm testing it right
> now. I've set it up as described in the script notes, however,
> some commands don't work, such as the PATH and the Aliases.
> 
> here's some examples:
> 
> ::: typing cmd
> 

I downloaded it, took a look, and got it to work in current generation
standard configuration Powerpro pretty easily.

First, needed to make ALL strings containing backslashes into literal
strings. Changed for example:
ElseIf( index(_Target, ":\") == 2 or index(_Target, "\\") == 1 )Do
to
ElseIf( index(_Target, ?":\") == 2 or index(_Target, ?"\\") == 1 )Do

Also had to remove the ampersand from this line:

        _Target = &(replacechars(alias, _PHStr, params))

That will probably do for you, if not let me know. I have "must
declare variables enabled" so I also had to define several missing
variable scopes.

Regards,
Sheri




> ---------------------------
> PowerPro
> ---------------------------
> Bad expression:  invalid operator at
> \\") == 1 )
> ( index(_Target, ":\") == 2 or index(_Target, "\\") == 1 )
> 
> Error occurred near line 203 of script scr_launch_cont...@flexlaunch:
>     ElseIf( index(_Target, ":\") == 2 or index(_Target, "\\") == 1 )Do
> 
> Called from line 1 of script HookCommandLine
> 
> Press Cancel to end all running scripts.
> ---------------------------
> 
> 
> 
> ::: typing the alias: pi
> 
> ---------------------------
> PowerPro
> ---------------------------
> Invalid use of period: cannot load plugin, invalid handle value, or
invalid 
> function:  cmd
> 
> Error occurred near line 165 of script scr_launch_cont...@flexlaunch:
>         _Target = &(replacechars(alias, _PHStr, params))
> 
> Called from line 1 of script HookCommandLine
> 
> Press Cancel to end all running scripts.
> ---------------------------
> 
> 
> ::: typing the alias: test
> 
> ---------------------------
> PowerPro
> ---------------------------
> Bad expression:  invalid number, string,  or variable at
> *Message 2 Hello World
> *Message 2 Hello World
> 
> Error occurred near line 165 of script scr_launch_cont...@flexlaunch:
>         _Target = &(replacechars(alias, _PHStr, params))
> 
> Called from line 1 of script HookCommandLine
> 
> Press Cancel to end all running scripts.
> ---------------------------
> 
> 
> any help appreciated...
>


Reply via email to