Closing the dialog window while using Photoshop action?
Closing the dialog window while using Photoshop action?
I want to close the error dialog while using the doAction function.
ESC key was sent using win32api, but it does not work in the dialog. (It works in layers)
What function should I use?
=====================================================================
import win32gui
import win32con
import win32api
window= win32gui.FindWindow("Photoshop", None)
hwnd= win32gui.GetWindow(window, win32con.GW_CHILD)
win32api.PostMessage(hwnd, win32con.WM_KEYDOWN, 0x1B, 0) # 0x1B : ESC hexcode
win32api.PostMessage(hwnd, win32con.WM_KEYUP, 0x1B, 0)
Last edited by psNewbie on Tue Oct 26, 2021 2:26 am, edited 1 time in total.
Re: Closing the dialog window while using Photoshop action?
Bonjour
jsx is not js and atn is different
You should code in JSX rather than any gear?
jsx is not js and atn is different
You should code in JSX rather than any gear?

Re: Closing the dialog window while using Photoshop action?
I run in visual studio code and use Photoshop python api.
https://loonghao.github.io/photoshop-python-api/
https://loonghao.github.io/photoshop-python-api/
Re: Closing the dialog window while using Photoshop action?
Photoshop is stuck while using action so you can't communicate with Ps at same time. Better find the reason why the dialog pops up to avoid it.