Sign in to follow this  
Followers 0
gte

Looking for suggestions on the best way to do this?

8 posts in this topic

I am required to use a java program that times out after 30 minutes of inactivity.

I built a program that right now restarts this java program once it times out, but I'd like to keep it from timing out by hitting the refresh button in the picture below.

The problem is that there is no shortcut key combo programmed for that refresh button and it's tab order changes depending on what you were using last in the program

I'd like to be able to do this regardless of if the program is minimized, in the foreground or just in the background and IF POSSIBLE, do so without simulating the keyboard or mouse, but instead sending the command to refresh at the machine level.

What do you all think?

Posted Image

Share this post


Link to post
Share on other sites



You can use Winspector or Spy++ to see what message or what ID the control is sending and to who, then send this message. :)

Share this post


Link to post
Share on other sites

Are you sure this will work?

Winspy says this about the refresh button

Posted Image

And this about the button underneath of it, the only thing that appears to be different are the coordinates?

Posted Image

And no, I have no idea how you can have a blurry print screen? :party:

You can use Winspector or Spy++ to see what message or what ID the control is sending and to who, then send this message. :)

Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

:) It's AutoIt Window Info tool not Spy++ or Winspector. Google Winspector, or if you have the full version of Visual Studio you should have. If you're fine with simulating a mouse click event on the refresh button, then ControlClick() is sufficient, unless you're insisting to send a message and not a mouse click event that will preform that message in result.

Edit:

...

And this about the button underneath of it, the only thing that appears to be different are the coordinates?

...

...and the control class instance.

Edited by Authenticity

Share this post


Link to post
Share on other sites

Ah, I see

I have winspector too, I just have no idea how to use it, I have a feeling it's going to take some time to figure out what data I need when I highlight the button in the program :party:

:) It's AutoIt Window Info tool not Spy++ or Winspector. Google Winspector, or if you have the full version of Visual Studio you should have. If you're fine with simulating a mouse click event on the refresh button, then ControlClick() is sufficient, unless you're insisting to send a message and not a mouse click event that will preform that message in result.

Edit:

...and the control class instance.

Share this post


Link to post
Share on other sites

Use the finder tool (the red target like circle) to capture the control or window. If you'll wait a few seconds before releasing the mouse button you'll see the left Window List pane targeting the control or window in the tree hierarchy. Right click the new selected row and select Messages... from the context menu. From there, you'll need to play with filtering unnecessary messages and reading. It'll be wiser to not play around while it's listing the messages posted from or to the control or window, just quickly do what ever you want and stop capturing the messages or you'll find yourself swimming in tens of hundreds messages. :)

Share this post


Link to post
Share on other sites

Thanks for the help, I did as you suggested and got this

<messages created-by="Winspector">
    <message>
        <name>WM_NCCREATE</name>
        <sent />
        <time>15:22:11.0525</time>
        <parameters>
            <parameter>lpCreateParams: 0x00e41d50</parameter>
            <parameter>hInstance: 0x00400000</parameter>
            <parameter>hMenu: 0x00000000</parameter>
            <parameter>hwndParent: 0x0065075e</parameter>
            <parameter>x: 212</parameter>
            <parameter>y: 60</parameter>
            <parameter>cx: 976</parameter>
            <parameter>cy: 690</parameter>
            <parameter>style: WS_CHILD | WS_CLIPSIBLINGS | WS_CLIPCHILDREN</parameter>
            <parameter>lpszName: </parameter>
            <parameter>lpszClass: xSC4550child0</parameter>
            <parameter>dwExStyle: WS_EX_LEFT | WS_EX_LTRREADING | WS_EX_RIGHTSCROLLBAR</parameter>
        </parameters>
    </message>
    <message return-value="1">
        <name>WM_NCCREATE</name>
        <sent />
        <time>15:22:11.0525</time>
        <parameters>
            <parameter>Return: 0x00000001</parameter>
        </parameters>
    </message>
    <message>
        <name>WM_NCCALCSIZE</name>
        <sent />
        <time>15:22:11.0525</time>
        <parameters>
            <parameter>Indicate client area: False</parameter>
            <parameter>Proposed area: -4758, -4741, -3782, -4051</parameter>
        </parameters>
    </message>
    <message return-value="1">
        <name>WM_NCCALCSIZE</name>
        <sent />
        <time>15:22:11.0525</time>
        <parameters>
            <parameter>Continue processing: False</parameter>
        </parameters>
    </message>
    <message>
        <name>WM_GETTEXTLENGTH</name>
        <sent />
        <time>15:22:11.0541</time>
        <parameters>
            <parameter>wParam: 0x00000000</parameter>
            <parameter>lParam: 0x00000000</parameter>
        </parameters>
    </message>
    <message return-value="1">
        <name>WM_GETTEXTLENGTH</name>
        <sent />
        <time>15:22:11.0541</time>
        <parameters>
            <parameter>Text length: 0</parameter>
        </parameters>
    </message>
    <message>
        <name>WM_CREATE</name>
        <sent />
        <time>15:22:11.0541</time>
        <parameters>
            <parameter>lpCreateParams: 0x00e41d50</parameter>
            <parameter>hInstance: 0x00400000</parameter>
            <parameter>hMenu: 0x00000000</parameter>
            <parameter>hwndParent: 0x0065075e</parameter>
            <parameter>x: 212</parameter>
            <parameter>y: 60</parameter>
            <parameter>cx: 976</parameter>
            <parameter>cy: 690</parameter>
            <parameter>style: WS_CHILD | WS_CLIPSIBLINGS | WS_CLIPCHILDREN</parameter>
            <parameter>lpszName: </parameter>
            <parameter>lpszClass: xSC4550child0</parameter>
            <parameter>dwExStyle: WS_EX_LEFT | WS_EX_LTRREADING | WS_EX_RIGHTSCROLLBAR</parameter>
        </parameters>
    </message>
    <message return-value="1">
        <name>WM_CREATE</name>
        <sent />
        <time>15:22:11.0541</time>
        <parameters>
            <parameter>Return: 0x00000000</parameter>
        </parameters>
    </message>
    <message>
        <name>WM_SIZE</name>
        <sent />
        <time>15:22:11.0541</time>
        <parameters>
            <parameter>Style: SIZE_RESTORED</parameter>
            <parameter>Width: 976</parameter>
            <parameter>Height: 690</parameter>
        </parameters>
    </message>
    <message return-value="1">
        <name>WM_SIZE</name>
        <sent />
        <time>15:22:11.0541</time>
        <parameters>
            <parameter>Return: 0x00000000</parameter>
        </parameters>
    </message>
    <message>
        <name>WM_MOVE</name>
        <sent />
        <time>15:22:11.0541</time>
        <parameters>
            <parameter>xPos: 212</parameter>
            <parameter>yPos: 60</parameter>
        </parameters>
    </message>
    <message return-value="1">
        <name>WM_MOVE</name>
        <sent />
        <time>15:22:11.0541</time>
        <parameters>
            <parameter>Return: 0x00000000</parameter>
        </parameters>
    </message>
    <message>
        <name>WM_USER + 1001 (0x000007e9)</name>
        <posted />
        <time>15:22:11.0541</time>
        <parameters>
            <parameter>wParam: 0x00000000</parameter>
            <parameter>lParam: 0x0012eeb8</parameter>
        </parameters>
    </message>
    <message>
        <name>WM_USER + 1002 (0x000007ea)</name>
        <posted />
        <time>15:22:11.0541</time>
        <parameters>
            <parameter>wParam: 0x00000000</parameter>
            <parameter>lParam: 0x02b203d0</parameter>
        </parameters>
    </message>
    <message>
        <name>WM_USER + 1005 (0x000007ed)</name>
        <posted />
        <time>15:22:11.0541</time>
        <parameters>
            <parameter>wParam: 0x00000000</parameter>
            <parameter>lParam: 0x003c00d4</parameter>
        </parameters>
    </message>
    <message>
        <name>WM_GETTEXTLENGTH</name>
        <sent />
        <time>15:22:11.0635</time>
        <parameters>
            <parameter>wParam: 0x00000000</parameter>
            <parameter>lParam: 0x00000000</parameter>
        </parameters>
    </message>
    <message return-value="1">
        <name>WM_GETTEXTLENGTH</name>
        <sent />
        <time>15:22:11.0635</time>
        <parameters>
            <parameter>Text length: 0</parameter>
        </parameters>
    </message>
    <message>
        <name>WM_GETTEXTLENGTH</name>
        <sent />
        <time>15:22:11.0635</time>
        <parameters>
            <parameter>wParam: 0x00000000</parameter>
            <parameter>lParam: 0x00000000</parameter>
        </parameters>
    </message>
    <message return-value="1">
        <name>WM_GETTEXTLENGTH</name>
        <sent />
        <time>15:22:11.0635</time>
        <parameters>
            <parameter>Text length: 0</parameter>
        </parameters>
    </message>
    <message>
        <name>WM_USER + 7174 (0x00002006)</name>
        <sent />
        <time>15:22:11.0635</time>
        <parameters>
            <parameter>wParam: 0x00000000</parameter>
            <parameter>lParam: 0x00000000</parameter>
        </parameters>
    </message>
    <message return-value="1">
        <name>WM_USER + 7174</name>
        <sent />
        <time>15:22:11.0635</time>
        <parameters>
            <parameter>Return: 0x00000000</parameter>
        </parameters>
    </message>
    <message>
        <name>WM_SHOWWINDOW</name>
        <sent />
        <time>15:22:11.0822</time>
        <parameters>
            <parameter>Showing: true</parameter>
            <parameter>Reason: ShowWindow called</parameter>
        </parameters>
    </message>
    <message>
        <name>WM_GETTEXTLENGTH</name>
        <sent />
        <time>15:22:11.0838</time>
        <parameters>
            <parameter>wParam: 0x00000000</parameter>
            <parameter>lParam: 0x00000000</parameter>
        </parameters>
    </message>
    <message return-value="1">
        <name>WM_GETTEXTLENGTH</name>
        <sent />
        <time>15:22:11.0838</time>
        <parameters>
            <parameter>Text length: 0</parameter>
        </parameters>
    </message>
    <message return-value="1">
        <name>WM_SHOWWINDOW</name>
        <sent />
        <time>15:22:11.0838</time>
        <parameters>
            <parameter>Return: 0x00000000</parameter>
        </parameters>
    </message>
    <message>
        <name>WM_WINDOWPOSCHANGING</name>
        <sent />
        <time>15:22:11.0838</time>
        <parameters>
            <parameter>hwnd: 0x002304dc</parameter>
            <parameter>hwndInsertAfter: HWND_TOP</parameter>
            <parameter>Position: 212, 60</parameter>
            <parameter>Size: 976, 665</parameter>
            <parameter>SWP_NOZORDER | SWP_NOACTIVATE</parameter>
        </parameters>
    </message>
    <message return-value="1">
        <name>WM_WINDOWPOSCHANGING</name>
        <sent />
        <time>15:22:11.0838</time>
        <parameters>
            <parameter>Continue processing: False</parameter>
        </parameters>
    </message>
    <message>
        <name>WM_NCCALCSIZE</name>
        <sent />
        <time>15:22:11.0838</time>
        <parameters>
            <parameter>Indicate client area: True</parameter>
            <parameter>Proposed area: 212, 60, 1188, 725</parameter>
            <parameter>Previous area: 212, 60, 1188, 750</parameter>
            <parameter>Client area: 212, 60, 1188, 750</parameter>
            <parameter>hwnd: 0x002304dc</parameter>
            <parameter>hwndInsertAfter: HWND_TOP</parameter>
            <parameter>Position: 212, 60</parameter>
            <parameter>Size: 976, 665</parameter>
            <parameter>SWP_NOMOVE | SWP_NOZORDER | SWP_NOREDRAW | SWP_NOACTIVATE</parameter>
        </parameters>
    </message>
    <message return-value="1">
        <name>WM_NCCALCSIZE</name>
        <sent />
        <time>15:22:11.0838</time>
        <parameters>
            <parameter>Continue processing: False</parameter>
        </parameters>
    </message>
    <message>
        <name>WM_WINDOWPOSCHANGED</name>
        <sent />
        <time>15:22:11.0838</time>
        <parameters>
            <parameter>hwnd: 0x002304dc</parameter>
            <parameter>hwndInsertAfter: HWND_TOP</parameter>
            <parameter>Position: 212, 60</parameter>
            <parameter>Size: 976, 665</parameter>
            <parameter>SWP_NOMOVE | SWP_NOZORDER | SWP_NOREDRAW | SWP_NOACTIVATE</parameter>
        </parameters>
    </message>
    <message>
        <name>WM_SIZE</name>
        <sent />
        <time>15:22:11.0838</time>
        <parameters>
            <parameter>Style: SIZE_RESTORED</parameter>
            <parameter>Width: 976</parameter>
            <parameter>Height: 665</parameter>
        </parameters>
    </message>
    <message return-value="1">
        <name>WM_SIZE</name>
        <sent />
        <time>15:22:11.0838</time>
        <parameters>
            <parameter>Return: 0x00000000</parameter>
        </parameters>
    </message>
    <message return-value="1">
        <name>WM_WINDOWPOSCHANGED</name>
        <sent />
        <time>15:22:11.0838</time>
        <parameters>
            <parameter>Continue processing: False</parameter>
        </parameters>
    </message>
    <message>
        <name>WM_WINDOWPOSCHANGING</name>
        <sent />
        <time>15:22:11.0947</time>
        <parameters>
            <parameter>hwnd: 0x002304dc</parameter>
            <parameter>hwndInsertAfter: HWND_TOP</parameter>
            <parameter>Position: 212, 60</parameter>
            <parameter>Size: 959, 665</parameter>
            <parameter>SWP_NOZORDER | SWP_NOACTIVATE</parameter>
        </parameters>
    </message>
    <message return-value="1">
        <name>WM_WINDOWPOSCHANGING</name>
        <sent />
        <time>15:22:11.0947</time>
        <parameters>
            <parameter>Continue processing: False</parameter>
        </parameters>
    </message>
    <message>
        <name>WM_NCCALCSIZE</name>
        <sent />
        <time>15:22:11.0947</time>
        <parameters>
            <parameter>Indicate client area: True</parameter>
            <parameter>Proposed area: 212, 60, 1171, 725</parameter>
            <parameter>Previous area: 212, 60, 1188, 725</parameter>
            <parameter>Client area: 212, 60, 1188, 725</parameter>
            <parameter>hwnd: 0x002304dc</parameter>
            <parameter>hwndInsertAfter: HWND_TOP</parameter>
            <parameter>Position: 212, 60</parameter>
            <parameter>Size: 959, 665</parameter>
            <parameter>SWP_NOMOVE | SWP_NOZORDER | SWP_NOREDRAW | SWP_NOACTIVATE</parameter>
        </parameters>
    </message>
    <message return-value="1">
        <name>WM_NCCALCSIZE</name>
        <sent />
        <time>15:22:11.0947</time>
        <parameters>
            <parameter>Continue processing: False</parameter>
        </parameters>
    </message>
    <message>
        <name>WM_WINDOWPOSCHANGED</name>
        <sent />
        <time>15:22:11.0947</time>
        <parameters>
            <parameter>hwnd: 0x002304dc</parameter>
            <parameter>hwndInsertAfter: HWND_TOP</parameter>
            <parameter>Position: 212, 60</parameter>
            <parameter>Size: 959, 665</parameter>
            <parameter>SWP_NOMOVE | SWP_NOZORDER | SWP_NOREDRAW | SWP_NOACTIVATE</parameter>
        </parameters>
    </message>
    <message>
        <name>WM_SIZE</name>
        <sent />
        <time>15:22:11.0947</time>
        <parameters>
            <parameter>Style: SIZE_RESTORED</parameter>
            <parameter>Width: 959</parameter>
            <parameter>Height: 665</parameter>
        </parameters>
    </message>
    <message return-value="1">
        <name>WM_SIZE</name>
        <sent />
        <time>15:22:11.0947</time>
        <parameters>
            <parameter>Return: 0x00000000</parameter>
        </parameters>
    </message>
    <message return-value="1">
        <name>WM_WINDOWPOSCHANGED</name>
        <sent />
        <time>15:22:11.0947</time>
        <parameters>
            <parameter>Continue processing: False</parameter>
        </parameters>
    </message>
    <message>
        <name>WM_NCPAINT</name>
        <sent />
        <time>15:22:12.0041</time>
        <parameters>
            <parameter>Draw entire frame: true</parameter>
        </parameters>
    </message>
    <message return-value="1">
        <name>WM_NCPAINT</name>
        <sent />
        <time>15:22:12.0041</time>
        <parameters>
            <parameter>Processed: False</parameter>
        </parameters>
    </message>
    <message>
        <name>WM_ERASEBKGND</name>
        <sent />
        <time>15:22:12.0041</time>
        <parameters>
            <parameter>HDC: 0x960153cf</parameter>
        </parameters>
    </message>
    <message return-value="1">
        <name>WM_ERASEBKGND</name>
        <sent />
        <time>15:22:12.0041</time>
        <parameters>
            <parameter>Processed: False</parameter>
        </parameters>
    </message>
    <message>
        <name>WM_PAINT</name>
        <posted />
        <time>15:22:12.0072</time>
        <parameters>
            <parameter>wParam: 0x00000000</parameter>
            <parameter>lParam: 0x00000000</parameter>
        </parameters>
    </message>
    <message>
        <name>WM_SETFOCUS</name>
        <sent />
        <time>15:22:12.0088</time>
        <parameters>
            <parameter>HWND losing focus: 0x006c07f4</parameter>
        </parameters>
    </message>
    <message>
        <name>WM_NCACTIVATE</name>
        <sent />
        <time>15:22:12.0088</time>
        <parameters>
            <parameter>Draw activated: true</parameter>
        </parameters>
    </message>
    <message return-value="1">
        <name>WM_NCACTIVATE</name>
        <sent />
        <time>15:22:12.0088</time>
        <parameters>
        </parameters>
    </message>
    <message return-value="1">
        <name>WM_SETFOCUS</name>
        <sent />
        <time>15:22:12.0088</time>
        <parameters>
            <parameter>Return: 0x00000000</parameter>
        </parameters>
    </message>
    <message>
        <name>WM_WINDOWPOSCHANGING</name>
        <sent />
        <time>15:22:12.0088</time>
        <parameters>
            <parameter>hwnd: 0x002304dc</parameter>
            <parameter>hwndInsertAfter: HWND_TOP</parameter>
            <parameter>Position: 0, 0</parameter>
            <parameter>Size: 0, 0</parameter>
            <parameter>SWP_NOSIZE | SWP_NOMOVE</parameter>
        </parameters>
    </message>
    <message return-value="1">
        <name>WM_WINDOWPOSCHANGING</name>
        <sent />
        <time>15:22:12.0088</time>
        <parameters>
            <parameter>Continue processing: False</parameter>
        </parameters>
    </message>
    <message>
        <name>WM_CHILDACTIVATE</name>
        <sent />
        <time>15:22:12.0088</time>
        <parameters>
            <parameter>wParam: 0x00000000</parameter>
            <parameter>lParam: 0x00000000</parameter>
        </parameters>
    </message>
    <message return-value="1">
        <name>WM_CHILDACTIVATE</name>
        <sent />
        <time>15:22:12.0088</time>
        <parameters>
            <parameter>Return: 0x00000000</parameter>
        </parameters>
    </message>
    <message>
        <name>WM_PAINT</name>
        <posted />
        <time>15:22:12.0119</time>
        <parameters>
            <parameter>wParam: 0x00000000</parameter>
            <parameter>lParam: 0x00000000</parameter>
        </parameters>
    </message>
    <message>
        <name>WM_KILLFOCUS</name>
        <sent />
        <time>15:22:13.0338</time>
        <parameters>
            <parameter>HWND receiving focus: 0x00000000</parameter>
        </parameters>
    </message>
    <message>
        <name>WM_NCACTIVATE</name>
        <sent />
        <time>15:22:13.0338</time>
        <parameters>
            <parameter>Draw activated: true</parameter>
        </parameters>
    </message>
    <message return-value="1">
        <name>WM_NCACTIVATE</name>
        <sent />
        <time>15:22:13.0338</time>
        <parameters>
            <parameter>Proceed with default: true</parameter>
        </parameters>
    </message>
    <message return-value="1">
        <name>WM_KILLFOCUS</name>
        <sent />
        <time>15:22:13.0338</time>
        <parameters>
            <parameter>Return: 0x00000000</parameter>
        </parameters>
    </message>
    <message>
        <name>WM_PAINT</name>
        <posted />
        <time>15:22:13.0338</time>
        <parameters>
            <parameter>wParam: 0x00000000</parameter>
            <parameter>lParam: 0x00000000</parameter>
        </parameters>
    </message>
    <message>
        <name>WM_GETTEXTLENGTH</name>
        <sent />
        <time>15:22:14.0603</time>
        <parameters>
            <parameter>wParam: 0x00000000</parameter>
            <parameter>lParam: 0x00000000</parameter>
        </parameters>
    </message>
    <message return-value="1">
        <name>WM_GETTEXTLENGTH</name>
        <sent />
        <time>15:22:14.0603</time>
        <parameters>
            <parameter>Text length: 0</parameter>
        </parameters>
    </message>
    <message>
        <name>WM_GETTEXT</name>
        <sent />
        <time>15:22:14.0603</time>
        <parameters>
            <parameter>Text buffer pointer: 0x015b0000</parameter>
            <parameter>Text buffer length: 32768</parameter>
        </parameters>
    </message>
    <message return-value="1">
        <name>WM_GETTEXT</name>
        <sent />
        <time>15:22:14.0603</time>
        <parameters>
            <parameter>Text: </parameter>
            <parameter>Text length: 0</parameter>
        </parameters>
    </message>
    <message>
        <name>WM_GETTEXTLENGTH</name>
        <sent />
        <time>15:22:17.0635</time>
        <parameters>
            <parameter>wParam: 0x00000000</parameter>
            <parameter>lParam: 0x00000000</parameter>
        </parameters>
    </message>
    <message return-value="1">
        <name>WM_GETTEXTLENGTH</name>
        <sent />
        <time>15:22:17.0635</time>
        <parameters>
            <parameter>Text length: 0</parameter>
        </parameters>
    </message>
    <message>
        <name>WM_GETTEXT</name>
        <sent />
        <time>15:22:17.0635</time>
        <parameters>
            <parameter>Text buffer pointer: 0x015b0000</parameter>
            <parameter>Text buffer length: 32768</parameter>
        </parameters>
    </message>
    <message return-value="1">
        <name>WM_GETTEXT</name>
        <sent />
        <time>15:22:17.0635</time>
        <parameters>
            <parameter>Text: </parameter>
            <parameter>Text length: 0</parameter>
        </parameters>
    </message>
</messages>

<body bgcolor=white>
<font face="tahoma">
<table width="100%">
    <tr>
        <td>
            <h3>Properties for window 0x002304DC</h3>
        </td>
    </tr>
</table>
<b>
            <table cellspacing=2 bgcolor=white border=0 width=100% cellspacing=0>
                <tr>
                    <td align=center bgcolorleft=#8cb0f8 bgcolorright=#eef4fe>Item</td>
                    <td align=center bgcolorleft=#eef4fe bgcolorright=#8cb0f8>Value</td>
                </tr>

                <tr>
                    <td nowrap>Class Name</td>
                    <td align=right>xSC4550child0 <a href="copy-classname" title="Copy the class name to the clipboard"><img src="RES:1010"></a></td>
                </tr>
                <tr bgcolor=#eef4fe>
                    <td nowrap>Text</td>
                    <td align=right> <a href="copy-windowtext" title="Copy the window text to the clipboard"><img src="RES:1010"></a></td>
                </tr>

                <tr>
                    <td nowrap>Rectangle</td>
                    <td align=right>242, 259, 1201, 924 <a href="copy-window-rect" title="Copy the window rectangle to the clipboard"><img src="RES:1010"></a></td>
                </tr>
                <tr bgcolor=#eef4fe>
                    <td nowrap>Size</td>
                    <td align=right>959, 665 <a href="copy-window-size" title="Copy the window size to the clipboard"><img src="RES:1010"></a></td>
                </tr>

                <tr>
                    <td nowrap>Client Rectangle</td>
                    <td align=right>0, 0, 959, 665 <a href="copy-client-rect" title="Copy the client rectangle to the clipboard"><img src="RES:1010"></a></td>
                </tr>
                <tr bgcolor=#eef4fe>
                    <td nowrap>Client Size</td>
                    <td align=right>959, 665 <a href="copy-client-size" title="Copy the client size to the clipboard"><img src="RES:1010"></a></td>
                </tr>

                <tr>
                    <td nowrap>Styles</td>
                    <td align=right><table width=100%><tr><td align=right>WS_CHILD<br>WS_VISIBLE<br>WS_CLIPSIBLINGS<br>WS_CLIPCHILDREN</td><td width=1><a href="copy-window-style" title="Copy the window styles to the clipboard"><img src="RES:1010"></a></td></tr></table></td>
                </tr>
                <tr bgcolor=#eef4fe>
                    <td nowrap>StylesEx</td>
                    <td align=right><table width=100%><tr><td align=right>WS_EX_LEFT<br>WS_EX_LTRREADING<br>WS_EX_RIGHTSCROLLBAR</td><td width=1><a href="copy-window-style-ex" title="Copy the extended window styles to the clipboard"><img src="RES:1010"></a></td></tr></table></td>
                </tr>

                <tr>
                    <td nowrap>ID</td>
                    <td align=right><table width=100%><tr><td align=right>0</td><td width=1><a href="copy-window-id" title="Copy the window ID to the clipboard"><img src="RES:1010"></a></td></tr></table></td>
                </tr>
                <tr bgcolor=#eef4fe>
                    <td nowrap>Properties</td>
                    <td align=right><table width=100%><tr><td nowrap align=right>Atom: #43288  0xFFFFFFFF  (-1)</td><td width=1><a href="copy-window-properties" title="Copy the window properties to the clipboard"><img src="RES:1010"></a></td></tr></table></td>
                </tr>

                <tr>
                    <td nowrap>Class specific</td>
                    <td align=right><table width=100%><tr><td nowrap align=right>Window is Ansi<br></td><td width=1><a href="copy-window-class-specific" title="Copy the window class specific information to the clipboard"><img src="RES:1010"></a></td></tr></table></td>
                </tr>
                <tr bgcolor=#eef4fe>
                    <td nowrap>Owner EXE</td>
                    <td align=right><table width=100%><tr><td align=right>C:\Progra~1\Peregrine\ServiceCenter\RUN\scguiw32.exe</td><td width=1><a href="copy-window-owner-module" title="Copy the extended path of the owning EXE to the clipboard"><img src="RES:1010"></a></td></tr></table></td>
                </tr>
                
            </table>
</b>
</font>
</body>

Use the finder tool (the red target like circle) to capture the control or window. If you'll wait a few seconds before releasing the mouse button you'll see the left Window List pane targeting the control or window in the tree hierarchy. Right click the new selected row and select Messages... from the context menu. From there, you'll need to play with filtering unnecessary messages and reading. It'll be wiser to not play around while it's listing the messages posted from or to the control or window, just quickly do what ever you want and stop capturing the messages or you'll find yourself swimming in tens of hundreds messages. :)

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  
Followers 0