Javascript: run MenuItem and change default values  SOLVED

Forum for the PDF-XChange Editor - Free and Licensed Versions

Moderators: Daniel - PDF-XChange, PDF-XChange Support, Vasyl - PDF-XChange, Chris - PDF-XChange, Sean - PDF-XChange, Paul - PDF-XChange, Ivan - Tracker Software, Stefan - PDF-XChange

Post Reply
User avatar
yogi108
User
Posts: 76
Joined: Thu Mar 09, 2017 9:13 am
Contact:

Javascript: run MenuItem and change default values

Post by yogi108 »

Hi Guys,

It's been a few years since my last post and I'm a bit off the Javascript topic.

If I call up a menu in Javascript, can I change the default values of the displayed dialogue in Javascript?

E.g.

Code: Select all

app.execMenuItem("cmd.document.splitPages");
change the vertical and/or horizontal separators,
Use all pages or only 1
etc.

Kind Regards

PS: PDF-X-Change Editor V8, 336.0
"You cannot know the meaning of your life until you are connected to the power that created you.”
Shri Mataji Nirmala Devi, founder of Sahaja Yoga
User avatar
Daniel - PDF-XChange
Site Admin
Posts: 10876
Joined: Wed Jan 03, 2018 6:52 pm

Re: Javascript: run MenuItem and change default values  SOLVED

Post by Daniel - PDF-XChange »

Hello, yogi108

I am sorry to say that I do not believe that JS is able to influence the default values of various commands resultant window, no... Those changes would need to be done manually.

Kind regards,
Dan McIntyre - Support Technician
PDF-XChange Co. LTD

+++++++++++++++++++++++++++++++++++
Our Web site domain and email address has changed as of 26/10/2023.
https://www.pdf-xchange.com
Support@pdf-xchange.com
User avatar
yogi108
User
Posts: 76
Joined: Thu Mar 09, 2017 9:13 am
Contact:

Re: Javascript: run MenuItem and change default values

Post by yogi108 »

TrackerSupp-Daniel wrote: Tue Dec 03, 2024 12:09 am Hello, yogi108

I am sorry to say that I do not believe that JS is able to influence the default values of various commands resultant window, no... Those changes would need to be done manually.

Kind regards,
I thought so, just wanted to make sure.
Hadn't found anything about it in the forum either.

So I programmed most of it with autohotkey.

Thanks for the good work :D ,
Regards
"You cannot know the meaning of your life until you are connected to the power that created you.”
Shri Mataji Nirmala Devi, founder of Sahaja Yoga
Post Reply