terrypin Posted May 25, 2011 Report Share Posted May 25, 2011 In commands like Window Activate etc, the option 'The name contains wildcards' works fine on simple windows. For example Window Activate: *txt*Notepad correctly activates the window Test.txt - Notepad However, it fails in those apps which place an asterisk in the title of a document window to indicate that it has not yet been saved. For example, here's a typical title of an open document in TextPad, while I'm editing it: Basics - TextPad - [C:\Documents and Settings\All Users\Application Data\MAGIX\Movie_Edit_Pro_17_Plus\UserVideoEffects\PIP\Translation.ini *] That gives the error "The window cannot be found." Anyone have any work-around suggestions please (apart from always saving the file immediately beforehand)? -- Terry, East Grinstead, UK Quote Link to comment Share on other sites More sharing options...
paul Posted May 25, 2011 Report Share Posted May 25, 2011 I downloaded a trial version of Textpad and was able to activate the window, which was titled "TextPad - Document1 *", using Window Activate: *ext*Document1 * OR Window Activate: *ext*Doc* with "The name contains wildcards" ticked. However, this next example didn't work, so it looks as if the trailing asterisk is important! Window Activate: *ext*Doc Quote Link to comment Share on other sites More sharing options...
Cory Posted May 25, 2011 Report Share Posted May 25, 2011 Interesting problem. You could do a repeat with windows and do your own logic to find the match you want then activate on exact match. Quote Link to comment Share on other sites More sharing options...
terrypin Posted May 25, 2011 Author Report Share Posted May 25, 2011 Thanks Paul, that trailing asterisk seems to do the job nicely. Appreciate your taking the time to experiment. -- Terry, East Grinstead, UK Quote Link to comment Share on other sites More sharing options...
terrypin Posted May 25, 2011 Author Report Share Posted May 25, 2011 Thanks Cory, but Paul's trailing asterisk gets the seegar! -- Terry, East Grinstead, UK Quote Link to comment Share on other sites More sharing options...
Cory Posted May 25, 2011 Report Share Posted May 25, 2011 Thanks Cory, but Paul's trailing asterisk gets the seegar! -- Terry, East Grinstead, UK I concur. 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.