Jump to content
Sign in to follow this  
rossnixon

Rewrite of myloop in v3

Recommended Posts

rossnixon

Here is part of an old v2 script which does not convert to v3 correctly with the supplied convertor.

I haven't included the whole script, but think that the error is in here.

;Find & delete multiple occurrences of 6 lines that start with 'contrast'

myloop:

Send, !SF contrast{ENTER}

IfWinActive, Notepad,, Goto, finished

Send, {ESC}{HOME}{SHIFTDOWN}{DOWN 6}{SHIFTUP}{DEL}

Goto, myloop

How is that best written in v3?

Thanks,

Ross

Share this post


Link to post
Share on other sites
GaryFrost

While 1
    Send, !SF contrast{ENTER}
    If WinActive("Notepad") then ExitLoop
    Send, {ESC}{HOME}{SHIFTDOWN}{DOWN 6}{SHIFTUP}{DEL}
WEnd

Edited by gafrost

SciTE for AutoItDirections for Submitting Standard UDFs

 

Don't argue with an idiot; people watching may not be able to tell the difference.

 

Share this post


Link to post
Share on other sites
buzz44

I think Gary means... :">

While 1
    Send("!SF contrast{ENTER}")
    If WinActive("Notepad") then ExitLoop
    Send("{ESC}{HOME}{SHIFTDOWN}{DOWN 6}{SHIFTUP}{DEL}")
WEnd

qq

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  

×