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

Photoshop scripting get tool position

New Here ,
Feb 01, 2018 Feb 01, 2018

Copy link to clipboard

Copied

I would like to get a position of lets say a brush tool button inside photoshop.

Is that possible with Photoshop scripting?

Is it possible getting the value of a certain edit box (eg. brush size)?

Can it be done similar to this:

'PsJavaScriptExecutionMode Enums
Const psNeverShowDebugger = 1, psDebuggerOnError = 2, psBeforeRunning = 3

Dim appRef
Set appRef = CreateObject("Photoshop.Application")

Dim pos
pos
= appRef.ControlPosition("paintbrushTool") //this is made up

What I want to do is, I want to show a pointer saying "Click this" (similar to photoshop tutorials).

TOPICS
Actions and scripting

Views

355

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
LEGEND ,
Feb 01, 2018 Feb 01, 2018

Copy link to clipboard

Copied

With Photoshpo scripting not, while with I autohotkey.com I couldn't read enough inromation to get those positions.

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
New Here ,
Feb 01, 2018 Feb 01, 2018

Copy link to clipboard

Copied

I use Autoit.

Can you give me an example how you do it with AHK?

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
LEGEND ,
Feb 01, 2018 Feb 01, 2018

Copy link to clipboard

Copied

LATEST

It gives back much information of Photoshop main window, but doesn't see palettes. Maybe you can think up something

WinGet wins, List

Loop, % wins {

     id := "ahk_id "wins%A_Index%

     WinGetText r, % id

     MsgBox % r

}

Last topic I used AHK to do that there's described: Re: Access to document windows, tabs (you will see how to save code)

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