Jump to content

autoit memory read problem


melover
 Share

Recommended Posts

#RequireAdmin
SetPrivilege("SetDebugPrivilege", 1)
$struct = DllStructCreate("dword")
DllStructSetData($struct, 1, 11)
$ptr = DllStructGetPtr($struct)

#include <nomadMemory2.au3>
#include <WindowsConstants.au3>
Opt("WinTitleMatchMode", -1)


$PID = WinGetProcess("my_office")
$sModule = "my_office.exe"
$StaticOffset = 0x000E62E0
$ah_Handle = _MemoryOpen($PID)
$exeBaseAddr = _MemoryModuleGetBaseAddress($PID, $sModule) + $StaticOffset
MsgBox(1,"",$exeBaseAddr)


dim $Offset = 0x7296

    $Process = _MemoryOpen(ProcessExists("my_office.exe"))
    If Not @error Then
        $value = _MemoryPointerRead($exeBaseAddr, $Process,$Offset)
        MsgBox(1,"",$value[1])

        _MemoryClose($Process)

    EndIf
    Sleep(100)

 

Edited by Jos
Link to comment
Share on other sites

  • Developers

Cheat engine?  Why are you doing this or what is it you want to accomplish?

 

@all: Please refrain from posting until cleared.

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to comment
Share on other sites

  • Developers

Sorry, but that is not clear enough for me and I fail to understand why one needs to read memory for an office program, so please try to explain the purpose of all of this.

Jos

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to comment
Share on other sites

the company i work for is the game company ,
weekly excel list coming ,I transfer excel to the site with the help of image_search.au3 library,work needs to be done fast ,slow to read and write I will use 2 autoit files,
one of them will read and the other one will reach those values from ram and process.

Edited by Jos
Link to comment
Share on other sites

  • Developers

First of all : Please Copy/Paste without formatting.

As to your last post: You still haven't explained what the purpose is of all of this. It is also still totally unclear why you need to read memory! 
As you already mentioned that you work for a Game company: Please ensure you also read our forum rules as we have some policies against Game automation.

Jos

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to comment
Share on other sites

  • Moderators

melover,

Let us see if I have any luck getting through to you.

Quote

weekly excel list coming ,I transfer excel to the site with the help of image_search.au3 library,work needs to be done fast ,slow to read and write I will use 2 autoit files,
one of them will read and the other one will reach those values from ram and process.

That makes little sense to me. Why do you need to "reach those values from ram and process" and use image-searching when you can use  the Excel UDF to read directly from your Excel file?

M23

P.S. And just to be absolutely clear - this is still the Mod team determining the legality of the thread, so everyone else please keep out.

 

Public_Domain.png.2d871819fcb9957cf44f4514551a2935.png Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind

Open spoiler to see my UDFs:

Spoiler

ArrayMultiColSort ---- Sort arrays on multiple columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...