Felix.Intern Posted May 16, 2006 Share Posted May 16, 2006 Hi, Is AU3 supporting something like DEFINE? Thank you Felix Link to comment Share on other sites More sharing options...
Xenobiologist Posted May 16, 2006 Share Posted May 16, 2006 HI, define what? variable? So long, Mega Scripts & functions Organize Includes Let Scite organize the include files Yahtzee The game "Yahtzee" (Kniffel, DiceLion) LoginWrapper Secure scripts by adding a query (authentication) _RunOnlyOnThis UDF Make sure that a script can only be executed on ... (Windows / HD / ...) Internet-Café Server/Client Application Open CD, Start Browser, Lock remote client, etc. MultipleFuncsWithOneHotkey Start different funcs by hitting one hotkey different times Link to comment Share on other sites More sharing options...
Felix.Intern Posted May 16, 2006 Author Share Posted May 16, 2006 sorry, what i mean is a define like: ORANGE=0 TREE=1 APPLE=2 that i can from now on ORANGE as 0, TREE as a 1 and so on. Thanks Link to comment Share on other sites More sharing options...
Xenobiologist Posted May 16, 2006 Share Posted May 16, 2006 Hi, I still don't get it. Something like: $orange = 1 $banana = 2 MsgBox(64, "Fruits", $orange & " " & $banana) So long, Mega Scripts & functions Organize Includes Let Scite organize the include files Yahtzee The game "Yahtzee" (Kniffel, DiceLion) LoginWrapper Secure scripts by adding a query (authentication) _RunOnlyOnThis UDF Make sure that a script can only be executed on ... (Windows / HD / ...) Internet-Café Server/Client Application Open CD, Start Browser, Lock remote client, etc. MultipleFuncsWithOneHotkey Start different funcs by hitting one hotkey different times Link to comment Share on other sites More sharing options...
Felix.Intern Posted May 16, 2006 Author Share Posted May 16, 2006 in C++ i can define: APPLE = 0 BANNANE = 1 than use a "Name" as a Interger int Obst = BANNANE Than in a Case Structure i can decide like case 1 ( 1 = OBST ) {Das heisst der Kompiler macht nichts anderes als fuer jedes BANNANE eine 1, fuer den APPLE eine 0 usw einzusetzten } Link to comment Share on other sites More sharing options...
Lazycat Posted May 16, 2006 Share Posted May 16, 2006 Why not just use variable? You can add const keyword to be sure that your variable will not change. Global Const $APPLE = 0 ... Dim Obst = $APPLE And you don't need to care about types here - this is scripting language. Koda homepage ([s]Outdated Koda homepage[/s]) (Bug Tracker)My Autoit script page ([s]Outdated mirror[/s]) Link to comment Share on other sites More sharing options...
Felix.Intern Posted May 16, 2006 Author Share Posted May 16, 2006 Thank you, i'll do this. Felix Link to comment Share on other sites More sharing options...
Valik Posted May 16, 2006 Share Posted May 16, 2006 Add for what you are trying to do, Enum is what you want: Enum $APPLE, $ORANGE, $PEAR, $GRAPE Apple will be 0, orange will be 1 and so on. Link to comment Share on other sites More sharing options...
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