nevada Posted March 17, 2009 Report Share Posted March 17, 2009 Is there any say I can determine whether, at the point I started a ME macro, I am in a single or multi line text box, where the characters typed are being taken by the program as an input string, or am not in such a box, where the running program will interpret what I type as a command or ignore it. Quote Link to comment Share on other sites More sharing options...
rberq Posted March 17, 2009 Report Share Posted March 17, 2009 If you know the Windows title of the text box, can you perhaps use "If Window is On Top" to see if it is the active window? Quote Link to comment Share on other sites More sharing options...
nevada Posted March 18, 2009 Author Report Share Posted March 18, 2009 What exactly is "the Windows title of the text box"? Does this refer to the title in the title bar of the window or is this an internal program box name? If the latter how can you determine it? Quote Link to comment Share on other sites More sharing options...
paul Posted March 18, 2009 Report Share Posted March 18, 2009 If asked to determine manually whether the cursor is currently in a single or multi-line textbox, how would you go about this task? If you can rely on the shape of the cursor (generaly an I-Beam in a text box, but I'm sure that's not universally true), then perhaps you could test the shape of your cursor? Quote Link to comment Share on other sites More sharing options...
rberq Posted March 18, 2009 Report Share Posted March 18, 2009 What exactly is "the Windows title of the text box"?Does this refer to the title in the title bar of the window or is this an internal program box name? Yes, the title bar of the window. For example, if I start Notepad, the title bar is "Untitled - Notepad". If I open file abc.txt with Notepad, the title bar is "abc.txt - Notepad". 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.