Jeocou Posted August 10, 2012 Share Posted August 10, 2012 Hello AutoIt community !I just started coding in AutoIt, and i'm trying to read the value of an address, after some search, I ended up finding this UDF called NomadMemory, that apparently is the best ones out there.Although, since i'm not good at Memory Addresses, Hex, Ascii, etc, I tried to write a simple script that would generate a GUI, with a label that would be updated with the value of a process memory address, here's what I got :#include <NomadMemory.au3> $pid = ProcessExists("MMer.exe") $address = "040A2EF8" $openmem = _MemoryOpen($pid) ; $Value = _MemoryRead($address, $openmem) ; FORM $Form1 = GUICreate("Form1", 144, 165, 390, 185) $listenlabel = GUICtrlCreateLabel($Value, 16, 16, 107, 17) GUISetState(@SW_SHOW) ; END OF FORM while 1 GUICtrlDelete($listenlabel) $listenlabel = GUICtrlCreateLabel($Value, 16, 16, 107, 17) WEndSo basically this is supposed to do the following :Get the PID of "MMer.exe", open the memory using that PID, read an Address (040A2EF8) from that process, create a form with the value of the address written in it, and update the value every once in a while.Although, it doesn't seem to work, do you see any errors in my code? Thanks in advance ! Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted August 10, 2012 Moderators Share Posted August 10, 2012 Jeocou,The only reference I can find to MMer.exe is to Micro DoT MMer - an E-Mail Flooder. Can you explain a little more what your version does and why you want to read its 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 Link to comment Share on other sites More sharing options...
Jeocou Posted August 10, 2012 Author Share Posted August 10, 2012 That's not the EXE i'm using, the one i'm using is a simple game coded in C by someone I know for training purposes, it's the first exe that I fount in my PC that wouldn't have tons of memory allocations, the less data, the easier it is to search for it You can rest assured i'm not having any malicious intentions Link to comment Share on other sites More sharing options...
iamtheky Posted August 10, 2012 Share Posted August 10, 2012 (edited) "Im not using my mail spammer, its for a game." - you might want to have a glance at the forum rules as you are on your way to breaking many of them. Edited August 10, 2012 by boththose ,-. .--. ________ .-. .-. ,---. ,-. .-. .-. .-. |(| / /\ \ |\ /| |__ __||| | | || .-' | |/ / \ \_/ )/ (_) / /__\ \ |(\ / | )| | | `-' | | `-. | | / __ \ (_) | | | __ | (_)\/ | (_) | | .-. | | .-' | | \ |__| ) ( | | | | |)| | \ / | | | | | |)| | `--. | |) \ | | `-' |_| (_) | |\/| | `-' /( (_)/( __.' |((_)-' /(_| '-' '-' (__) (__) (_) (__) Link to comment Share on other sites More sharing options...
Jeocou Posted August 10, 2012 Author Share Posted August 10, 2012 Once again, it's not a mail spammer. Look, i'll search for DEO.EXE (Random name), and let's see what we gethttp://www.removespywaretips.com/exe-d/deo-exe.htmlVirus.Let's now search for UKL.EXE, random name toohttp://www.novirus365.org/exeviruses/40335.htmlVirus.Any short filename can be a virus nowadays, I am right, or am I not?Fine, now let's keep on with the original subject.___________________________________________So, I got this .EXE that I fount in my computer, it's a command line game, therefore it has a very poor ammount of memory allocations and is just perfect for testing AutoIt and it's memory reading possibilities. Even though I spent some time searching and testing, I can't get my code to work. So once again, and this will sadly be the last one since I have 1 more post until tomorrow : Can someone that doesn't distrust people at first sight help me out with this?Many thanks in advance,Jeocou. Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted August 10, 2012 Moderators Share Posted August 10, 2012 Jeocou,Any short filename can be a virus nowadays, I am right, or am I not?You have a point - but I am sure you can understand why I felt it necessary to ask. Fine, now let's keep on with the original subject.Not so fast! it's a command line gameYou obviously have not read the Forum Rules yet. Please read them now - particularly the bit about not discussing game automation - and then you will understand why you will get no help and this thread will now be locked. See you soon with a legitimate question I hope. 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 Link to comment Share on other sites More sharing options...
Recommended Posts