HI ich hab ein problem mit einem script und zwar habe ich mir ein programm was ein fadenkreuz anzeigt jedoch brauch ich hilfe weil ich nicht weiß wie ich die koordinaten des fadenkreuzes verstellen soll !!!!!
Wäre nett wenn mir eienr helfen könnte :)
Code:
HotKeySet("{F5}", "_Run")
HotKeySet("{F7}", "_pause")
HotKeySet("{F6}", "_exit")
$color1=0x0000FF ;gelb = 0x00F0F0 ; rot = 0x0000FF ; grün = 0x00FF00 ; blau = 0xFF0000 ; weiß = =0xFFFFFF ; lila=0xAC00A9
TrayTip("Hotkeys:", "F5 Start; F6 Ende ;)", 5)
_pause()
Func _Run()
$handle = ControlGetHandle("paskjh^2g387zaisug2937856", "", 1);$handle = ControlGetHandle("Counter-Strike", "", 1)
While 1
SetPixel($handle, @DesktopWidth/2, @DesktopHeight/2, $color1)
For $i=1 To 10
SetPixel($handle, @DesktopWidth/2+$i, @DesktopHeight/2, $color1)
SetPixel($handle, @DesktopWidth/2-$i, @DesktopHeight/2, $color1)
Sleep(0.1)
SetPixel($handle, @DesktopWidth/2, @DesktopHeight/2+$i, $color1)
SetPixel($handle, @DesktopWidth/2, @DesktopHeight/2-$i, $color1)
Next
Sleep(0.1)
WEnd
EndFunc ;==>_Run
Func SetPixel($handle, $x, $y, $color)
$dc = DllCall("user32.dll", "int", "GetDC", "hwnd", $handle)
$setpixel = DllCall("gdi32.dll", "long", "SetPixel", "long", $dc[0], "long", $x, "long", $y, "long", $color)
$realesedc = DllCall("user32.dll", "int", "ReleaseDC", "hwnd", 0, "int", $dc[0])
EndFunc ;==>SetPixel
Func _pause()
While True
Sleep(1000)
WEnd
EndFunc ;==>_pause
Func _exit()
Exit
EndFunc ;==>_exit