Jump to content
Macro Express Forums

Tell Between 2 Windows


tpendergast

Recommended Posts

Ok. I'm new to Macroexpress so this may actually be a simple question.

 

I have a progress window called "Data Transfer" that appears after a button press. Following this window is another window called "Data Transfer" that can either be the assign user window or communication problem window. I'm trying to figure out how I tell the difference between the 2. When I try to "Capture Contrl" I get "TButton" which are both highlighted on the windows.

 

Any suggestions would be appreicated!!!!

 

Tom

Link to comment
Share on other sites

Often the form itself will be a Window Control. If this is the case you could capture the control that makes up the form instead of the button. Also, when you capture the control try turning off the 'Capture using Text' option.

 

You may find another control on one or the other forms that identify it.

 

Is the size of the dialog different between the two dialogs? If so, you could use the commands that get the size of the dialog to determine which form is displayed.

 

Could the position of the dialog identify it? You can also get the position of the dialog.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...