• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Prompt window relocated

Explorer ,
Aug 13, 2022 Aug 13, 2022

Copy link to clipboard

Copied

A quick question. Can the prompt window be relocated? And where can I find documentation on the prompt command? Many thanks!

TOPICS
Scripting

Views

603

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Guide , Aug 13, 2022 Aug 13, 2022

You'll find the documentation for prompt() in the "User Interface Tools" chapter of the "JavaScript Tools Guide".  Similar to @Charu Rajput, I don't think you can change its location.  You can, however, create your own dialog window whose location you can change.

var input;
var w = new Window("dialog");
    w.location = [100, 100];
var edittext1 = w.add("edittext", undefined, "");
    edittext1.preferredSize.width = 300;
    edittext1.active = true;
var button1 = w.add("button", undefined, "OK");
...

Votes

Translate

Translate
Adobe
Community Expert ,
Aug 13, 2022 Aug 13, 2022

Copy link to clipboard

Copied

Can you post a screenshot or anytjing that would make it clearer as to what you are asking?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Aug 13, 2022 Aug 13, 2022

Copy link to clipboard

Copied

I know this is rather insignificant, but I find dragging the prompt window aside to see underlying data rather bothersome.  So, I have been trying to see if I could set the location of the prompt window to a different location.  Screen shot one is where the location of the prompt window defaults too.  Screen shot two shows where I would like it to open.  Hope this makes sense.  Thank you for your attention and time!

Over and out, Kent

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Aug 13, 2022 Aug 13, 2022

Copy link to clipboard

Copied

I don't think it is possible.

We cannot customize the position of the prompt as per my knowledge.

 

Best regards

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guide ,
Aug 13, 2022 Aug 13, 2022

Copy link to clipboard

Copied

You'll find the documentation for prompt() in the "User Interface Tools" chapter of the "JavaScript Tools Guide".  Similar to @Charu Rajput, I don't think you can change its location.  You can, however, create your own dialog window whose location you can change.

var input;
var w = new Window("dialog");
    w.location = [100, 100];
var edittext1 = w.add("edittext", undefined, "");
    edittext1.preferredSize.width = 300;
    edittext1.active = true;
var button1 = w.add("button", undefined, "OK");
    button1.onClick = function () {
        input = edittext1.text;
        w.close();
    }
var button2 = w.add("button", undefined, "Cancel");
w.show();
// ...
alert(input);

 

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Aug 14, 2022 Aug 14, 2022

Copy link to clipboard

Copied

Thank you.  This a wonderful.  And please forgive me, this worked perfect exactly as written.  My skill level of Illustrator Scripting is -1 on a scale of 1 to 10.  However,  I was able to understand what to change to fit my script.  This is not the usual for me, so thanks again.  Please keep this script availabele forever for all us nubes.

Outstanding!

Over and out, Kemt

 

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Aug 14, 2022 Aug 14, 2022

Copy link to clipboard

Copied

LATEST

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Aug 13, 2022 Aug 13, 2022

Copy link to clipboard

Copied

I don't think there is much you can do about that, it is determined by AI and I don't see anyplace in preferences where it can be changed.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Aug 14, 2022 Aug 14, 2022

Copy link to clipboard

Copied

Kinda what I thought.  Thank you so much for everyone taking the time to look.  I am greatful.

Over and out,  Kent

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines