-TS- Posted December 21, 2003 Posted December 21, 2003 am i setting this up right??? Select Case $n1 = "x" and $n2 = "x" and $n3 = 1 Dofunc1() Case $n1 = "x" and $n2 = "x" and $n3 = 2 Dofunc2() EndSelect func1 MsgBox(0, "", "1") endfunc func2 MsgBox(0, "", "2") endfunc thx
Administrators Jon Posted December 21, 2003 Administrators Posted December 21, 2003 Looks good to me. I'd probably put the AND in capitals for easy reading but doesn't make much of a difference Oh, don't put "dofunc1()" just do "func1()"
-TS- Posted December 21, 2003 Author Posted December 21, 2003 (edited) hmmm still dont work with func1() Edited December 21, 2003 by -TS-
Developers Jos Posted December 21, 2003 Developers Posted December 21, 2003 (edited) -TS-, I believe you have to use a RETURN to close the FUNC properly. jos func1 MsgBox(0, "", "1") return endfunc Edited December 21, 2003 by JdeB SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past.
-TS- Posted December 21, 2003 Author Posted December 21, 2003 (edited) Select Case $n1 = "x" and $n2 = "x" and $n3 = 1 func1(); < dont get past here Case $n1 = "x" and $n2 = "x" and $n3 = 2 func2() EndSelect func1 MsgBox(0, "", "1") endfunc func2 MsgBox(0, "", "2") endfunc Edited December 21, 2003 by -TS-
Administrators Jon Posted December 21, 2003 Administrators Posted December 21, 2003 Select Case $n1 = "x" AND $n2 = "x" AND $n3 = 1 func1() Case $n1 = "x" AND $n2 = "x" AND $n3 = 2 func2() EndSelect Func Func1() MsgBox(0, "", "1") EndFunc Func Func2() MsgBox(0, "", "2") EndFunc
-TS- Posted December 22, 2003 Author Posted December 22, 2003 yea that looks right, you need to update the help file
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