+ Post New Thread
Results 1 to 1 of 1
Scripts Thread, AutoIT Memory R/W in Coding and Web Development; Hi.. FileReading to Array Trimming the Array Variables then want to write each array variable on the press of a ...
  1. #1

    Join Date
    May 2010
    Posts
    1
    Thank Post
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    AutoIT Memory R/W

    Hi..

    FileReading to Array Trimming the Array Variables then want to write each array variable on the press of a key

    Im trying to Write a memory address with a different value from an array each time i press a key, i want it going in a loop..

    Here's my script up2 now..

    Code:
    #include <nomadmemory.au3>
    #include <file.au3>
    #include <misc.au3>
    #RequireAdmin
    
    $dll = DllOpen("user32.dll")
    
    
    Dim $key
    
    $message = "Please Select Your txt file"
    
    $select = FileOpenDialog($message, @DesktopDir & "\", "Txt Files (*.txt)", 1)
    
    $fo = FileOpen($select, 0)
    
    $pid = _MemoryOpen(ProcessExists("1337.exe"))
    
    _memoryopen($pid, 0x1F0FFF, 1)
    
    If Not _FileReadToArray($select,$key) Then
       MsgBox(4096,"Error", " Error reading keyfile to Array     error:" & @error)
       Exit
    EndIf
    For $x = 1 to $key[0]
    $tk = StringTrimRight($key[$x], 4)
    $tk1 = StringTrimLeft($key[$x], 16)
    Next
    
    ; Check if file opened for reading OK
    If $fo = -1 Then
        MsgBox(0, "Error", "Unable to open file.")
        Exit
    EndIf
    
    
    If @error Then
        MsgBox(0, "Error!", "Error Code:" & @error)
    EndIf
    
    _memorywrite(0x00724B84, $pid, $tk, "char[17]")
    _memorywrite(0x00724BA8, $pid, $tk1, "char[5]")
    
    _memoryclose($pid)
    
    FileClose($fo)
    Last edited by Matty2; 15th May 2010 at 07:10 PM.

SHARE:
+ Post New Thread

Similar Threads

  1. AutoIT errors
    By MK-2 in forum Scripts
    Replies: 1
    Last Post: 8th August 2008, 03:35 PM
  2. autoit help please
    By RabbieBurns in forum Scripts
    Replies: 8
    Last Post: 16th June 2008, 03:47 PM
  3. AutoIT help.
    By K.C.Leblanc in forum Scripts
    Replies: 7
    Last Post: 28th November 2007, 03:27 PM
  4. AutoIT help
    By randle in forum Windows
    Replies: 14
    Last Post: 11th July 2007, 09:26 AM
  5. AutoIT
    By Gatt in forum Scripts
    Replies: 3
    Last Post: 3rd July 2007, 01:29 PM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •