Jump to content

Jump to parts of the AutoIT file


onlineth
 Share

Recommended Posts

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

Link to comment
Share on other sites

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

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

Link to comment
Share on other sites

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.

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...