name15 Posted February 11, 2010 Share Posted February 11, 2010 can i use multiple variable in one like $I = $O or $P or $I or $L Link to comment Share on other sites More sharing options...
Kealper Posted February 11, 2010 Share Posted February 11, 2010 I believe what you're referring to is something called an array, it would be set up like: Global $array[3] = ["Sally", "Bill", "Joe"] with something like this, you have the single variable "$array", which contains multiple things, so, $array[0] will be the string "Sally", $array[1] will be "Bill", and $array[2] will be "Joe". Link to comment Share on other sites More sharing options...
martin Posted February 11, 2010 Share Posted February 11, 2010 can i use multiple variable in onelike$I = $O or $P or $I or $LNot quite, but I'm not sure what you were imagining. Many values are made up of several individual values and what you are asking for is actually quite common.As an example, suppose for simplicity the possible values of $O, $P, $I and $L are all the same at 0 to 99.Then another variable $X could contain all those values like this$X = $O + 200*$P + 10000* $I + 1000000* $LFrom the value of $X you can work out the value of any of the others.To actually use a boolean Or operation to get the combined value you would need to ensure that there was no overlap in the bit values$X = BitOr($O + 2^8*$P + 2^16* $I + 2^24* $L)though by now I might have stopped making sense Serial port communications UDF Includes functions for binary transmission and reception.printing UDF Useful for graphs, forms, labels, reports etc.Add User Call Tips to SciTE for functions in UDFs not included with AutoIt and for your own scripts.Functions with parameters in OnEvent mode and for Hot Keys One function replaces GuiSetOnEvent, GuiCtrlSetOnEvent and HotKeySet.UDF IsConnected2 for notification of status of connected state of many urls or IPs, without slowing the script. Link to comment Share on other sites More sharing options...
Minikori Posted February 11, 2010 Share Posted February 11, 2010 Well, you could try... Why do you need to do this? So I could point you in the right direction. For those who are asking questions, look in the help file first. I'm tired of people asking stupid questions about how to do things when 10 seconds in the help file could solve their problem.[quote name='JRowe' date='24 January 2010 - 05:58 PM' timestamp='1264381100' post='766337'][quote name='beerman' date='24 January 2010 - 03:28 PM' timestamp='1264372082' post='766300']They already have a punishment system for abuse.[/quote]... and his his name is Valik.[/quote]www.minikori.com Link to comment Share on other sites More sharing options...
Kealper Posted February 11, 2010 Share Posted February 11, 2010 Wow you totally lost me on that one lol... Also, I dont think I understood what his question was :S Link to comment Share on other sites More sharing options...
PsaltyDS Posted February 11, 2010 Share Posted February 11, 2010 @name15: Not confused enough yet? Don't forget DLL structs and associative arrays (scripting dictionaries). All seriousness aside, the question is too vague to answer effectively. Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law 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