Control adobe AIR program [SendMessage]

TheDeathly

Well-known member
Joined
Oct 21, 2009
Messages
50
Programming Experience
1-3
I need to control an Adobe Air program (Pandoras Desktop App) from vb.net via sendMessage. Ive tried various things and none work.
I want to either send clicks or keys, unless there is a way to send "space bar" not " ". i need clicks, if there is a way to send spacebar keys would be easiest.

This is my source

VB.NET:
 Dim lpszParentClass As String = "Pandora" 'process
                    Dim lpszParentWindow As String = "Pandora" 'title name
                    Dim lpszClass As String = "ApolloRuntimeContentWindow" ' class

                    Dim ParenthWnd As New IntPtr(0)
                    Dim hWnd As New IntPtr(0)

                    ParenthWnd = FindWindowByCaption(IntPtr.Zero, lpszParentWindow)
                    If ParenthWnd.Equals(IntPtr.Zero) Then
                        Debug.WriteLine("Program  Not Running!")
                    Else
                        hWnd = FindWindowEx(ParenthWnd, hWnd, lpszClass, "")
                        If hWnd.Equals(IntPtr.Zero) Then
                            Debug.WriteLine("no sub level handle component, how strange.")
                        Else
                            Form1.lblControlHandle.Text = "Edit handle: " & hWnd.ToString()
                            Form1.Label2.Text = "Parent handle: " & ParenthWnd.ToString()
                        End If
                    End If


i can find the "parent" hWnd. but not the final hWnd to sendmessages to. Parent window will have a handle number but i cant figure out what class to use for the final handle. Here are some screen shots off what handles are there and what the program is like.

________________________________

winid.png



spy.png


managedspy.png


________________________

Thanks.
 
Back
Top