nephilim Posted June 2, 2008 Share Posted June 2, 2008 this is my first time trying to access memory areas but i cant get this to work I'm trying to get 2 addresses and then feed them into the mouse here my code #include <_Mem.au3> HotKeySet("{ESC}", "_Exit") $Process = ("myprog.exe") While 1 $Address = 0x6107D1 $Address1 = 0x6107D2 $Handle = _MemOpen($Process) $Value = _MemRead($Handle, $Address) $Value1 = _MemRead($Handle, $Address1) If ($Value) > 0 Then MouseMove ($Value, $Value1,0) EndIf WEnd Func _Exit() Exit EndFunc Link to comment Share on other sites More sharing options...
nephilim Posted June 3, 2008 Author Share Posted June 3, 2008 #Include <_mem.au3> #include <GUIConstants.au3> HotKeySet("{ESC}", "_Exit") $Read_Address1 = 0x127B4B $Read_Address2 = 0x127B4C $Process = WinGetProcess("MyProg") while 1 $Mem_Open = _MemoryOpen($Process) $read1 = _MemoryRead($Read_Address1, $Mem_Open) $read2 = _MemoryRead($Read_Address2, $Mem_Open) _MemoryClose($Mem_Open) MouseMove ($read1,$read2,0) WEnd Func _Exit() Exit EndFunc i relay need help here lol i have it working but its not moving right its all over the place basically i want it to follow a object about the screen basically I'm taking the objects cords and feeding them to the mouse Link to comment Share on other sites More sharing options...
Airwolf Posted June 3, 2008 Share Posted June 3, 2008 You could try adding a timeout in your loop. If you're using the memory functions properly (which I'm not too familiar with) and the mouse is bouncing all over the screen, then the addresses must not contain the results you are looking for. Certifications: A+, Network+, Security+, Linux+, LPIC-1, MCSA | Languages: AutoIt, C, SQL, .NETBooks: AutoIt v3: Your Quick Guide - $7.99 - O'Reilly Media - September 2007-------->[u]AutoIt v3 Development - newbie to g33k[/u] - Coming Soon - Fate Publishing - Spring 2013UDF Libraries: SkypeCOM UDF Library | ADUC Computers OU Cleanup | Find PixelChecksumExamples: Skype COM Examples - Skype4COMLib Examples converted from VBS to AutoIt Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now