Hi guys,
I've read what the Help file has to say with regard to what is now
accepted as importing into .PCF files, and it seems that CL.SavePCF()
is the command I want if I want to save my changes permanently into
the file.
And therefore, modifications to a .PCF file via a script would be done
via this command.
However, at the moment I am having trouble with it and I don't know
why�� what I am trying to do is save a new command list, created via
my script, to the .PCF file. Here is the code I'm using:
; --- script starts here
Static CmdList
If(CL.Exists(CmdList)) Do
CmdList = CL.RemoveAll(CmdList)
Else
For(CmdList = "ColourSpy"; CL.Exists(CmdList))
CmdList = "ColourSpy_" ++ (Random(900) + 100)
EndFor
CL.Create(CmdList)
; --- all one line below
CL.SetProperties(CmdList, "Skin=ColourSpy\\Skin.txt\nFormat=Flat TopMost ToolTips
AllVDesks")
; --- all one line above
CL.Insert(CmdList, 0)
CL.SetLabel(CmdList, 0, "*Info expr([EMAIL PROTECTED])")
CL.SetToolTip(CmdList, 0, CmdList)
CL.AddLeft(CmdList, 0, "*Format", "Drag")
CL.Insert(CmdList, 1)
CL.SetToolTip(CmdList, 1, "Help")
CL.AddLeft(CmdList, 1, "[EMAIL PROTECTED]")
CL.Insert(CmdList, 2)
CL.SetToolTip(CmdList, 2, "Close")
CL.AddLeft(CmdList, 2, ".&(ScriptName)")
CL.Insert(CmdList, 3)
CL.SetToolTip(CmdList, 3, "Copy mouse position")
CL.AddLeft(CmdList, 3, "[EMAIL PROTECTED]")
CL.Insert(CmdList, 4)
CL.SetEnabled(CmdList, 4, 0)
CL.Insert(CmdList, 5)
CL.SetToolTip(CmdList, 5, "Copy red RGB component")
CL.AddLeft(CmdList, 5, "[EMAIL PROTECTED]")
CL.Insert(CmdList, 6)
CL.SetToolTip(CmdList, 6, "Copy green RGB component")
CL.AddLeft(CmdList, 6, "[EMAIL PROTECTED]")
CL.Insert(CmdList, 7)
CL.SetToolTip(CmdList, 7, "Copy blue RGB component")
CL.AddLeft(CmdList, 7, "[EMAIL PROTECTED]")
CL.Insert(CmdList, 8)
CL.SetToolTip(CmdList, 8, "Copy all RGB values")
CL.AddLeft(CmdList, 8, "[EMAIL PROTECTED]")
CL.Insert(CmdList, 9)
CL.SetToolTip(CmdList, 9, "Copy hex value")
CL.AddLeft(CmdList, 9, "[EMAIL PROTECTED]")
CL.SavePCF()
Bar.Show(CmdList)
EndIf
; --- script ends here
Is there any obvious reason as to why I'm not seeing a new command
list stored in the .PCF when I open PProConf after I run the script?
--
Alex Peters / Melbourne, Australia
PowerPro v3.8.18 / Windows XP
------------------------ 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
--------------------------------------------------------------------~->
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/