Ich muss für ein Tool den Cursor temporär ändern, dazu hab ich auch schon ne UDF gefunden:
[autoit]Func _SetCursor($s_file, $i_cursor)
Local $newhcurs, $lResult
$newhcurs = DllCall("user32.dll", "int", "LoadCursorFromFile", "str", $s_file)
If Not @error Then
$lResult = DllCall("user32.dll", "int", "SetSystemCursor", "int", $newhcurs[0], "int", $i_cursor)
If Not @error Then
$lResult = DllCall("user32.dll", "int", "DestroyCursor", "int", $newhcurs[0])
Else
MsgBox(0, "Error", "Failed SetSystemCursor")
EndIf
Else
MsgBox(0, "Error", "Failed LoadCursorFromFile")
EndIf
EndFunc ;==>_SetCursor
So weit, so gut. Jetzt will ich den OriginalCursor aber wiederherstellen...
Geht das auch mit Au3, oder muss ich das umständlich über die Registry machen?