Is it possible to hide the script error screen that pops up?
Thanks!
Nancy
Hide script error pop-up
Moderator: Kathy_9
-
nanrector
- Posts: 65
- Joined: Wed Aug 08, 2012 12:58 pm
- System_Drive: C
- 32bit or 64bit: 64 Bit
- processor: Intel Core i7-8700 CPU 3.2GHz 6 Core
- ram: 32 GB
- Video Card: NVIDIA GeForce GTX 1070
- Hard_Drive_Capacity: 10 TB
- Corel programs: PSP 2019 Ultimate
- Location: Arizona
- Contact:
Hide script error pop-up
Nancy Ü
PSP X4
PSP X4
-
Cassel
- Posts: 1587
- Joined: Fri Oct 29, 2010 6:49 pm
- System_Drive: C
- 32bit or 64bit: 64 Bit
- ram: 16Gb
- Corel programs: PSP 8 (JASC) to PSP 2023
- Location: Canada
- Contact:
Re: Hide script errors
Since that is meant for you to notice the error, may i ask why you would want to hide it?
Cassel
https://creationcassel.com/store
Specializing in PSP specific products: scripts and tubes
https://scrapbookcampus.com
for beginner and seasoned scrappers and designers and other PSP users
https://creationcassel.com/store
Specializing in PSP specific products: scripts and tubes
https://scrapbookcampus.com
for beginner and seasoned scrappers and designers and other PSP users
-
nanrector
- Posts: 65
- Joined: Wed Aug 08, 2012 12:58 pm
- System_Drive: C
- 32bit or 64bit: 64 Bit
- processor: Intel Core i7-8700 CPU 3.2GHz 6 Core
- ram: 32 GB
- Video Card: NVIDIA GeForce GTX 1070
- Hard_Drive_Capacity: 10 TB
- Corel programs: PSP 2019 Ultimate
- Location: Arizona
- Contact:
Re: Hide script errors
Sure. I easily see when there is an error.. it makes a sound and I can see its not working. But I have to stop and physically close down that error window when it happens. I could have swore there was a setting for turning it off in past versions but I can't seem to find it.Cassel wrote:Since that is meant for you to notice the error, may i ask why you would want to hide it?
Nancy Ü
PSP X4
PSP X4
-
LeviFiction
- Advisor
- Posts: 6831
- Joined: Thu Oct 02, 2008 1:07 pm
- System_Drive: C
- 32bit or 64bit: 64 Bit
- motherboard: Alienware M17xR4
- processor: Intel Core i7-3630QM CPU - 2_40GH
- ram: 6 GB
- Video Card: NVIDIA GeForce GTX 660M
- sound_card: Sound Blaster Recon3Di
- Hard_Drive_Capacity: 500GB
- Corel programs: PSP: 8-2023
- Location: USA
Re: Hide script errors
Are you a script user? Or a script author?
The two common ways of doing what you're asking are code based. Like using Try and Catch statements as well as turning off one of the filter settings using the appropriate scriptOutputWnd command.
For standard users, running the command in silent mode will remove the message box but the error will still pop up in the script output window. We can create a script that lets you change the script output filter setting as well but need to know if we should be giving you code, or just helpful information.
The two common ways of doing what you're asking are code based. Like using Try and Catch statements as well as turning off one of the filter settings using the appropriate scriptOutputWnd command.
For standard users, running the command in silent mode will remove the message box but the error will still pop up in the script output window. We can create a script that lets you change the script output filter setting as well but need to know if we should be giving you code, or just helpful information.
https://levifiction.wordpress.com/
-
nanrector
- Posts: 65
- Joined: Wed Aug 08, 2012 12:58 pm
- System_Drive: C
- 32bit or 64bit: 64 Bit
- processor: Intel Core i7-8700 CPU 3.2GHz 6 Core
- ram: 32 GB
- Video Card: NVIDIA GeForce GTX 1070
- Hard_Drive_Capacity: 10 TB
- Corel programs: PSP 2019 Ultimate
- Location: Arizona
- Contact:
Re: Hide script errors
I create scripts to make certain steps quicker for me when working with images. I don't mind the pop-up alert... it's the script output box that is inconvenient just because I have to manually get rid of it because it covers up my items on the right.


Nancy Ü
PSP X4
PSP X4
-
LeviFiction
- Advisor
- Posts: 6831
- Joined: Thu Oct 02, 2008 1:07 pm
- System_Drive: C
- 32bit or 64bit: 64 Bit
- motherboard: Alienware M17xR4
- processor: Intel Core i7-3630QM CPU - 2_40GH
- ram: 6 GB
- Video Card: NVIDIA GeForce GTX 660M
- sound_card: Sound Blaster Recon3Di
- Hard_Drive_Capacity: 500GB
- Corel programs: PSP: 8-2023
- Location: USA
Re: Hide script errors
Then technically your easiest methods are
1) Dock the script output palette tot he bottom of the layers palette and shrink it as far as it will go. Yes it still takes up space, but very little. And since it's already open it won't pop up anymore. Errors will just be written to it, and you won't know.
An added benefit of docking is PSP should remember that it was docked. So if you dock it and then close it, the next time it pops up it'll pop up docked and at the same size you had it set to. So this prevents it from getting in your way.
2) You can also auto-hide the palette after you've docked it. This way it will pop up when an error occurs but will immediately hide itself again. This lets you know an error happened but it gets out of your way quickly.
3) You can also just hit Shift + F3 on your keyboard to make it disappear once it pops up.
----------------
If you're looking to prevent it popping up at all there are two options.
1) ScriptWndFilterLevel - this command will let you select what sort of output the Script Output window should use. "None" prevents all output to the window from PSP. Including errors.
This script when run will show the dialog letting you change those settings.
2) ScriptWndAutoShow - this command when set to False will prevent the script output palette from automatically popping up. The only way you'll see the errors is if you have the palette open.
1) Dock the script output palette tot he bottom of the layers palette and shrink it as far as it will go. Yes it still takes up space, but very little. And since it's already open it won't pop up anymore. Errors will just be written to it, and you won't know.
An added benefit of docking is PSP should remember that it was docked. So if you dock it and then close it, the next time it pops up it'll pop up docked and at the same size you had it set to. So this prevents it from getting in your way.
2) You can also auto-hide the palette after you've docked it. This way it will pop up when an error occurs but will immediately hide itself again. This lets you know an error happened but it gets out of your way quickly.
3) You can also just hit Shift + F3 on your keyboard to make it disappear once it pops up.
----------------
If you're looking to prevent it popping up at all there are two options.
1) ScriptWndFilterLevel - this command will let you select what sort of output the Script Output window should use. "None" prevents all output to the window from PSP. Including errors.
Code: Select all
from PSPApp import *
def ScriptProperties():
return {
'Author': u'',
'Copyright': u'',
'Description': "",
'Host': u'Corel PaintShop Pro',
'Host Version': u''
}
def Do(Environment):
ScriptOutputLevel = App.Do(Environment, 'ScriptWndFilterLevel',{'GeneralSettings': {'ExecutionMode': App.Constants.ExecutionMode.Interactive}})
2) ScriptWndAutoShow - this command when set to False will prevent the script output palette from automatically popping up. The only way you'll see the errors is if you have the palette open.
Code: Select all
from PSPApp import *
def ScriptProperties():
return {
'Author': u'',
'Copyright': u'',
'Description': "",
'Host': u'Corel PaintShop Pro',
'Host Version': u''
}
def Do(Environment):
ScriptOutputLevel = App.Do(Environment, 'ScriptWndAutoShow',{'Enable': False})
https://levifiction.wordpress.com/
-
nanrector
- Posts: 65
- Joined: Wed Aug 08, 2012 12:58 pm
- System_Drive: C
- 32bit or 64bit: 64 Bit
- processor: Intel Core i7-8700 CPU 3.2GHz 6 Core
- ram: 32 GB
- Video Card: NVIDIA GeForce GTX 1070
- Hard_Drive_Capacity: 10 TB
- Corel programs: PSP 2019 Ultimate
- Location: Arizona
- Contact:
Re: Hide script errors
I'll choose #2... where it shows but then closes. That's perfect! I didn't even think about docking it which I should have. I've never used autohide so I forgot that was even a choice. I sure appreciate you taking the time to do all that. It was a small thing but it was still inconvenient to mess with. Plus being aware of #2 option will come in handy for other things.
Have an awesome day!
Nancy Ü
Have an awesome day!
Nancy Ü
Nancy Ü
PSP X4
PSP X4
