Is there a way to identify if Photoshop is in text editing mode?

Get help with using AutoHotkey (v2 or newer) and its commands and hotkeys
Giresharu
Posts: 10
Joined: 16 Apr 2024, 07:21
Contact:

Is there a way to identify if Photoshop is in text editing mode?

09 May 2024, 09:29

I have tried using the code:

Code: Select all

control := ControlGetFocus("A")
controlName := ControlGetClassNN(control)
MsgBox(controlName)
In the UI input field, I can recognize Control as EditX (where X is a number).

However, if I use the Text tool on the canvas, Control displays as PSViewC34, which is the same as when not editing text.
How can I distinguish whether I am currently in the text editing mode under the Text tool?

My goal is to differentiate these text editing modes so that I can automatically switch back to English when text editing ends, to reduce issues with shortcut keys.
The functionality to switch input methods is almost complete. Now, I just need to distinguish the text editing mode.

Any one knows infomation of this? Thank you!

Return to “Ask for Help (v2)”

Who is online

Users browsing this forum: emp00, kunkel321, songdg, User-AutoHotkey and 24 guests