xZZTx Posted June 13, 2008 Share Posted June 13, 2008 Really Hard To Explane... is there a way in a script for it to make Variables on its own like check a number and make Variables depending on it so if number is 5 then make $v1 $v2 $v3 $v4 $v5 and also $v1 = 1 $v2 = 2 $v3 = 3 $v4 = 4 $v5 = 5 kinda get it? if not i will try to explane best i can Sorry For Any Spelling / Grammar Errors I May Make.... I Failed English Wayyyy To Many Times.. Link to comment Share on other sites More sharing options...
Tomb Posted June 13, 2008 Share Posted June 13, 2008 your talking about arrays. research them. Link to comment Share on other sites More sharing options...
Valuater Posted June 13, 2008 Share Posted June 13, 2008 Maybe... #include <array.au3> $Num = 5 ; you pick Dim $array[$Num + 1] For $x = 1 To UBound($array) - 1 $array[$x] = "array number = " & $x Next _ArrayDisplay($array) 8) Link to comment Share on other sites More sharing options...
xZZTx Posted June 13, 2008 Author Share Posted June 13, 2008 Yes this works but now i need to know how.. because the $Num might be 5 but the vlaue is random any way to have that in an array? Sorry For Any Spelling / Grammar Errors I May Make.... I Failed English Wayyyy To Many Times.. Link to comment Share on other sites More sharing options...
Valuater Posted June 13, 2008 Share Posted June 13, 2008 #include <array.au3> $Num = Random (5, 100, 1) ; you pick..no, OK I'L PICK******* Dim $array[$Num + 1] For $x = 1 To UBound($array) - 1 $array[$x] = "array number = " & $x Next _ArrayDisplay($array) 8) Link to comment Share on other sites More sharing options...
xZZTx Posted June 14, 2008 Author Share Posted June 14, 2008 Well im trying to make a mem scanner but so far its fail #include <array.au3> #include <Memory1.au3> Global $N,$V,$Num,$It $P = WinGetTitle("Warcraft") $ProcessID = WinGetProcess($P) $ProcessInformation = _MemoryOpen($ProcessID) $Value = 5000 $Num = 0 while 1 $V = Hex($N,8) $It = _MemoryRead("0x"&Hex($N,8), $ProcessInformation) If $It = $Value Then $V = Hex($N,8) $Num += 1 Else $N += 1 EndIf Dim $array[$Num + 1] $array[$Num] = $V ToolTip($It,1000,300) WEnd For Some Odd Reason $It Only = 0.. it never changes.. Sorry For Any Spelling / Grammar Errors I May Make.... I Failed English Wayyyy To Many Times.. Link to comment Share on other sites More sharing options...
Paulie Posted June 14, 2008 Share Posted June 14, 2008 Do you mean something like this? For $i = 1 to 5 Assign("v"&$i,$i) Next 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