Sign in to follow this  
Followers 0
Shadowz75

Memory question

1 post in this topic

#1 ·  Posted (edited)

I've got a little problem. The game is silkroad online.2 Silkroad characters are in the game.I want to show the first and the second character name in two labels.

First label:

#include <Mem.au3>

Global $CharPointer = 0x00CEA538

$var = WinList("[CLASS:CLIENT]")
For $i = 1 to $var[0][0] 
Next
; ^^ Gets the PID and name of all sro clients, $var[1][1] is client 1, $var[1][2] is client 2 etc etc.
        
;///Gets the character name of the character in client 1\\\
Global $Process = WinGetProcess("SRO_Client")
$DllInfo1 = _MemoryOpen($Process)
Global $charname = _MemoryRead($CharPointer, $DllInfo1, "wchar[40]") 
_MemoryClose($Process)
GUICtrlSetData($Label_2,$CharName)

Ok this is working for the first character.But how do i put the name of the 2nd character in the 2nd label?

Edited by Shadowz75

Share this post


Link to post
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
Sign in to follow this  
Followers 0