Jump to content

Recommended Posts

Guest kesutton
Posted

I am looking to write a script that will run a saved windows search to find a certain type of file, wait for the find to finish, then select all the files and delete them.

This is what I have So Far

SEND ("{LWIN}R")

WinWaitActive("Run","",60)

SEND ("c:\1k.fnd")

Send ("{ENTER}")

WinWaitActive("Search","",60)

Send ("{ENTER}")

Need a command here that will wait for the "Search Now" button to become available indicating that the search has finished.

Send ("^a")

Send ("{DEL}")

Guest kesutton
Posted

Larry,

you are a gentleman and a scholar. Worked like a charm. I now have an automated script to delete a certain type of spam that lock up my mail server.

Thanks

Ken

  • 3 years later...
Posted

Larry,

you are a gentleman and a scholar. Worked like a charm. I now have an automated script to delete a certain type of spam that lock up my mail server.

Thanks

Ken

Could you guys please post the solution out? I've been searching the way to do this (determining whether or not a control is enabled) in the past few hours, but no luck...thanks in advance.

Posted

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...