sersam Posted September 27, 2012 Posted September 27, 2012 I have a lua function: local myValue local function checkAddress() if not myValue then local pattern = string.char( 0xD9, 0x44, 0x24, 0xFF, 0xF3, 0x0F, 0x10, 0x05, 0xFF, 0xFF, 0xFF, 0xFF, 0xDC, 0x0D, 0xFF, 0xFF, 0xFF, 0xFF, 0xF3, 0x0F, 0x11, 0x4C, 0x24, 0xFF) local mask = "xxx?xxxx????xx????xxxxx?" local offset = 8 local startloc = 0x450000 local found = findPatternInProcess(getProc(), pattern, mask, startloc, 0xA0000); if( found == 0 ) then error("Not Found", 0); end myValue = memoryReadUInt(getProc(), found + offset); end end I will use this in AutoIt but not be Lua, be Autoit func. I uses "NomadMemory.au3" for write address. But "NomadMemory.au3" can not search according to pattern. Sorry for my English. I hope you understand my meaning.
Moderators Melba23 Posted September 27, 2012 Moderators Posted September 27, 2012 sersam, Welcome to the AutoIt forum. In which application are you trying to read the memory? M23 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 columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area
sersam Posted September 27, 2012 Author Posted September 27, 2012 Thanks.Application name is Runes and Magic (Client.exe). This a game.
Developers Jos Posted September 27, 2012 Developers Posted September 27, 2012 Thanks.Application name is Runes and Magic (Client.exe). This a game.Please ensure you read our forum rules .... 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.
Recommended Posts