jbjb Posted March 4, 2012 Report Share Posted March 4, 2012 Hi, very new so apologies if a basic problem. I am trying to write a macro that enters some text within a window but the window's caption changes. How can I get the macro to recognise the window despite the new caption? I don't want to rely on capturing keystrokes as my understanding is that the position of the window would have to be the same each time for this. Many thanks! Jon Quote Link to comment Share on other sites More sharing options...
Cory Posted March 4, 2012 Report Share Posted March 4, 2012 You could try a partial match, handle feature, or loop through all the windows until you find the one that matches your criteria. Quote Link to comment Share on other sites More sharing options...
jbjb Posted March 5, 2012 Author Report Share Posted March 5, 2012 Thanks. I'll look up the handle feature - not aware of it! Quote Link to comment Share on other sites More sharing options...
acantor Posted March 6, 2012 Report Share Posted March 6, 2012 Thanks. I'll look up the handle feature - not aware of it! If you are able to get the handle feature to work, please post a code sample. I tried and tried... Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.