JusGellin Posted January 19, 2008 Share Posted January 19, 2008 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 Link to comment Share on other sites More sharing options...
PsaltyDS Posted January 19, 2008 Share Posted January 19, 2008 (edited) 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"? Edited January 19, 2008 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 More sharing options...
JusGellin Posted January 22, 2008 Author Share Posted January 22, 2008 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"? It is "Alt" + "minus" which gives a menu. Then "r" selects restore in that menu. Link to comment Share on other sites More sharing options...
PsaltyDS Posted January 22, 2008 Share Posted January 22, 2008 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. 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now