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

Script to cycle through display performance settings

Participant ,
Aug 29, 2021 Aug 29, 2021

Copy link to clipboard

Copied

I would like to be able to assign a single shortcut to a script that changes/cycles the display performance to the next setting i.e fast, typical, high quality. Currently I have 3 different shortcuts for each setting, but it's a bit annoying so one that cycles through would be more ideal. Is this possible? Thanks.

 

 

TOPICS
Scripting

Views

184

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

Community Expert , Aug 29, 2021 Aug 29, 2021

Try the following script

 

#targetengine "do"
var idx
if(idx == undefined) idx = 0
var dOptions = [ViewDisplaySettings.HIGH_QUALITY, ViewDisplaySettings.OPTIMIZED, ViewDisplaySettings.TYPICAL]
app.activeWindow.viewDisplaySetting = dOptions[idx++]
if(idx == 3) idx = 0

 

-Manan

Votes

Translate

Translate
Community Expert ,
Aug 29, 2021 Aug 29, 2021

Copy link to clipboard

Copied

Try the following script

 

#targetengine "do"
var idx
if(idx == undefined) idx = 0
var dOptions = [ViewDisplaySettings.HIGH_QUALITY, ViewDisplaySettings.OPTIMIZED, ViewDisplaySettings.TYPICAL]
app.activeWindow.viewDisplaySetting = dOptions[idx++]
if(idx == 3) idx = 0

 

-Manan

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
Participant ,
Aug 29, 2021 Aug 29, 2021

Copy link to clipboard

Copied

LATEST

Thanks Manan. Works an absolute treat 🙂

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