letzte frage~ kann ich mit memorywrite nen bestimmten gegner auswählen? z.B. nen boss?
hab ich auch schon versucht.Quote:
dann nimm doch dafür controlclick, bis hier ne lösung gefunden wurde.
Func _ident($ident_x, $ident_y, $Slot1_x, $Slot1_y)
ControlSend($hWnd, "", "", "{.}")
Sleep(500)
For $iy = $Slot1_y To $Slot1_y + 140 Step 45
For $ix = $Slot1_x To $Slot1_x + 165 Step 40
MouseClick("left", $ident_x, $ident_y, 2, 0)
Sleep(100)
MouseClick("left", $ix, $iy, 1, 0)
Next
Next
ControlSend($hWnd, "", "", "{.}")
EndFunc ;==>_ident
;-----
;-Identifizieren / Auch Hintergrund!
;-ident_x = X Koordinate Identifizierungswerkzeug
;-ident_y = Y Koordinate Identifiezirungswerkzeug
;-Slot1_x = X Koordinate 1. Inventarslot
;-slot1_y = Y Koordinate 1. Inventarslot
;ControlSend($hWnd, "", "", "{.}") => "Alle Taschen anzeigen" <= "." ersetzbar gegen beliebige Taste!
;-----
Func _MakeLong($LoWord, $HiWord)
Return BitOR($HiWord * 0x10000, BitAND($LoWord, 0xFFFF))
EndFunc ;==>_MakeLong
Func _MouseClick($hWnd, $button, $x, $y, $times = 1, $delay = 15)
If $hWnd = 0 Then
SetError(-1)
Return
EndIf
Local $ix
Local $lParam = _MakeLong($x, $y)
Local $user32 = DllOpen("user32.dll")
$button = StringLower($button)
If $button = "left" Then
For $ix = 1 To $times
DllCall($user32, "int", "PostMessage", "hwnd", $hWnd, "int", 0x200, "int", 0, "long", $lParam)
DllCall($user32, "int", "PostMessage", "hwnd", $hWnd, "int", 0x201, "int", 1, "long", $lParam)
DllCall($user32, "int", "PostMessage", "hwnd", $hWnd, "int", 0x202, "int", 0, "long", $lParam)
If $ix < $times Then Sleep($delay)
Next
ElseIf $button = "right" Then
For $ix = 1 To $times
DllCall($user32, "int", "PostMessage", "hwnd", $hWnd, "int", 0x200, "int", 0, "long", $lParam)
DllCall($user32, "int", "PostMessage", "hwnd", $hWnd, "int", 0x204, "int", 2, "long", $lParam)
DllCall($user32, "int", "PostMessage", "hwnd", $hWnd, "int", 0x205, "int", 0, "long", $lParam)
If $ix < $times Then Sleep($delay)
Next
Else
SetError(-2)
If $user32 <> -1 Then DllClose($user32)
Return
EndIf
If $user32 <> -1 Then DllClose($user32)
EndFunc ;==>_MouseClick
Func _identSM($ident_x, $ident_y, $Slot1_x, $Slot1_y)
Opt("MouseClickDelay", 100)
ControlSend($hWnd, "", "", "{.}")
Sleep(500)
$ident_x = 40
$ident_y = 380
$x = 36
$y = 76
For $iy = $Slot1_y To $Slot1_y + 140 Step 45
For $ix = $Slot1_x To $Slot1_x + 165 Step 40
ControlClick($hWnd, "", "", "left", 2, $ident_x, $ident_y)
Sleep(2000)
_MouseClick($hWnd, "left", $ix, $iy, 1, 80)
Next
Next
ControlSend($hWnd, "", "", "{.}")
EndFunc ;==>_identSM