Jump to content

Basic Print Script w/ User Options


This topic is 6527 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Hello Fellow/Female Datamates,

I am looking for some help on a print script, heres the idea…

———————

Go to layout, new window

enter preview mode

window adjust to fit

pause script, indefinitely

- User option CANCEL

close window

go to original layout

enter edit mode

window size to fit

- User option PRINT

print

close window

go to original layout

enter edit mode

window size to fit

———————

Basically, I'm looking for HOW-TO run script with IF option this do that, and IF option that do this. The two options I will need in this script is CANCEL or PRINT.

Thank you for any help!

Link to comment
Share on other sites

Check out the Get(lastMessageChoice) function.

This allows you to determine the button selected by the user from a dialog choice. from there you can direct your script(s). Roughly speaking...

If Get(LastMessageChoice) = 1

Perform script(PRINTSCRIPT)

Else

Perfrom script(CANCELSCRIPT)

End

Link to comment
Share on other sites

Hello IdealData,

How would I give user the "choice" of PRINT or CANCEL?

I want this to work like the (Allow User to Abort)on/off).

e.i. if allow user to abort is on, then gives choice of CONTINUE or CANCEL.

I believe I will be able to use your if(get last choice) once I understand how to give the user the choice.

This just came to me as I am writing, Maybe I can use the (Allow User to Abort to detirmin the next script step. I will try this now. And if it works then, next question is… can i change what the text on choice, e.i. change CONTINUE to PRINT???

Thank you very much for your reply.

Link to comment
Share on other sites

This topic is 6527 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.