Hey Leute
ich würde gerne ein Programm machen, das die Clipboard Einträge speichert und später wieder in die Zwischenablage legt.
1.) Warum funktioniert meine Funktion nicht? (z.17-20)
2.) Wie kann ich die einzelnen ListView Einträge per doppelklick wieder in die Zwischenablage versetzen? (hauptsächlich geht es um den Doppelklick!)
Hier das was ich bis jetzt habe:
Spoiler anzeigen
#include <GuiConstants.au3>
HotKeySet("{F11}","_hideShow")
$aktuellerclip = ClipGet()
Global $hotkey = 1
GUICreate("Clip Manager",300,500)
$list = GUICtrlCreateList($aktuellerclip,10,10,280,480)
GUISetState(@SW_HIDE)
While 1
$neuerclip = ClipGet()
$nMsg = GUIGetMsg()
Select
Case $nMsg = $GUI_EVENT_CLOSE
Exit
EndSelect
If Not $aktuellerclip = $neuerclip Then
$aktuellerclip = $neuerclip
GUICtrlSetData($list,$aktuellerclip)
EndIf
WEnd
Func _hideShow()
If $hotkey = 1 Then
GUISetState(@SW_SHOW)
$hotkey = $hotkey*-1
Else
GUISetState(@SW_HIDE)
$hotkey = $hotkey*-1
EndIf
EndFunc