Jump to content
Macro Express Forums

Puzzling sizing behaviour


Recommended Posts

This is best explained with an illustration:

 

IrfanView-NoMaximise.jpg

 

I haven't confidently pinned down the cause, and I cannot reproduce at will. I only realise it's happened when my macro fails (because it expects a maximised window) and on investigation I see the state shown.

 

But I'm posting here as I'm fairly sure it has only arisen while writing macros for IrfanView which include Window Maximize: <Current Window>

Anyone seen similar please?

 

Assuming it is down to MX, easiest work-around suggestions?

 

--
Terry, East Grinstead, UK

Link to comment
Share on other sites

I occasionally notice windows that are unusually sized, just like the one you show.

 

I wonder whether we are both seeing an unintended side effect of MEP's Maximize Window command. Try substituting:

 

Text Type (Simulate Keystrokes): <ALT><SPACE>x

or if you are being extra careful:

 

Text Type (Simulate Keystrokes): <ALT><SPACE>

Delay: 100 milliseconds
Text Type (Simulate Keystrokes): x

Link to comment
Share on other sites

Thanks Alan. I think you're probably right. What I did was to add a restore command before the maximise:

Window Restore: <Current Window>
Window Maximize: <Current Window>

 

So far that invalid state hasn't reoccurred, although it's so rare and unpredictable that I'm not sure if that fix will always work.

 

I'm also wondering if this extra delay I've added after the above is significant.

Delay: 0.3 seconds

Of course, it would help if we could come up with a reliable way of producing this state.

 

I'm almost sure I've not seen it except when running a macro. So I'll ask Support for any, er, insights.

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