Jump to content
Sign in to follow this  
JusGellin

Restore Excel MDI

Recommended Posts

JusGellin

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

Share this post


Link to post
Share on other sites
PsaltyDS

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

Share this post


Link to post
Share on other sites
JusGellin

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.

Share this post


Link to post
Share on other sites
PsaltyDS

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

Share this post


Link to post
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
Sign in to follow this  

×