Jump to content

Matty2

Members
  • Posts

    1
  • Joined

  • Last visited

Reputation

0 Neutral

About Matty2

  1. 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.. #include #include #include #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)
×
×
  • Create New...