n9mfk9 Posted May 21, 2004 Posted May 21, 2004 here is the script i have so far For $count = 3 To 40 WinWait("RACES Manual 2004 final.doc - Microsoft Word","RACES Manual 2004 f") If Not WinActive("RACES Manual 2004 final.doc - Microsoft Word","RACES Manual 2004 f") Then WinActivate("RACES Manual 2004 final.doc - Microsoft Word","RACES Manual 2004 f") WinWaitActive("RACES Manual 2004 final.doc - Microsoft Word","RACES Manual 2004 f") Send("{F8}{CTRLDOWN}{PGDN}{CTRLUP}{CTRLDOWN}c{CTRLUP}{END}") WinWait("RACES Manual 2004 final.doc - Microsoft Word","RACES Manual 2004 f") If Not WinActive("RACES Manual 2004 final.doc - Microsoft Word","RACES Manual 2004 f") Then WinActivate("RACES Manual 2004 final.doc - Microsoft Word","RACES Manual 2004 f") WinWaitActive("RACES Manual 2004 final.doc - Microsoft Word","RACES Manual 2004 f") Send("{CTRLDOWN}{F12}{CTRLUP}") WinWait("Open","MSO Generic Control ") If Not WinActive("Open","MSO Generic Control ") Then WinActivate("Open","MSO Generic Control ") WinWaitActive("Open","MSO Generic Control ") Send("c{SHIFTDOWN};{SHIFTUP}\windows\desktop\manual\page11.htm{ENTER}") WinWait("page11.htm - Microsoft Word","MSO Generic Control ") If Not WinActive("page11.htm - Microsoft Word","MSO Generic Control ") Then WinActivate("page11.htm - Microsoft Word","MSO Generic Control ") WinWaitActive("page11.htm - Microsoft Word","MSO Generic Control ") Send("{DOWN}{HOME}{DOWN}{DOWN}{DOWN}{DOWN}{SHIFTDOWN}{RIGHT}{RIGHT}{RIGHT}{RIGHT}{RIGHT}{RIGHT}{RIGHT }{RIGHT}{RIGHT}{RIGHT}{RIGHT}{RIGHT}{RIGHT}{RIGHT}{RIGHT}{RIGHT}{RIGHT}{RIGHT}{RIGHT}{RIGHT}{RIGHT}{ RIGHT}{RIGHT}{RIGHT}{RIGHT}{RIGHT}{RIGHT}{RIGHT}{RIGHT}{RIGHT}{RIGHT}{RIGHT}{RIGHT}{RIGHT}{RIGHT}{RI GHT}{RIGHT}{RIGHT}{RIGHT}{RIGHT}{RIGHT}{RIGHT}{RIGHT}{RIGHT}{RIGHT}{RIGHT}{RIGHT}{RIGHT}{RIGHT}{RIGH T}{SHIFTUP}{CTRLDOWN}v{CTRLUP}") WinWait("RACES Manual 2004 final.doc - Microsoft Word","RACES Manual 2004 f") If Not WinActive("RACES Manual 2004 final.doc - Microsoft Word","RACES Manual 2004 f") Then WinActivate("RACES Manual 2004 final.doc - Microsoft Word","RACES Manual 2004 f") WinWaitActive("RACES Manual 2004 final.doc - Microsoft Word","RACES Manual 2004 f") Send("{CTRLDOWN}{PGDN}{CTRLUP}") next what I am trying to do is every you see 11 i went the number from $count an i am stuck thanks for any help
scriptkitty Posted May 21, 2004 Posted May 21, 2004 yea, you can shorten many lines. Send("{DOWN}{HOME}{DOWN}{DOWN}{DOWN}{DOWN}{SHIFTDOWN}{RIGHT}{RIGHT}{RIGHT}{RIGHT}{RIGHT}{RIGHT}{RIGHT} {RIGHT}{RIGHT}{RIGHT}{RIGHT}{RIGHT}{RIGHT}{RIGHT}{RIGHT}{RIGHT}{RIGHT}{RIGHT}{RIGHT}{RIGHT}{RIGHT}{R IGHT}{RIGHT}{RIGHT}{RIGHT}{RIGHT}{RIGHT}{RIGHT}{RIGHT}{RIGHT}{RIGHT}{RIGHT}{RIGHT}{RIGHT}{RIGHT}{RIG HT}{RIGHT}{RIGHT}{RIGHT}{RIGHT}{RIGHT}{RIGHT}{RIGHT}{RIGHT}{RIGHT}{RIGHT}{RIGHT}{RIGHT}{RIGHT}{RIGHT }{SHIFTUP}{CTRLDOWN}v{CTRLUP}") = Send("{DOWN}{HOME}{DOWN 4}{SHIFTDOWN}{RIGHT 50}{SHIFTUP}{CTRLDOWN}v{CTRLUP}") My question is $count 3 to 40? you dont' use $count anywhere. I usually start at 0 or 1 when I use a string that isn't included inside the loop anywhere so that I have a good count. AutoIt3, the MACGYVER Pocket Knife for computers.
n9mfk9 Posted May 21, 2004 Author Posted May 21, 2004 hi all thanks for all the good tips this is were I am stuck Send("c{SHIFTDOWN};{SHIFTUP}\windows\desktop\manual\page11.htm{ENTER}") WinWait("page11.htm - Microsoft Word","MSO Generic Control ") If Not WinActive("page11.htm - Microsoft Word","MSO Generic Control ") Then WinActivate("page11.htm - Microsoft Word","MSO Generic Control ") WinWaitActive("page11.htm - Microsoft Word","MSO Generic Control ") were the 11 is I like to use a string le $count thansk for any help
Developers Jos Posted May 21, 2004 Developers Posted May 21, 2004 Send("c{SHIFTDOWN};{SHIFTUP}\windows\desktop\manual\page" & $count & ".htm{ENTER}") $windowTitle = "page" & $count & ".htm - Microsoft Word" WinWait($windowTitle,"MSO Generic Control ") If Not WinActive($windowTitle,"MSO Generic Control ") Then WinActivate($windowTitle,"MSO Generic Control ") WinWaitActive($windowTitle,"MSO Generic Control ") SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past.
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