Quote:
Originally Posted by Samulau
Okay gut :)
Ja mit GDI+ suche aber noch nach einer anderen Lösung.
|
Andere Lösung:
Code:
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
#include <WinAPI.au3>
$pos = WinGetPos("Counter-Strike: Global Offensive")
$X = $pos[0]
$Y = $pos[1]
$Width = $pos[2]
$Height = $pos[3]
$hDummy = GUICreate("")
$GUI = GUICreate("", $Width, $Height, $X, $Y, $WS_POPUP, BitOR($WS_EX_LAYERED, $WS_EX_TOPMOST, $WS_EX_TRANSPARENT), $hDummy)
If $Width = @DesktopWidth And $Height = @DesktopHeight Then
$Cross1 = GUICtrlCreateLabel("", ($Width / 2) - 9, ($Height / 2), 20, 2)
GUICtrlSetBkColor(-1, 0xFF0000)
$Cross2 = GUICtrlCreateLabel("", ($Width / 2), ($Height / 2) - 9, 2, 20)
GUICtrlSetBkColor(-1, 0xFF0000)
Else
$Cross1 = GUICtrlCreateLabel("", ($Width / 2) - 9, ($Height / 2) + 10, 20, 2)
GUICtrlSetBkColor(-1, 0xFF0000)
$Cross2 = GUICtrlCreateLabel("", ($Width / 2), ($Height / 2) + 1, 2, 20)
GUICtrlSetBkColor(-1, 0xFF0000)
EndIf
GUISetBkColor(0xABCDEF, $GUI)
_WinAPI_SetLayeredWindowAttributes($GUI, 0xABCDEF, 255)
GUISetState()
While 1
Sleep(100)
Wend
Sollte funktionieren, kann grade nich testen.