• Global community
    • Language:
      • Deutsch
      • English
      • EspaƱol
      • FranƧais
      • PortuguĆŖs
  • ę—„ęœ¬čŖžć‚³ćƒŸćƒ„ćƒ‹ćƒ†ć‚£
    Dedicated community for Japanese speakers
  • ķ•œźµ­ ģ»¤ė®¤ė‹ˆķ‹°
    Dedicated community for Korean speakers
Exit
0

How can I lock the UI scrollbar's position when it reaches a certain value? a

New Here ,
Feb 07, 2021 Feb 07, 2021

Copy link to clipboard

Copied

The scrollbar in javascript has a .value attribute. When the value = 100 out of 200, I would like the position of the scrollbar to then be prevented from visually and numerically moving any further. Is there an attribute that can control these in javascript? 

TOPICS
Actions and scripting , Windows

Views

349

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
Adobe
New Here ,
Feb 07, 2021 Feb 07, 2021

Copy link to clipboard

Copied

Sorry not the scrollbar itself, but the little scroller you click and drag inside of it.

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 ,
Feb 07, 2021 Feb 07, 2021

Copy link to clipboard

Copied

What make you think a Photoshop Script can do anything to Photoshop UI scroll bars?  Even using Photoshop UI interactivity you can not lock a scroll bar slider at some position.  There is no  position numerical value indicator either. There is no reference to SCROLL if you search Adobe Javascript reference and the scriptlistener plug-in does not record any actions manager code when you scroll an image. Also the are no shortcuts for scrolling or menu menu  item for scrolling images. 

JJMack

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 ,
Feb 07, 2021 Feb 07, 2021

Copy link to clipboard

Copied

 

scrollbar.onChanging = function () {this.value = this.value >= 100 ? 100 : this.value}

 

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 ,
Feb 07, 2021 Feb 07, 2021

Copy link to clipboard

Copied

LATEST

I thought the OP was referring to an image's  scrollbar not a dialog  scriptui scrollbar. I missed the UI int the title....

JJMack

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