Jump to content

Rewrite of myloop in v3


Recommended Posts

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

Link to comment
Share on other sites

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.

 

Link to comment
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
 Share

  • Recently Browsing   0 members

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