Sign in to follow this  
Followers 0
acehotshot

MOre advance script

4 posts in this topic

#1 ·  Posted (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 by acehotshot

Share this post


Link to post
Share on other sites



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

It 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

Share this post


Link to post
Share on other sites

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=82172

later...


[size="1"][font="Arial"].[u].[/u][/font][/size]

Share this post


Link to post
Share on other sites

Thanks quys!

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  
Followers 0