Jump to content
Macro Express Forums

Work around for failing command?


Recommended Posts

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

Link to comment
Share on other sites

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

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...