Page 1 of 1

Javascript: run MenuItem and change default values

Posted: Mon Dec 02, 2024 5:10 pm
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

Re: Javascript: run MenuItem and change default values  SOLVED

Posted: Tue Dec 03, 2024 12:09 am
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,

Re: Javascript: run MenuItem and change default values

Posted: Tue Dec 03, 2024 6:10 am
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

Javascript: run MenuItem and change default values

Posted: Tue Dec 03, 2024 10:18 am
by Stefan - PDF-XChange
:)