Sign in to follow this  
Followers 0
Falc0

Choosing where to go in the code

3 posts in this topic

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.


RK-DemonSpawned

Share this post


Link to post
Share on other sites



RTFM

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

Select 
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
EndSelect

Share this post


Link to post
Share on other sites

I'll just assume that means read the f*cking manual :(

Anyways, thanks :ph34r:


RK-DemonSpawned

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