acehotshot Posted July 8, 2005 Posted July 8, 2005 (edited) Hey ppl out there, i had just finish a script. I was just wonfering is there anyway of improving it... king soul out there please give some ideas... thanks run(@ProgramFilesDir & "\microsoft office\office11\winword.exe c:\Food.doc","",@SW_MAXIMIZE) WinWaitActive("Food.doc - Microsoft Word") Send("!f") Send("{DOWN 4}") Send("{ENTER}") Send("+{TAB 6}") Send("{ENTER}") Send("{TAB}") Send("{+}") Send("^{TAB 2}") Send("{TAB 4}") send("{DOWN}") Send("^{TAB 2}") Send("{TAB 3}") send("{DOWN}") Send("{ENTER}") Send("{TAB 12}") Send("{ENTER}") Send("!f") Send("{x}") Edited July 8, 2005 by acehotshot
LxP Posted July 8, 2005 Posted July 8, 2005 Hey ppl out there, i had just finish a script. I was just wonfering is there anyway of improving it...king soul out there please give some ideas... thanksIt is possible to send more than one key within a Send() statement, so the following would also work:Send("!f{DOWN 4}{ENTER}") Send("+{TAB 6}{ENTER}") Send("{TAB}{+}^{TAB 2}{TAB 4}{DOWN}^{TAB 2}{TAB 3}{DOWN}{ENTER}") Send("{TAB 12}{ENTER}") Send("!f{x}")Regards,Alex Peters
herewasplato Posted July 8, 2005 Posted July 8, 2005 I've never seen anyone do this before:Send("{x}")You could just use:Send("x")...or combine some lines like LxP suggested:Send("!fx")If you really want to dive in deep, change the Word doc without opening Word:http://www.autoitscript.com/forum/index.ph...indpost&p=82172later... [size="1"][font="Arial"].[u].[/u][/font][/size]
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