lian Posted January 24, 2008 Posted January 24, 2008 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
PsaltyDS Posted January 24, 2008 Posted January 24, 2008 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. 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
lian Posted January 25, 2008 Author Posted January 25, 2008 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. Thank you, I will try to make my best with that. French user - my blog: http://li.an.free.fr/blog
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now