View Full Version : need a helpwith find window API
whatsup
10-21-2009, 12:44 PM
first, i'm doing all this in external app, not extension nor script
so i'm trying to find all reaper opened windows by calling
this first
hWnd=findwindow(whatever needed here)
then
cWnd=findwindowex(hwnd,.....)
i assume this should give me all the child windows opening in reaper
what i get is only a handle of the main window = reaper
not the childs
any help ?
Xenakios
10-21-2009, 01:28 PM
first, i'm doing all this in external app, not extension nor script
so i'm trying to find all reaper opened windows by calling
this first
hWnd=findwindow(whatever needed here)
then
cWnd=findwindowex(hwnd,.....)
i assume this should give me all the child windows opening in reaper
what i get is only a handle of the main window = reaper
not the childs
any help ?
FindWindow(Ex) is for finding one particular window. To find several child windows you need to use EnumChildWindows :
http://msdn.microsoft.com/en-us/library/ms633494(VS.85).aspx
By the way, if you get it working, don't be disappointed : you will not necessarily get all the windows inside Reaper this way.
whatsup
10-21-2009, 02:30 PM
FindWindow(Ex) is for finding one particular window. To find several child windows you need to use EnumChildWindows :
http://msdn.microsoft.com/en-us/library/ms633494(VS.85).aspx
By the way, if you get it working, don't be disappointed : you will not necessarily get all the windows inside Reaper this way.
thank you very much, that helped!
whatsup
10-21-2009, 03:16 PM
unfortuantly, didn't get nothing, except of 4 windows, always, no matter what window i open.
so i guess there is no way outside reaper ?
inside it, is it possible ?
whatsup
10-21-2009, 03:19 PM
i got the windows that i just didn't want
what i wanted is the floating
what i got is the none floating: items , track view etc...
Xenakios
10-21-2009, 03:32 PM
i got the windows that i just didn't want
what i wanted is the floating
what i got is the none floating: items , track view etc...
Try getting the desired window and/or window class names using something like the Spy++ program and then try FindWindow(Ex) with that info. What you are trying to do is undocumented and unsupported by Cockos, so you must expect and accept lots of work, failures and disappointments... ;)
whatsup
10-21-2009, 03:36 PM
Try getting the desired window and/or window class names using something like the Spy++ program and then try FindWindow(Ex) with that info. What you are trying to do is undocumented and unsupported by Cockos, so you must expect and accept lots of work, failures and disappointments... ;)
hh thanks again, you're very helpfull.
vBulletin® v3.8.11, Copyright ©2000-2024, vBulletin Solutions Inc.