CrewXp Posted April 18, 2005 Share Posted April 18, 2005 Hey again. This is a diffuculy script for me, but I think I've got it planned out. Does anyone know how I could do this? I have a list of people in the following format (line by line): --Contents of names.txt-- Joe Smith Kelly Hallahan Bob Joe Zack Baker Shane Yolanza --End Contents of names.txt Theory: Is there any way for autoit to select a name on a line, copy it, then paste it? Then after waiting 2 minutes, it copies and pastes the second name. Until It's finished Concept: I want to open a document, then press CtrlF (the find box), then have autoit paste a name into it. Then the document searches and finds all the names. Each time it finds a name, It will press (Control, Shift, F8)[This indexes the name], then it will keep searching until the end (I dont think there's a way to press the key combo each time it finds a name, but maybe I can have autoit send the combo every twenty seconds (that should be enough time for the document to find the name), and it will press it 6 times, then go on to the next name. That way all the names in the list will be found an indexed. Purpose: To index the names in a txt file (Find the name, then press a combo to index) I know this may sound difficult, but I've overcome many struggles in the past (code wise), and I think I can do this. This is just more complicated and I need a little help. Heh.. Thx! Please respond asap! Link to comment Share on other sites More sharing options...
MarkMarkMark Posted April 18, 2005 Share Posted April 18, 2005 Hey again. This is a diffuculy script for me, but I think I've got it planned out. Does anyone know how I could do this? I have a list of people in the following format (line by line): --Contents of names.txt--Joe SmithKelly HallahanBob JoeZack BakerShane Yolanza--End Contents of names.txtTheory: Is there any way for autoit to select a name on a line, copy it, then paste it? Then after waiting 2 minutes, it copies and pastes the second name. Until It's finishedConcept: I want to open a document, then press CtrlF (the find box), then have autoit paste a name into it. Then the document searches and finds all the names. Each time it finds a name, It will press (Control, Shift, F8)[This indexes the name], then it will keep searching until the end (I dont think there's a way to press the key combo each time it finds a name, but maybe I can have autoit send the combo every twenty seconds (that should be enough time for the document to find the name), and it will press it 6 times, then go on to the next name. That way all the names in the list will be found an indexed.Purpose: To index the names in a txt file (Find the name, then press a combo to index)Open the helpfile: search for Fileread / Send() / Timer / sending ctrl shift f8 is something like this: send("+^{F8}" ) 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