Jump to content
Sign in to follow this  
onlineth

Jump to parts of the AutoIT file

Recommended Posts

onlineth

Hi, on my Casio Calculator, it lets me input the following commands when you create a program, Goto and Lbl. The command goto goes and finds a label and then the program continues from there. Here is an example

LblA

"Type in a number that is not 0"

Promt(?)->A

If A=0

Then "You typed in 0" : GotoA

IfEnd

.......

Is it possible to do something like this in an AutoIT script?

Thank you for your help and support!!!


online.png?theme=dark profile for Tom on Stack Exchange, a network of free, community-driven Q&A sites 

scientia potentia est

Share this post


Link to post
Share on other sites
kylomas

onlinethlive,

Of course it is.  Some of the elements of the language that you will need are:

- inputbox / guictrlcreateinput

- function(s) / call(s)

Look in the Help file and see what you can come up with.

Good Luck,

kylomas

  • Like 1

Forum Rules         Procedure for posting code

"I like pigs.  Dogs look up to us.  Cats look down on us.  Pigs treat us as equals."

- Sir Winston Churchill

Share this post


Link to post
Share on other sites
JohnOne

While 1
    If _LblA() = 0 Then
        MsgBox(0, 0, "You typed in 0")
    Else
        ExitLoop
    EndIf
WEnd

Func _LblA()
    Return InputBox("", "Type in a number that is not 0")
EndFunc   ;==>_LblA


AutoIt Absolute Beginners    Require a serial    Pause Script    Video Tutorials by Morthawt   ipify 

Monkey's are, like, natures humans.

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  

×