also mein script ist jetzt so:
Code:
Click("METIN2", "right", 1403, 355, 1)
Func Click($title, $btn, $xpos, $ypos, $clicks = 1)
Local $hwnd = ControlGetHandle($title, "", "")
Local $pos = BitOR($ypos * 0x10000, BitAND($xpos, 0xFFFF))
Switch $btn
Case "left"
For $i=1 To $clicks
DllCall("User32.dll", "int", "PostMessage", "hwnd", $hwnd, "int", 0x200, "int", 0, "long", $pos)
DllCall("User32.dll", "int", "PostMessage", "hwnd", $hwnd, "int", 0x201, "int", 0x1, "long", $pos)
DllCall("User32.dll", "int", "PostMessage", "hwnd", $hwnd, "int", 0x202, "int", 0x1, "long", $pos)
Next
Case "right"
For $i=1 To $clicks
DllCall("User32.dll", "int", "PostMessage", "hwnd", $hwnd, "int", 0x200, "int", 0, "long", $pos)
DllCall("User32.dll", "int", "PostMessage", "hwnd", $hwnd, "int", 0x204, "int", 0x2, "long", $pos)
DllCall("User32.dll", "int", "PostMessage", "hwnd", $hwnd, "int", 0x205, "int", 0x2, "long", $pos)
Next
EndSwitch
EndFunc
jedoch klickt er immer noch nicht in das fenster METIN2
hab mit tool von maxi die coords genommen und alles eingefügt.. trotzdem klickt er im fenster METIN2 nicht an die gewünschte stelle^^
und @lolkop des mit dem gui geht auch mit normalen controlclick des hab ich schon hinbekommen^^ nur METIN2 hat keine control und der fenstername scheint net auszureichn als info
€ hatte fehler im script :D jetzt richtig pls guckt ob was falsch ist oder euch was einfällt ,was das problem sein könnte