Jump to content
Sign in to follow this  

Choosing where to go in the code

Recommended Posts

Yes, Falc0 needs help once again :ph34r:

Anyways, what I am trying to do is make it so if they put a certain number in, in the .ini file such as, 1, it will go to a certain part in the code or if they choose 2 start the script in another part in the code.

I don't even know if it this is possible using AutoIt but I figured I'd ask because I didn't know what to search for in the help file.


Share this post

Link to post
Share on other sites


$n = IniRead("c:\myinifile.ini","General","Put your number here","1")

Case $n = 1
  ;Do what you want with 1
Case $n = 2
  ;Do what you want with 2
Case $n = 3
  ;Do what you want with 3
Case Else
  ;Do what you want in other cases

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  

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...