Mem: Einstellungen von Fenstern

10/24/2008 17:56 anonym110#1
Wie kann ich mich mit memorys Fenster wie zum Beispiel das von der Gilde oder das Inventar öffnen? Und wie verschiebe ich sie und änder ihre Größe?

Ich nehme mal an mit
HERO_OPEN = 0xa01224
HEROPOSX = 0xa01228
HEROPOSY = 0xa0122c
HEROSIZEX = 0xa01234
HEROSIZEY = 0xa01230
aber was dann? etwa

_MemoryWrite(0xa01224,$info, 1 ) zum öffnen? Leider passiert bei mir dann gar nichts


Mfg
anonym110


Mist hatte die falschen memadressen, klappt aber mit den richtigen immer nicht :(
10/24/2008 17:59 i4mSoH34Vy#2
Kann man damit nicht nur überprüfen ob es offen ist.
10/24/2008 18:02 anonym110#3
Ach so, dann probier ich denn ganzen Tag hier umsonst herum wie man ein Fenster mit Mems öffnet xD


Kann man denn wenigstens die Größe von Fenstern ändern? ODer sie verschieben?
10/24/2008 18:07 exit_Z#4
Ja dazu habe ich auch schon nen tool fertig ich bastel gerade aus langer weile ne gui dazu...
PHP Code:
#cs ----------------------------------------------------------------------------

 
AutoIt Version: 3.2.10.0
 Author
:         exit_Z, bitte nicht ändern :)

 
Script Function:
    
Zur einheitlichen erstellung eines Guild Wars Interface. Die Fenster in Guild Wars werden per Knopf druck an die jeweiligen vorgegebenen Positionen gesetzt.

#ce ----------------------------------------------------------------------------

Dim $PARTYPOSX, $PARTYPOSY, $PARTYSIZEX, $PARTYSIZEY, $EZoomA, $EZoomB, $MMAPPOSX, $MMAPPOSY, $MMAPSIZEX, $MMAPSIZEY, $CHESTPOSX, $CHESTPOSY, $ProcessID, $GameProcess, $HEROPOSX, $HEROPOSY
Dim $HEROSIZEX
, $HEROSIZEY, $INVENTARX, $INVENTARY, $MERCHANTPOSX, $MERCHANTPOSY, $MERCHANTSIZEX, $MERCHANTSIZEY, $dll,$ALLBAGX, $ALLBAGY, $GUILDPOSX,$GUILDPOSY,$GUILDSIZEX,$GUILDSIZEY
Dim $SKILLSPOSX
, $SKILLSPOSY, $SKILLSSIZEX, $SKILLSSIZEY

$dll 
= DllOpen("gpcomms.dll")

Func TextWriteLine($dll, $text, $ObjectNumber = 1, $PosX = 15, $PosY = 15, $SizeX = 600, $SizeY = 300, $TextColor = 0x9CFF00, $TextTrans = 455, $BlackBackground = 0, $FontSize = 18, $TextBold = 1)
    If 
$TextTrans > 255 Then $TextTrans = 255
    
If $TextTrans < 0 Then $TextTrans = 0
    $colorges 
= $TextColor + $TextTrans * 0x01000000
    
If $dll = -1 Then
        SetError
(1)
        Return (-
1)
    EndIf
    
$return = DllCall($dll, "Int", "GPSL_SetTextLineData", "Int", $ObjectNumber, "ushort", $PosX, "ushort", $PosY, "Str", $text, "Int", $colorges, "Int", $BlackBackground, "Int", $FontSize, "Int", $TextBold, "Int", 1)
    If @
error > 0 Or $return = 0 Then
        SetError
(1)
        Return (-
1)
    EndIf
    
$return = DllCall($dll, "Int", "GPSL_ShowText", "Int", $ObjectNumber, "Int", 1)
    If @
error > 0 Or $return = 0 Then
        SetError
(1)
        Return (-
1)
    EndIf
EndFunc

Func _ShowInfo
($Info, $TimeS)
    For 
$Time = 0 To $TimeS Step 1
        Sleep
(150)
        
$c = 0xFFFFFF
        TextWriteLine
($dll, "Information Center", 3, 0, 0, 0, 0, $c)
        
        
$c = 0xFF0000
        TextWriteLine
($dll, "[ " & $Info & " ]", 4, 300, 246, 0, 0, $c)

    
Next
    TextWriteLine
($dll, "                                                   ", 3, 0, 0, 0, 0, $c)
    
TextWriteLine($dll, "                                                   ", 4, 300, 246, 0, 0, $c)
    Return (
1)
EndFunc

Func _checkRead
()
$PARTYPOSX = 0xa0137c
$PARTYPOSY 
= 0xa01380
$PARTYSIZEX 
= 0xa01384
$PARTYSIZEY 
= 0xa01388

$EZoomA 
= 0xa0439b
$EZoomB 
= 0xa0439a

$MMAPPOSX 
= 0xa01308
$MMAPPOSY 
= 0xa01304
$MMAPSIZEX 
= 0xa01310
$MMAPSIZEY 
= 0xa0130c

$CHESTPOSX 
= 0xa012cc
$CHESTPOSY 
= 0xa012c8

$HEROPOSX 
= 0xa01228
$HEROPOSY 
= 0xa0122c
$HEROSIZEX 
= 0xa01234
$HEROSIZEY 
= 0xa01230

$INVENTARX 
= 0xa012b4
$INVENTARY 
= 0xa012b4

$ALLBAGX 
= 0xa012dc
$ALLBAGY 
= 0xa012e0

$MERCHANTPOSX 
= 0xa014f8
$MERCHANTPOSY 
= 0xa014fc
$MERCHANTSIZEX 
= 0xa01500
$MERCHANTSIZEY 
= 0xa01504

$GUILDPOSX 
= 0xa01294
$GUILDPOSY 
= 0xa01298
$GUILDSIZEX 
= 0xa0128c
$GUILDSIZEY 
= 0xa01290

$SKILLSPOSX 
= 0xa01250
$SKILLSPOSY 
= 0xa01254
$SKILLSSIZEX 
= 0xa01258
$SKILLSSIZEY 
= 0xa0125c

$ProcessID 
= ProcessExists("Gw.exe")
$GameProcess = _MemoryOpen($ProcessID)
EndFunc

func _checkWrite
()
        
_checkRead()
    
$PARTYPOSX_  = 1145538853
    $PARTYPOSY_  
= 1140170274
    $PARTYSIZEX_ 
= 1149643436
     $PARTYSIZEY_ 
= 1144008900
    
    $EZoomA_    
= 68
    $EZoomB_    
= 17467
    
    $MMAPPOSX_     
= 1130861130
    $MMAPPOSY_     
= 1135437726
    $MMAPSIZEX_ 
= 1143993296
    $MMAPSIZEY_ 
= 1148502795
    
    $HEROPOSX_     
= 1142515616
    $HEROPOSY_     
= 3233209246
    $HEROSIZEX_ 
= 1136868557
    $HEROSIZEY_ 
= 1148331155
    
    $CHESTPOSX_ 
= 1138297907
    $CHESTPOSY_ 
= 1145804118

    $INVENTARX_ 
= 1145351607
    $INVENTARY_ 
= 1145351607

    $MERCHANTPOSX_     
= 1140379453
    $MERCHANTPOSY_     
= 1064554496
    $MERCHANTSIZEX_ 
= 1148721250
    $MERCHANTSIZEY_ 
= 1144071315
    
    $ALLBAGX_ 
= 3261296064
    $ALLBAGY_ 
= 1126061398
    
    $GUILDPOSX_ 
= 1143339494
    $GUILDPOSY_ 
= 1144040108
    $GUILDSIZEX_ 
= 1131482164
    $GUILDSIZEY_ 
= 1064554133
    
    $SKILLSPOSX_ 
= 3259124006
    $SKILLSPOSY_ 
= 1072942741
    $SKILLSSIZEX_ 
= 1134712153
    $SKILLSSIZEY_ 
= 1144086918
    
    _MemoryWrite
($SKILLSPOSX, $GameProcess, $SKILLSPOSX_)
    
_MemoryWrite($SKILLSPOSY, $GameProcess, $SKILLSPOSY_)
    
_MemoryWrite($SKILLSSIZEX, $GameProcess, $SKILLSSIZEX_)
    
_MemoryWrite($SKILLSSIZEY, $GameProcess, $SKILLSSIZEY_)

    
_MemoryWrite($GUILDPOSX, $GameProcess, $GUILDPOSX_)
    
_MemoryWrite($GUILDPOSY, $GameProcess, $GUILDPOSY_)
    
_MemoryWrite($GUILDSIZEX, $GameProcess, $GUILDSIZEX_)
    
_MemoryWrite($GUILDSIZEY, $GameProcess, $GUILDSIZEY_)
    
    
_MemoryWrite($PARTYPOSX, $GameProcess, $PARTYPOSX_)
    
_MemoryWrite($PARTYPOSY, $GameProcess, $PARTYPOSY_)
    
_MemoryWrite($PARTYSIZEX, $GameProcess, $PARTYSIZEX_)
    
_MemoryWrite($PARTYSIZEY, $GameProcess, $PARTYSIZEY_)
    
    
_MemoryWrite($MMAPPOSX, $GameProcess, $MMAPPOSX_)
    
_MemoryWrite($MMAPPOSY, $GameProcess, $MMAPPOSY_)
    
_MemoryWrite($MMAPSIZEX, $GameProcess, $MMAPSIZEX_)
    
_MemoryWrite($MMAPSIZEY, $GameProcess, $MMAPSIZEY_)

    
_MemoryWrite($HEROPOSX, $GameProcess, $HEROPOSX_)
    
_MemoryWrite($HEROPOSY, $GameProcess, $HEROPOSY_)
    
_MemoryWrite($HEROSIZEX, $GameProcess, $HEROSIZEX_)
    
_MemoryWrite($HEROSIZEY, $GameProcess, $HEROSIZEY_)
    
    
_MemoryWrite($MERCHANTPOSX, $GameProcess, $MERCHANTPOSX_)
    
_MemoryWrite($MERCHANTPOSY, $GameProcess, $MERCHANTPOSY_)
    
_MemoryWrite($MERCHANTSIZEX, $GameProcess, $MERCHANTSIZEX_)
    
_MemoryWrite($MERCHANTSIZEY, $GameProcess, $MERCHANTSIZEY_)
    
    
_MemoryWrite($CHESTPOSX, $GameProcess, $CHESTPOSX_)
    
_MemoryWrite($CHESTPOSY, $GameProcess, $CHESTPOSY_)

    
_MemoryWrite($INVENTARX, $GameProcess, $INVENTARX_)
    
_MemoryWrite($INVENTARY, $GameProcess, $INVENTARY_)
    
    
_MemoryWrite($EZoomA, $GameProcess, $EZoomA_)
    
_MemoryWrite($EZoomB, $GameProcess, $EZoomB_)
    
    
_MemoryWrite($ALLBAGX, $GameProcess, $ALLBAGX_)
    
_MemoryWrite($ALLBAGY, $GameProcess, $ALLBAGY_)
    
    
_Memoryclose($GameProcess)
EndFunc

Func _setBotInterface
()
WinActivate("Guild Wars")
WinWaitActive("Guild Wars")
WinMove("Guild Wars","",0,0,1024,768) 
WinActivate("Guild Wars")
Sleep(1500)
    
_ShowInfo("Einstellungen für den das Bot Interface werden gesetzt", 25)
    
_checkWrite()
    
_ShowInfo("Bot Interface Einstellungen sind Fertig", 25)
    
Sleep(500)
    Exit
EndFunc

HotKeySet
("{F1}","_setBotInterface")

traytip("Bot Interface", "Setzt die Einstellungen für das Bot Interface bitte drücken sie F1 zum Starten der Funktion", 50)

while 
1
sleep
(60)    
WEnd 
10/24/2008 18:10 anonym110#5
Ich versteh nicht, was macht das Tool denn?
10/24/2008 18:19 Borega#6
Quote:
Originally Posted by anonym110 View Post
Ich versteh nicht, was macht das Tool denn?
-.- schau es dir doch an.. es verändert größen von fenstern... sodas du die jetzt über das prog. fest einstellen kanns und nichmehr das per hand machen musst
10/24/2008 18:37 exit_Z#7
xD Das doch sowas wo nach du gefragt hast ... eyey wenn du schon so anfängst glaube ich nich das du weißt wofür was steht^^