seesoe Posted June 19, 2009 Posted June 19, 2009 hello, im not sure the exact name of this, but i was wondering if autoit supports switches? like C:\script.au3 /a or something like that and if its A then in the script it will go to that part of code...?
FireFox Posted June 19, 2009 Posted June 19, 2009 @seesoe What do you mean ? Execute script with a command line ? Cheers, FireFox.
seesoe Posted June 19, 2009 Author Posted June 19, 2009 yeah, kinda like when you open a program by command line and give it an argument
Yeik Posted June 19, 2009 Posted June 19, 2009 yeah, kinda like when you open a program by command line and give it an argumenti suggest opening up help, going to index, and looking for Command Line Parameters. it should help you a lot. func get_quote() local $quote switch random(1, 3, 1) case 1 $quote = '"' & "A human being should be able to change a diaper, plan an invasion, butcher a hog, conn a ship, " & _ "design a building, write a sonnet, balance accounts, build a wall, set a bone, comfort the dying, take orders, give " & _ "orders, cooperate, act alone, solve equations, analyze a new problem, pitch manure, program a computer, cook a tasty meal, " & _ "fight efficiently, die gallantly. Specialization is for insects." & '"' & " Robert A. Heinlein" case 2 $quote = '"' & "Within each of us lies the power of our consent to health and sickness, to riches and poverty, to freedom " & _ "and to slavery. It is we who control these, and not another." & '"' & " Richard Bach (Illusions)" case 3 $quote ='"' & "Don't handicap your children by making their lives easy." & '"' & " Robert A. Heinlein" EndSwitch MsgBox(0, "Quote for the moment", $quote & @CRLF) EndFunc get_quote()
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now