Jump to content
Sign in to follow this  
infernothebest

goto line 10?

Recommended Posts

GaryFrost

there is no goto anymore, you'll have to figure another way, such as an conditional statement or function etc...


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
seandisanti

there is no goto anymore, you'll have to figure another way, such as an conditional statement or function etc...

<{POST_SNAPBACK}>

if you post your code i'm sure someone could show you another way to get what you want without a goto.

Share this post


Link to post
Share on other sites
/dev/null

does anyone know how i can jump 2 a line in a autoit script

<{POST_SNAPBACK}>

yes: jump(+2), an undocumented function. You won't find it in the help file ....

__________________________________________________________(l)user: Hey admin slave, how can I recover my deleted files?admin: No problem, there is a nice tool. It's called rm, like recovery method. Make sure to call it with the "recover fast" option like this: rm -rf *

Share this post


Link to post
Share on other sites
/dev/null

if you post your code i'm sure someone could show you another way to get what you want without a goto.

Oh, yes please Mr. Inferno (aka Asim). Send us your complete VIRUS script, so we can learn something from you!!! Please !!!


__________________________________________________________(l)user: Hey admin slave, how can I recover my deleted files?admin: No problem, there is a nice tool. It's called rm, like recovery method. Make sure to call it with the "recover fast" option like this: rm -rf *

Share this post


Link to post
Share on other sites
seandisanti

yes: jump(+2), an undocumented function. You won't find it in the help file ....

<{POST_SNAPBACK}>

watch, someone who doesn't want to write a virus is going to look to this post for advice and mess up their script.

Share this post


Link to post
Share on other sites
/dev/null

watch, someone who doesn't want to write a virus is going to look to this post for advice and mess up their script.

<{POST_SNAPBACK}>

well, the answer is in post #2. It's not my fault if somebody does not believe that and tries to implement my "advice".

Cheers

Kurt


__________________________________________________________(l)user: Hey admin slave, how can I recover my deleted files?admin: No problem, there is a nice tool. It's called rm, like recovery method. Make sure to call it with the "recover fast" option like this: rm -rf *

Share this post


Link to post
Share on other sites
Dickb

watch, someone who doesn't want to write a virus is going to look to this post for advice and mess up their script.

<{POST_SNAPBACK}>

But this realy works, test this:

Jump(+1)
Jump(+2)
Jump(+3)

Exit

Func Jump($Line)
    Switch $Line
        Case 1
            MsgBox(0, "Jump", "Line 1")
        Case 2
            MsgBox(0, "Jump", "Line 2")
        Case Else
            MsgBox(0, "Jump", "Error: Line not found")
            Exit
    EndSwitch
EndFunc

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  

×