Groups > Corel > Corel Paint Shop Pro Scripting > Re: Script




Re: Possible to change Drop Shadow DEFAULT?

Re: Possible to change Drop Shadow DEFAULT?
Mon, 31 Mar 2008 21:21:59 -050
Jan Shim wrote:
> 
> Hello!
> 
> I am using PSP 9 and I use the Drop Shadow feature a lot. So much so that
I
> now find the extra steps of selecting my custom preset annoying. It won't
> allow me to overwrite the default values so I wonder if/where I should go
to
> change the factory values.

The literal answer to your question is to get yourself a
decomplier and binary editor and use them to discover the
location the PSP executable to change and then change it.
Decompiling is, however, probably against the terms of the
user agreement for the software.

The better answer starts with the question "why on earth do
you want to do this?". If you always use the same settings
the program will remember these and the filter dialog will
open with the last-used settings, just like any other filter
in PSP, so you don't need to change any factory default. The
last-used setting is stored in the Windows registry. If you
only *sometimes* use certain settings and at other times use
others, this approach won't reliably do what you want. In that
case record a script which applies the filter with the settings
you want, save it and bind it to a button. Just push the button
to run the filter using your magic settings. If you want to
start with the settings and possibly adjust them, simply switch
to Interactive script execution before pressing the button that
starts the script. The dialog will come up populated with the
required values and will wait for your further input. The
bottom line is this: if the default setting doesn't meet your
Post Reply
Re: Possible to change Drop Shadow DEFAULT?
Tue, 1 Apr 2008 07:22:32 -0400
You can't change the factory default values, but you could record a script 
with your custom values, bind that script to an icon, and then define a 
shortcut key/key sequence for that script - then, at the touch of a button, 
you have your favorite Drop Shadow.  Suz

-- 
Suz Shook
C-Tech Volunteer


Jan Shim wrote:
> Hello!
>
> I am using PSP 9 and I use the Drop Shadow feature a lot. So much so
> that I now find the extra steps of selecting my custom preset
> annoying. It won't allow me to overwrite the default values so I
> wonder if/where I should go to change the factory values.
>
> Thanks.
>
>
> Jan Shim
> www.janshim.com 

Post Reply
Possible to change Drop Shadow DEFAULT?
Tue, 1 Apr 2008 10:02:15 +0800
Hello!

I am using PSP 9 and I use the Drop Shadow feature a lot. So much so that I 
now find the extra steps of selecting my custom preset annoying. It won't 
allow me to overwrite the default values so I wonder if/where I should go to 
change the factory values.

Thanks.


Jan Shim
www.janshim.com 

Post Reply
Re: Script
Tue, 01 Apr 2008 11:21:48 -050
Jan Shim wrote:
> 
> Spandex/SuzShook
> 
> I have tried scripting this countless times in the past and it failed.

When you are doing something wrong or something is not working
in the app the result will always be the same. If it fails you
expect it to fail consistently so "countless times" is not
evidence of anything significant.

> I've
> just given it another go and the script would not record the numerical
value
> changes in OFFSET and ATTRIBUTES.

Please prove this assertion since for me and everyone else
recording collects all the filter parameters in the script.
Take a look at the attachment where I have highlighted the
places where all the values are recorded. When this script
executes it uses the values stored in the script. You can
easily open a recorded script in Notepad and inspect the
values in it. If (as you claim) the script records no
settings then each of my highlighted items would be replaced
by the word None or would be absent entirely.

Are you absolutely sure you are saving a script (File >
Script > Start Recording) and not saving a preset in the
filter or doing something else that is not recording and
saving a script? Is it possible that in the search path for
scripts you already have a script with the same name as the
one you are saving? PSP does not allow duplicate resource
names and will use the first resource it finds with a given
name. This may not be the script you created last.

> Also, regardless of whether the script is
> set to Default, Interactive or Silent, the Drop Shadow box still prompts.

You must be extra special because in my case the script not
only contains the settings I recorded but it also obeys the
state of the Execution Mode Toggle icon in the Scripting
toolbar, just like other scripts. Click once and the script
executes interactively; click a second time and the script
executes silently without any prompts. Do ANY scripts run
correctly in your PSP, both with respect to using the
parameters inside the script and with respect to obeying
the execution mode? Don't just answer - try it first.

> The factory default values are Vertical 5 Horiz 5 and Opacity 50 Blur 3.00
> and even after I've changed these to 3, 3, 50, 15 during script recording,
> running it afterwards, the Drop Shadow box prompts with the factory
> defaults. I must have missed a step or two.

I think you have. It works for me and Suz is very experienced
with scripting and so she wouldn't be giving you nonsense
advice. However, nobody knows what steps you have missed and
how because you have said nothing at all about what PSP
commands you used step by step to create the script, the
content of your script (cut and paste it into a post), and
whether you have duplicate script names. Until you help us
to help you it's going to be hard to sort this out.

> Jan
> 
> "SuzShook" <suzshook@roadrunner.com> wrote in message
> news:47f21a8d$1_1@cnews...
> > You can't change the factory default values, but you could record a
script
> > with your custom values, bind that script to an icon, and then define
a
> > shortcut key/key sequence for that script - then, at the touch of a
> > button, you have your favorite Drop Shadow.  Suz
> >
> > --
> > Suz Shook
> > C-Tech Volunteer
> >
> >
> > Jan Shim wrote:
> >> Hello!
> >>
> >> I am using PSP 9 and I use the Drop Shadow feature a lot. So much
so
> >> that I now find the extra steps of selecting my custom preset
> >> annoying. It won't allow me to overwrite the default values so I
> >> wonder if/where I should go to change the factory values.
> >>
> >> Thanks.
> >>
> >>
> >> Jan Shim
> >> www.janshim.com
> >
Post Reply
Re: Script
Tue, 01 Apr 2008 11:25:02 -050
Spandex Rutabaga wrote:

> Please prove this assertion since for me and everyone else
> recording collects all the filter parameters in the script.
> Take a look at the attachment where I have highlighted the
> places where all the values are recorded.

Sorry, I accidentally omitted the attachment. Here it is.
Post Reply
<< Previous 1 2 Next >>
( Page 1 of 2 )
about | contact