[Autoit] Problem with Memory reading for looting *resolved* menu

User Tag List

Results 1 to 5 of 5
  1. #1
    spudstar99's Avatar Member
    Reputation
    12
    Join Date
    Aug 2008
    Posts
    99
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    [Autoit] Problem with Memory reading for looting *resolved*

    Hello to the community,

    i read some posts and want to thank all which put time in this hole stuff .. you are my stars

    i wrote some autoit stuff and found a autoit chat reader which work with memory reading. *so first thanks to him (pupu is his name)*

    i try to read the change of the mouse cursor from normal to lootable so that i know when to click. (i use the nomadmemory reading stuff) *there goes my second thanks*

    the problem .. i get a wiered value back .. i check the value with msgbox but only see something like a sqare.

    Code:
    #include <NomadMemory.au3>
    #include <string.au3>
    
    #include <EditConstants.au3>
    #include <GUIConstantsEx.au3>
    #include <WindowsConstants.au3>
    #include <EditConstants.au3>
    #include <GUIConstantsEx.au3>
    #include <TabConstants.au3>
    #include <WindowsConstants.au3>
    
    
    SETPRIVILEGE("SeDebugPrivilege", 1)
    
    dim $list = ProcessList("wow.exe") ;Find all the processes running spawned by wow.exe
    if $list[0][0] = 0 Then
    msgbox(0,"Error","Unable to detect WoW.exe" &@lf & "Please makes sure that wow is running before you open this app")
    exit
    EndIf
    $wow = _memoryopen($list[1][1]) ;Select the first process from the list.
    
    
    Dim $ProPID = $list[1][1]
    Global $HPROCESS = _MemoryOpen($ProPID)
    $HPROCESS = _MemoryOpen($ProPID)
    
    
    WinActivate("World of Warcraft")
    WinWaitActive("World of Warcraft")
    HotKeySet("{F4}", "Loot")
    HotKeySet("{F6}","setup")
    HotKeySet("{F5}","pause")
    HotKeySet("{END}","Quit")
    
    
    dim $UnPaused
    dim $bottom, $right, $left, $top
    
    
    pause()
    
    Func pause()
    	while 1=1
    		sleep(1000)
    		ToolTip("Paused... F4=Loot, F6=Setup, END=Quit",0,0)
    	WEnd
    EndFunc	
    
    Func Loot()
       dim $loot[10]
       While 1 = 1
    		ToolTip('Loot! F5 Pause',0,0)
    		$x = $left
    		$y = $top
    		While $y <= $bottom
    			MouseMove($x, $y, 1)
    			msgbox(0,"check1","check before mouse check")
    			$loot[1] = _MEMORYREAD(0x113AAE0, $HPROCESS, "char[2]")
    			msgbox(0,"check2","check loot falue:" & $loot[1] & "--- ")
    			if 	$loot[1] = "16" then 
    				msgbox(0,"check3","right klick")
    				MouseClick("right")
    				Sleep(150)
    			EndIf
    			$x = $x + 50
    			If $x >= $right Then
    				$y = $y + 50
    				$x = $left
    			EndIf
    		WEnd
    	WEnd	
    EndFunc
    
    Func setup()
    	MsgBox(0, "Setup", "set upper left corner / confirm enter")
    	$upperpos = MouseGetPos()
    	MsgBox(0, "Setup", "set bottom right corner / confirm enter")
    	$bottompos = MouseGetPos()
    	$left = $upperpos[0]
    	$top = $upperpos[1]
    	$right = $bottompos[0]
    	$bottom = $bottompos[1]
    	MsgBox(0, "Setup", "test of the coords")
    	Sleep(500)
    	MouseMove($left, $top, 2)
    	Sleep(500)
    	MouseMove($right, $top, 2)
    	Sleep(500)
    	MouseMove($right, $bottom, 2)
    	Sleep(500)
    	MouseMove($left, $bottom, 2)
    	Sleep(500)
    EndFunc
    
    
    func Quit()
    Exit
    EndFunc

    would be nice when someone gives me a hint .. and yes i suck .. i wished i were able to reverse engineer (or at least a little bit)
    or programm a little bit better

    thanks in advanced

    sincery spud

    *thanks to all like cypher nomad and clever people who bring this to the start*
    Last edited by spudstar99; 05-15-2009 at 03:43 PM.

    [Autoit] Problem with Memory reading for looting *resolved*
  2. #2
    spudstar99's Avatar Member
    Reputation
    12
    Join Date
    Aug 2008
    Posts
    99
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    found failure by my self ... just have to learn how this memory reading realy works

    thanks cuu

  3. #3
    Cursed's Avatar Contributor
    Reputation
    270
    Join Date
    Jun 2007
    Posts
    1,380
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Im actually scared by the words "fist thanks"... It's just a typo, I guess. Or a Freudian Slip oO

  4. #4
    spudstar99's Avatar Member
    Reputation
    12
    Join Date
    Aug 2008
    Posts
    99
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    mainly a typo, but after i found this failure i didn't correted this, because i have to smile evertime i see this ;P

    sincery spud

    *and badly i'm not natural speaking english ... but i try my best*

  5. #5
    rootguy's Avatar Member
    Reputation
    3
    Join Date
    Aug 2008
    Posts
    36
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by Cursed View Post
    Im actually scared by the words "fist thanks"... It's just a typo, I guess. Or a Freudian Slip oO
    That was totally hilarious

Similar Threads

  1. need startup help with memory reading (C++, ReadProcessMemory)
    By sixpounder in forum WoW Memory Editing
    Replies: 13
    Last Post: 03-13-2011, 09:43 AM
  2. [Example] Check if spell is available with memory reading
    By orby_tale in forum WoW Memory Editing
    Replies: 1
    Last Post: 11-14-2010, 05:14 PM
  3. [C#/CE help] Need help with memory reading
    By dididii in forum Programming
    Replies: 0
    Last Post: 10-07-2010, 12:26 PM
  4. [Question] Select a Target With Memory Reading
    By fukmeimbroken in forum WoW Memory Editing
    Replies: 15
    Last Post: 03-31-2010, 04:56 AM
  5. [AutoIt] Problem with SetRotation and Walking
    By spudstar99 in forum WoW Memory Editing
    Replies: 10
    Last Post: 06-05-2009, 09:53 AM
All times are GMT -5. The time now is 05:40 PM. Powered by vBulletin® Version 4.2.3
Copyright © 2024 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search