Jump to content

Restore Excel MDI


Recommended Posts

In Excel I can make a workbook restore to a defined size by using a keyboard shortcut <Alt>-R

How can I do that in Autoit?

I tried using

ControlSend("Microsoft Excel - Book1","","[ClassNN:XLDESK1","!-R")

with no success

Thanks

I don't have Excel here to try it. Is it really "Alt" + "minus", then "R", which is what you get from "!-R"?

Or is it more like "Alt" + "r", which which would be "!r"?

:D

Edited by PsaltyDS
Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law
Link to comment
Share on other sites

I don't have Excel here to try it. Is it really "Alt" + "minus", then "R", which is what you get from "!-R"?

Or is it more like "Alt" + "r", which which would be "!r"?

:D

It is "Alt" + "minus" which gives a menu. Then "r" selects restore in that menu.
Link to comment
Share on other sites

It is "Alt" + "minus" which gives a menu. Then "r" selects restore in that menu.

Gotcha. Then your Send code looks right, assuming the "R" is not case sensitive.

Sorry I didn't help much.

:D

Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...