--- In [EMAIL PROTECTED], "brucexs" <[EMAIL PROTECTED]> wrote:
>
> > I'm confused again. According to the help, @ is how you identify a
> label in
> > a script:
>
> Not if it is in a command list, although I shoudl probably loosen
> that restriction. The paragraph I quoted is from the help.
>
>
> >
> > To jump or loop, use
> >
> > Jump xxx
> >
> > to go to label xxx of the currently executing script for the next
> command.
> >
> > For command lists, the label is put in the menu item's Name field
> as xxx.
> >
>
> No @ for command lsits.
ok, I found that part of the help. It says:
---------------------------
In script files:
Jump label
Jumps to a labelled line which starts with @label
The rest of the line can be blank or it can include a command.
In command lists run as a script:
*Script Jump itemName
Jumps to an Item with Name itemName Unlike in script files,
the Name of the Item to be jumped to should not start with a @
---------------------------
Maybe I'm mis-understanding the line "In command lists run as a
script"? I have the code in a _separate script file_ that I call from
the command list item using the *Script runfile command, as opposed as
a list of commands in the More Command edit box. Given that, I
wouldn't think the "Command list run as a script" applies and thus I
should be using the @.
Regardless, I removed the @ sign from my label and tried again. Here
is my script
---------------------------
;This must be blank?
static KeysLoaded
if (arg(4) eq "Login")
Jump rkeys
if (KeysLoaded eq 1)
win.debug("Keys reset")
KeysLoaded = 0
quit
rkeys
win.debug("Keys set")
if (KeysLoaded eq 0)
KeysLoaded = 1
--------------------------
and here is the response from PP
--------------------------
Cannot find label in script file
rkeys
Error occurred near line 4 which contained:
KeysLoaded = 1
Press cancel to end all running scripts
--------------------------
After playing with this some more, I can get the script to work if I
play with the addition/removal of *Script in front of the Jump command
and the additional/removal of the @. However, there isn't a reliable
combination of the two that works every time, which seems to indicate
a bug, or something that I'm doing wrong in another part of PP, but so
far can't figure out what.
It's actually worked a couple of time, but never across a PP reboot.
I think that at some point, PP parses the file, picks up the label and
remembers it and then all is right in the world. Until I reboot PP,
and then the error re-occurs.
Thanks,
Paul
------------------------ Yahoo! Groups Sponsor --------------------~-->
Make a clean sweep of pop-up ads. Yahoo! Companion Toolbar.
Now with Pop-Up Blocker. Get it for free!
http://us.click.yahoo.com/L5YrjA/eSIIAA/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/