Jump to content
Sign in to follow this  
lian

Gimp and no name window

Recommended Posts

lian

Hello,

I have created some little scripts for Gimp 2.2 (automatic renaming a file) and they don't work with Gimp 2.4 because the conceptors changed the way the windows are named. In Gimp I have got at least three windows (the picture, the principal and one for the layers) with different names so no problem with them. But some warning windows I want to manage have no more name and their class is the same as the three principal windows. Is there any way to manage this ? (I want to make something "If this windows exist then").


French user - my blog: http://li.an.free.fr/blog

Share this post


Link to post
Share on other sites
PsaltyDS

Hello,

I have created some little scripts for Gimp 2.2 (automatic renaming a file) and they don't work with Gimp 2.4 because the conceptors changed the way the windows are named. In Gimp I have got at least three windows (the picture, the principal and one for the layers) with different names so no problem with them. But some warning windows I want to manage have no more name and their class is the same as the three principal windows. Is there any way to manage this ? (I want to make something "If this windows exist then").

Might want to update your version (I'm running Gimp 2.4.2, and 2.4.3 has already been released). I don't have the layer menu as separate window, but regardless, even if multiple windows have the same Class and Title, the have different handles. If you use WinTitleMatchMode 4 and WinList() them by "[CLASS:gdkWindowToplevel; TITLE:Whatever Your Title Is]" you can get a list of all their handles. Repeat that operation and you can track new windows that pop up with the same Class/Title by their unique handles.

:D


Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law

Share this post


Link to post
Share on other sites
lian

Might want to update your version (I'm running Gimp 2.4.2, and 2.4.3 has already been released). I don't have the layer menu as separate window, but regardless, even if multiple windows have the same Class and Title, the have different handles. If you use WinTitleMatchMode 4 and WinList() them by "[CLASS:gdkWindowToplevel; TITLE:Whatever Your Title Is]" you can get a list of all their handles. Repeat that operation and you can track new windows that pop up with the same Class/Title by their unique handles.

:D

Thank you, I will try to make my best with that.

French user - my blog: http://li.an.free.fr/blog

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×