Jump to content

MOre advance script


Recommended Posts

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
Link to comment
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

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...