Sign in to follow this  
Followers 0
rossnixon

Rewrite of myloop in v3

4 posts in this topic

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



#2 ·  Posted (edited)

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

I think Gary means... :">

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

[u]Old Projects:[/u]A3MORGB2Hex[u]Old Functions:[/u]_TimeAdd/_TimeSub_AddComma_BubbleSort _RippleSort "He who does not understand your silence will probably not understand your words." - Elbert Hubbard.

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