Sign in to follow this  
Followers 0
n9mfk9

Need To Sen A String As Part Of Long Send Liine

4 posts in this topic

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

Share this post


Link to post
Share on other sites



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.

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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 ")


Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

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