Jump to content
Macro Express Forums

Show Window using Partial - bug?


Recommended Posts

This macro should hide Notepad and then show it again, but it fails, reporting in line 3 that the window cannot be found.

 

Window Hide: Notepad

Delay: 1 seconds

Window Show: 1 seconds: Notepad

Macro Return

 

<WINDOW HIDE Option="\x01" Title="Notepad" Partial="TRUE" Wildcards="FALSE" _IGNORE="0x0006"/>
<DELAY Flags="\x01" Time="1"/>
<WINDOW SHOW Option="\x01" Title="Notepad" Partial="TRUE" Wildcards="FALSE" _IGNORE="0x0006"/>
<MACRO RETURN/>

 

To get correct operation it seems that although you can use the Partial option in the Hide command, in Window Show you have to specify Exact Match, like this:

 

Window Hide: Notepad

Delay: 1 seconds

Window Show: 1 seconds: Untitled - Notepad

Macro Return

 

<WINDOW HIDE Option="\x01" Title="Notepad" Partial="TRUE" Wildcards="FALSE" _IGNORE="0x0006"/>
<DELAY Flags="\x01" Time="1"/>
<WINDOW SHOW Option="\x01" Title="Untitled - Notepad" Partial="FALSE" Wildcards="FALSE" _IGNORE="0x0006"/>
<MACRO RETURN/>

 

BTW, note the other display bug that I've reported before: the spurious appearance of the delay details from previous commands, which occurs if you have toggled between Script & Direct Editor views.

 

--

Terry, East Grinstead, UK

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

×
×
  • Create New...