--- In [EMAIL PROTECTED], "brucexs" <[EMAIL PROTECTED]> wrote:
> Note that you cannot use *script runfile to pass arguments, I assume 
> you are actually using runfile.xxx()
> 

Actually, I was using a command list item
  Command : *Script
  Action : RunFile
  Expression : LoginKeys
and not passing in any parameters.  The arg(4) was being evaulated
from the HookWindowsEvent arguement to be the caption of the active
window.  Seemed to work fine, but I guess that's not expected or known
 behavior?

I changed it to runfile.xxx and passed in arg(4).  Same problem.

Also, the help appears to say you can pass in at least one parameter
using *Script runfile.  Doesn't say anything about two or more, but I
assumed it was possible.  (Or has this already been discovered and
removed from the next version?)

--------------Help file-------------------
*script run cmdlist     Runs all the Items in a command list as a script
*script run cmdlist @label      Starts at the item with Name: label
*script run cmdlist =value for x9       Passes one parameter in variable x9
*script runfile scriptfilepath  Runs a file as a script

Note: runfile and run take the same optional parameters:  @label 
and/or  =value for x9

Examples:       run mylist @startline =some text
        runfile "myscript" @startline =some text
        runfile "c:\some path\myscript.txt" @startline =&(myvar1)

 --------------end Help file-------------------
 
> I don't know whatis causing your problem.  Possibly there are blanks 
> or tabs or other characters on the lablled line?

Nope - my editor shows that.

I know this is one of those stupid questions, but did you try
commenting out the line that reads "if (arg(4) eq "Login")" and
running it from a HookWindowsEvent command list?  I think the problem
only occurs when the Jump command is executed inside the
HookWindowsEvent call.

I tried calling the script from a regular command list item using
runfile.xxx, and I couldn't repeat the error.  Only the
HookWindowsEvent command list caused it whether or not I used *Script
runfile or runfile.xxx.

If I comment out that line, I can't even start PP.  If I leave it
uncommented, I get the error when I bring up my login window.

Thanks for looking at this,
Paul






------------------------ Yahoo! Groups Sponsor --------------------~--> 
$9.95 domain names from Yahoo!. Register anything.
http://us.click.yahoo.com/J8kdrA/y20IAA/yQLSAA/JV_rlB/TM
--------------------------------------------------------------------~-> 

Attention: PowerPro's Web site has moved: http://www.ppro.org 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/power-pro/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to