Systray Reste? Wie entfernen?

  • Ich rufe häufig TrueCrypt aus autoIT auf. Dabei wird TrueCrypt in das Systray (bei der UHR unten rechts) minimiert. Nach Beendigung von Truecrypt bleibt das "TrueCrypt Logo" erhalten. Fährt man mit der Maus darüber verschwindet das Logo. Ist zwar nur ein Schönheitsfehler aber ärgert mich.

    Ich hätte da einen Denkansatz das zu verbessern -> die Maus mit autoit fernsteuerm und über den Punkt fahren lassen. Die Lösung kommt mir aber aufwändig vor und nicht wirklich elegant. Das Truecrypt Logo ist nie an der gleichen Stelle usw.

    Gibt es da eine einfachere Lösung? Systray neu aufrufen, Systray reaktivieren irgend sowas?


    Danke für Eure Hilfe.


    Peter

    Hinweise auf Suchmaschinen finde ich überflüssig - wer fragt hat es nicht gefunden oder nicht verstanden. Die Antwort gibt sich oftmals schneller als der Hinweis auf Dr. Goggle & Co.

    Ab 19-10-22 ergänzt um:

    Die Welt wird nicht bedroht von den Menschen, die böse sind, sondern von denen, die das Böse zulassen. (Albert Einstein)

  • Ich habe letztens, das indentische Problem so gelöst:

    Spoiler anzeigen
    [autoit]


    #include <GUIToolBar.au3>

    [/autoit] [autoit][/autoit] [autoit][/autoit] [autoit]

    $sTitle = "SX Virtual Link"

    [/autoit] [autoit][/autoit] [autoit][/autoit] [autoit]

    $hTray = ControlGetHandle('[Class:Shell_TrayWnd]', '', '[Class:ToolbarWindow32;Instance:1]')
    $iCount = _GUICtrlToolbar_ButtonCount($hTray)
    For $i = 0 To $iCount
    If StringInStr(_GUICtrlToolbar_GetButtonText($hTray, _GUICtrlToolbar_IndexToCommand ($hTray, $i )), $sTitle) Then
    $iPid = WinGetProcess(_SysTrayIconHandle($i))
    If $iPid > 0 Then
    _GUICtrlToolbar_DeleteButton($hTray, _GUICtrlToolbar_IndexToCommand ($hTray, $i ))
    ProcessClose($iPid)
    EndIf
    EndIf
    Next

    [/autoit] [autoit][/autoit] [autoit][/autoit] [autoit][/autoit] [autoit]

    ;===============================================================================
    ;
    ; Function Name: _SysTrayIconHandle($iIndex, $iWin = 1)
    ; Description: Gets hwnd of window associated with systray icon of given index
    ; Parameter(s): $iIndex - icon index (Note: starting from 0)
    ; $iWin
    ; | 1 - ToolbarWindow32, Win2000+
    ; | 2 - NotifyIconOverflowWindow, Win7+
    ;
    ; Requirement(s):
    ; Return Value(s): On Success - Returns hwnd of found icon
    ; On Failure - Sets @error and returns -1
    ; | See _SysTrayGetButtonInfo for @error returns
    ;
    ; Author(s): Tuape, Erik Pilsits
    ;
    ;===============================================================================
    Func _SysTrayIconHandle($iIndex, $iWin = 1)
    Local $TRAYDATA = _SysTrayGetButtonInfo($iIndex, $iWin, 2)
    If @error Then
    Return SetError(@error, 0, -1)
    Else
    Return Ptr(DllStructGetData($TRAYDATA, 1))
    EndIf
    EndFunc ;==>_SysTrayIconHandle

    [/autoit] [autoit][/autoit] [autoit][/autoit] [autoit][/autoit] [autoit]

    ; INTERNAL =====================================================================
    ;
    ; Function Name: _SysTrayGetButtonInfo($iIndex, $iWin = 1, $iInfo = 0)
    ; Description: Gets Tray Button Info
    ; Parameter(s): $iIndex - icon index (Note: starting from 0)
    ; $iWin
    ; | 1 - ToolbarWindow32, Win2000+
    ; | 2 - NotifyIconOverflowWindow, Win7+
    ; $iInfo - Info to return
    ; | 1 - TBBUTTON structure
    ; | 2 - TRAYDATA structure
    ; | 3 - tooltip
    ; | 4 - icon position
    ; Requirement(s):
    ; Return Value(s): On Success - Returns requested info
    ; On Failure - Sets @error and returns -1
    ; | 1 - Failed to find tray window
    ; | 2 - Failed to get tray window PID
    ; | 3 - Failed to open process
    ; | 4 - Failed to allocate memory
    ; | 5 - Failed to get TBBUTTON info
    ;
    ; Author(s): Erik Pilsits, Tuape
    ;
    ;===============================================================================
    Func _SysTrayGetButtonInfo($iIndex, $iWin = 1, $iInfo = 1)
    Local Const $TB_GETBUTTON = 1047
    ;~ Local Const $TB_GETBUTTONTEXT = 1099
    ;~ Local Const $TB_GETBUTTONINFO = 1089
    Local Const $TB_GETITEMRECT = 1053
    Local Const $ACCESS = BitOR(0x0008, 0x0010, 0x0400) ; VM_OPERATION, VM_READ, QUERY_INFORMATION
    Local $TBBUTTON
    If @OSArch = "X86" Then
    $TBBUTTON = DllStructCreate("int iBitmap;int idCommand;byte fsState;byte fsStyle;byte bReserved[2];dword dwData;int iString")
    Else ; X64
    $TBBUTTON = DllStructCreate("int iBitmap;int idCommand;byte fsState;byte fsStyle;byte bReserved[6];uint64 dwData;int64 iString")
    EndIf
    Local $TRAYDATA
    If @OSArch = "X86" Then
    $TRAYDATA = DllStructCreate("hwnd hwnd;uint uID;uint uCallbackMessage;dword Reserved[2];handle hIcon")
    Else
    $TRAYDATA = DllStructCreate("uint64 hwnd;uint uID;uint uCallbackMessage;dword Reserved[2];uint64 hIcon")
    EndIf
    Local $trayHwnd = _FindTrayToolbarWindow($iWin)
    If $trayHwnd = -1 Then Return SetError(1, 0, -1)
    Local $return, $err = 0
    Local $ret = DllCall("user32.dll", "dword", "GetWindowThreadProcessId", "hwnd", $trayHwnd, "dword*", 0)
    If @error Or Not $ret[2] Then SetError(2, 0, -1)
    Local $pId = $ret[2]
    Local $procHandle = DllCall("kernel32.dll", "handle", "OpenProcess", "dword", $ACCESS, "bool", False, "dword", $pId)
    If @error Or Not $procHandle[0] Then Return SetError(3, 0, -1)
    Local $lpData = DllCall("kernel32.dll", "ptr", "VirtualAllocEx", "handle", $procHandle[0], "ptr", 0, "ulong", DllStructGetSize($TBBUTTON), "dword", 0x1000, "dword", 0x04)
    If Not @error And $lpData[0] Then
    $ret = DllCall("user32.dll", "lresult", "SendMessageW", "hwnd", $trayHwnd, "uint", $TB_GETBUTTON, "wparam", $iIndex, "lparam", $lpData[0])
    If Not @error And $ret[0] Then
    DllCall("kernel32.dll", "bool", "ReadProcessMemory", "handle", $procHandle[0], "ptr", $lpData[0], "struct*", $TBBUTTON, "ulong", DllStructGetSize($TBBUTTON), "ulong*", 0)
    Switch $iInfo
    Case 2
    ; TRAYDATA structure
    DllCall("kernel32.dll", "bool", "ReadProcessMemory", "handle", $procHandle[0], "ptr", DllStructGetData($TBBUTTON, 6), "struct*", $TRAYDATA, "ulong", DllStructGetSize($TRAYDATA), "ulong*", 0)
    $return = $TRAYDATA
    Case 3
    ; tooltip
    $return = ""
    If BitShift(DllStructGetData($TBBUTTON, 7), 16) <> 0 Then
    Local $intTip = DllStructCreate("wchar[1024]")
    ; we have a pointer to a string, otherwise it is an internal resource identifier
    DllCall("kernel32.dll", "bool", "ReadProcessMemory", "handle", $procHandle[0], "ptr", DllStructGetData($TBBUTTON, 7), "struct*", $intTip, "ulong", DllStructGetSize($intTip), "ulong*", 0)
    $return = DllStructGetData($intTip, 1)
    ;else internal resource
    EndIf
    Case 4
    ; icon position
    If Not BitAND(DllStructGetData($TBBUTTON, 3), 8) Then ; 8 = TBSTATE_HIDDEN
    Local $pos[2], $RECT = DllStructCreate("int;int;int;int")
    DllCall("user32.dll", "lresult", "SendMessageW", "hwnd", $trayHwnd, "uint", $TB_GETITEMRECT, "wparam", $iIndex, "lparam", $lpData[0])
    DllCall("kernel32.dll", "bool", "ReadProcessMemory", "handle", $procHandle[0], "ptr", $lpData[0], "struct*", $RECT, "ulong", DllStructGetSize($RECT), "ulong*", 0)
    $ret = DllCall("user32.dll", "int", "MapWindowPoints", "hwnd", $trayHwnd, "ptr", 0, "struct*", $RECT, "uint", 2)
    $pos[0] = DllStructGetData($RECT, 1)
    $pos[1] = DllStructGetData($RECT, 2)
    $return = $pos
    Else
    $return = -1
    EndIf
    Case Else
    ; TBBUTTON
    $return = $TBBUTTON
    EndSwitch
    Else
    $err = 5
    EndIf
    DllCall("kernel32.dll", "bool", "VirtualFreeEx", "handle", $procHandle[0], "ptr", $lpData[0], "ulong", 0, "dword", 0x8000)
    Else
    $err = 4
    EndIf
    DllCall("kernel32.dll", "bool", "CloseHandle", "handle", $procHandle[0])
    If $err Then
    Return SetError($err, 0, -1)
    Else
    Return $return
    EndIf
    EndFunc ;==>_SysTrayGetButtonInfo

    [/autoit] [autoit][/autoit] [autoit][/autoit] [autoit][/autoit] [autoit]

    ;===============================================================================
    ;
    ; Function Name: _FindTrayToolbarWindow($iWin = 1)
    ; Description: Utility function for finding Toolbar window hwnd
    ; Parameter(s): $iWin
    ; | 1 - ToolbarWindow32, Win2000+
    ; | 2 - NotifyIconOverflowWindow, Win7+
    ;
    ; Requirement(s):
    ; Return Value(s): On Success - Returns Toolbar window hwnd
    ; On Failure - returns -1
    ;
    ; Author(s): Tuape, Erik Pilsits
    ;
    ;===============================================================================
    Func _FindTrayToolbarWindow($iWin = 1)
    Local $hwnd, $ret = -1
    If $iWin = 1 Then
    $hWnd = DllCall("user32.dll", "hwnd", "FindWindow", "str", "Shell_TrayWnd", "ptr", 0)
    If @error Then Return -1
    $hWnd = DllCall("user32.dll", "hwnd", "FindWindowEx", "hwnd", $hWnd[0], "hwnd", 0, "str", "TrayNotifyWnd", "ptr", 0)
    If @error Then Return -1
    If @OSVersion <> "WIN_2000" Then
    $hWnd = DllCall("user32.dll", "hwnd", "FindWindowEx", "hwnd", $hWnd[0], "hwnd", 0, "str", "SysPager", "ptr", 0)
    If @error Then Return -1
    EndIf
    $hWnd = DllCall("user32.dll", "hwnd", "FindWindowEx", "hwnd", $hWnd[0], "hwnd", 0, "str", "ToolbarWindow32", "ptr", 0)
    If @error Then Return -1
    $ret = $hwnd[0]
    ElseIf $iWin = 2 Then
    ; NotifyIconOverflowWindow for Windows 7
    $hWnd = DllCall("user32.dll", "hwnd", "FindWindow", "str", "NotifyIconOverflowWindow", "ptr", 0)
    If @error Then Return -1
    $hWnd = DllCall("user32.dll", "hwnd", "FindWindowEx", "hwnd", $hWnd[0], "hwnd", 0, "str", "ToolbarWindow32", "ptr", 0)
    If @error Then Return -1
    $ret = $hwnd[0]
    EndIf
    Return $ret
    EndFunc ;==>_FindTrayToolbarWindow

    [/autoit]

    Das Icon wird über den Titel gesucht und per'_GUICtrlToolbar_DeleteButton()' entfernt und anschließend der dazugehörige Prozess beendet.

    Zur Nutzung dieses Forum's, ist ein Übersetzer für folgende Begriffe unerlässlich:

    "On-Bort, weier, verscheiden, schädliges, Butten steyling, näckstet, Parr, Porblem, scripe, Kompletenz, harken, manuel zu extramieren, geckukt, würglich, excell, acces oder Compilevorgeng"

  • High Mica_he,
    der Prozess ist schon beendet. Es ist nur ein Icon Rest - ich probiers mal aus - melde mich wieder.
    Danke

    Peter

    Hinweise auf Suchmaschinen finde ich überflüssig - wer fragt hat es nicht gefunden oder nicht verstanden. Die Antwort gibt sich oftmals schneller als der Hinweis auf Dr. Goggle & Co.

    Ab 19-10-22 ergänzt um:

    Die Welt wird nicht bedroht von den Menschen, die böse sind, sondern von denen, die das Böse zulassen. (Albert Einstein)

  • Wenn Du den Ablauf nicht ändern kannst (weil z.B. der Task von einem anderen Programm beendet wird) dann sollte diese verkürzte Variante auch funktionieren:

    Spoiler anzeigen
    [autoit]


    #include <GUIToolBar.au3>

    [/autoit] [autoit][/autoit] [autoit][/autoit] [autoit][/autoit] [autoit]

    $sTitle = "SX Virtual Link"

    [/autoit] [autoit][/autoit] [autoit][/autoit] [autoit][/autoit] [autoit]

    $hTray = ControlGetHandle('[Class:Shell_TrayWnd]', '', '[Class:ToolbarWindow32;Instance:1]')
    $iCount = _GUICtrlToolbar_ButtonCount($hTray)
    For $i = 0 To $iCount
    If StringInStr(_GUICtrlToolbar_GetButtonText($hTray, _GUICtrlToolbar_IndexToCommand ($hTray, $i )), $sTitle) Then
    _GUICtrlToolbar_DeleteButton($hTray, _GUICtrlToolbar_IndexToCommand ($hTray, $i ))
    EndIf
    Next

    [/autoit] [autoit][/autoit] [autoit][/autoit] [autoit][/autoit] [autoit][/autoit] [autoit]

    ;===============================================================================
    ;
    ; Function Name: _SysTrayIconHandle($iIndex, $iWin = 1)
    ; Description: Gets hwnd of window associated with systray icon of given index
    ; Parameter(s): $iIndex - icon index (Note: starting from 0)
    ; $iWin
    ; | 1 - ToolbarWindow32, Win2000+
    ; | 2 - NotifyIconOverflowWindow, Win7+
    ;
    ; Requirement(s):
    ; Return Value(s): On Success - Returns hwnd of found icon
    ; On Failure - Sets @error and returns -1
    ; | See _SysTrayGetButtonInfo for @error returns
    ;
    ; Author(s): Tuape, Erik Pilsits
    ;
    ;===============================================================================
    Func _SysTrayIconHandle($iIndex, $iWin = 1)
    Local $TRAYDATA = _SysTrayGetButtonInfo($iIndex, $iWin, 2)
    If @error Then
    Return SetError(@error, 0, -1)
    Else
    Return Ptr(DllStructGetData($TRAYDATA, 1))
    EndIf
    EndFunc ;==>_SysTrayIconHandle

    [/autoit] [autoit][/autoit] [autoit][/autoit] [autoit][/autoit] [autoit][/autoit] [autoit]

    ; INTERNAL =====================================================================
    ;
    ; Function Name: _SysTrayGetButtonInfo($iIndex, $iWin = 1, $iInfo = 0)
    ; Description: Gets Tray Button Info
    ; Parameter(s): $iIndex - icon index (Note: starting from 0)
    ; $iWin
    ; | 1 - ToolbarWindow32, Win2000+
    ; | 2 - NotifyIconOverflowWindow, Win7+
    ; $iInfo - Info to return
    ; | 1 - TBBUTTON structure
    ; | 2 - TRAYDATA structure
    ; | 3 - tooltip
    ; | 4 - icon position
    ; Requirement(s):
    ; Return Value(s): On Success - Returns requested info
    ; On Failure - Sets @error and returns -1
    ; | 1 - Failed to find tray window
    ; | 2 - Failed to get tray window PID
    ; | 3 - Failed to open process
    ; | 4 - Failed to allocate memory
    ; | 5 - Failed to get TBBUTTON info
    ;
    ; Author(s): Erik Pilsits, Tuape
    ;
    ;===============================================================================
    Func _SysTrayGetButtonInfo($iIndex, $iWin = 1, $iInfo = 1)
    Local Const $TB_GETBUTTON = 1047
    ;~ Local Const $TB_GETBUTTONTEXT = 1099
    ;~ Local Const $TB_GETBUTTONINFO = 1089
    Local Const $TB_GETITEMRECT = 1053
    Local Const $ACCESS = BitOR(0x0008, 0x0010, 0x0400) ; VM_OPERATION, VM_READ, QUERY_INFORMATION
    Local $TBBUTTON
    If @OSArch = "X86" Then
    $TBBUTTON = DllStructCreate("int iBitmap;int idCommand;byte fsState;byte fsStyle;byte bReserved[2];dword dwData;int iString")
    Else ; X64
    $TBBUTTON = DllStructCreate("int iBitmap;int idCommand;byte fsState;byte fsStyle;byte bReserved[6];uint64 dwData;int64 iString")
    EndIf
    Local $TRAYDATA
    If @OSArch = "X86" Then
    $TRAYDATA = DllStructCreate("hwnd hwnd;uint uID;uint uCallbackMessage;dword Reserved[2];handle hIcon")
    Else
    $TRAYDATA = DllStructCreate("uint64 hwnd;uint uID;uint uCallbackMessage;dword Reserved[2];uint64 hIcon")
    EndIf
    Local $trayHwnd = _FindTrayToolbarWindow($iWin)
    If $trayHwnd = -1 Then Return SetError(1, 0, -1)
    Local $return, $err = 0
    Local $ret = DllCall("user32.dll", "dword", "GetWindowThreadProcessId", "hwnd", $trayHwnd, "dword*", 0)
    If @error Or Not $ret[2] Then SetError(2, 0, -1)
    Local $pId = $ret[2]
    Local $procHandle = DllCall("kernel32.dll", "handle", "OpenProcess", "dword", $ACCESS, "bool", False, "dword", $pId)
    If @error Or Not $procHandle[0] Then Return SetError(3, 0, -1)
    Local $lpData = DllCall("kernel32.dll", "ptr", "VirtualAllocEx", "handle", $procHandle[0], "ptr", 0, "ulong", DllStructGetSize($TBBUTTON), "dword", 0x1000, "dword", 0x04)
    If Not @error And $lpData[0] Then
    $ret = DllCall("user32.dll", "lresult", "SendMessageW", "hwnd", $trayHwnd, "uint", $TB_GETBUTTON, "wparam", $iIndex, "lparam", $lpData[0])
    If Not @error And $ret[0] Then
    DllCall("kernel32.dll", "bool", "ReadProcessMemory", "handle", $procHandle[0], "ptr", $lpData[0], "struct*", $TBBUTTON, "ulong", DllStructGetSize($TBBUTTON), "ulong*", 0)
    Switch $iInfo
    Case 2
    ; TRAYDATA structure
    DllCall("kernel32.dll", "bool", "ReadProcessMemory", "handle", $procHandle[0], "ptr", DllStructGetData($TBBUTTON, 6), "struct*", $TRAYDATA, "ulong", DllStructGetSize($TRAYDATA), "ulong*", 0)
    $return = $TRAYDATA
    Case 3
    ; tooltip
    $return = ""
    If BitShift(DllStructGetData($TBBUTTON, 7), 16) <> 0 Then
    Local $intTip = DllStructCreate("wchar[1024]")
    ; we have a pointer to a string, otherwise it is an internal resource identifier
    DllCall("kernel32.dll", "bool", "ReadProcessMemory", "handle", $procHandle[0], "ptr", DllStructGetData($TBBUTTON, 7), "struct*", $intTip, "ulong", DllStructGetSize($intTip), "ulong*", 0)
    $return = DllStructGetData($intTip, 1)
    ;else internal resource
    EndIf
    Case 4
    ; icon position
    If Not BitAND(DllStructGetData($TBBUTTON, 3), 8) Then ; 8 = TBSTATE_HIDDEN
    Local $pos[2], $RECT = DllStructCreate("int;int;int;int")
    DllCall("user32.dll", "lresult", "SendMessageW", "hwnd", $trayHwnd, "uint", $TB_GETITEMRECT, "wparam", $iIndex, "lparam", $lpData[0])
    DllCall("kernel32.dll", "bool", "ReadProcessMemory", "handle", $procHandle[0], "ptr", $lpData[0], "struct*", $RECT, "ulong", DllStructGetSize($RECT), "ulong*", 0)
    $ret = DllCall("user32.dll", "int", "MapWindowPoints", "hwnd", $trayHwnd, "ptr", 0, "struct*", $RECT, "uint", 2)
    $pos[0] = DllStructGetData($RECT, 1)
    $pos[1] = DllStructGetData($RECT, 2)
    $return = $pos
    Else
    $return = -1
    EndIf
    Case Else
    ; TBBUTTON
    $return = $TBBUTTON
    EndSwitch
    Else
    $err = 5
    EndIf
    DllCall("kernel32.dll", "bool", "VirtualFreeEx", "handle", $procHandle[0], "ptr", $lpData[0], "ulong", 0, "dword", 0x8000)
    Else
    $err = 4
    EndIf
    DllCall("kernel32.dll", "bool", "CloseHandle", "handle", $procHandle[0])
    If $err Then
    Return SetError($err, 0, -1)
    Else
    Return $return
    EndIf
    EndFunc ;==>_SysTrayGetButtonInfo

    [/autoit] [autoit][/autoit] [autoit][/autoit] [autoit][/autoit] [autoit][/autoit] [autoit]

    ;===============================================================================
    ;
    ; Function Name: _FindTrayToolbarWindow($iWin = 1)
    ; Description: Utility function for finding Toolbar window hwnd
    ; Parameter(s): $iWin
    ; | 1 - ToolbarWindow32, Win2000+
    ; | 2 - NotifyIconOverflowWindow, Win7+
    ;
    ; Requirement(s):
    ; Return Value(s): On Success - Returns Toolbar window hwnd
    ; On Failure - returns -1
    ;
    ; Author(s): Tuape, Erik Pilsits
    ;
    ;===============================================================================
    Func _FindTrayToolbarWindow($iWin = 1)
    Local $hwnd, $ret = -1
    If $iWin = 1 Then
    $hWnd = DllCall("user32.dll", "hwnd", "FindWindow", "str", "Shell_TrayWnd", "ptr", 0)
    If @error Then Return -1
    $hWnd = DllCall("user32.dll", "hwnd", "FindWindowEx", "hwnd", $hWnd[0], "hwnd", 0, "str", "TrayNotifyWnd", "ptr", 0)
    If @error Then Return -1
    If @OSVersion <> "WIN_2000" Then
    $hWnd = DllCall("user32.dll", "hwnd", "FindWindowEx", "hwnd", $hWnd[0], "hwnd", 0, "str", "SysPager", "ptr", 0)
    If @error Then Return -1
    EndIf
    $hWnd = DllCall("user32.dll", "hwnd", "FindWindowEx", "hwnd", $hWnd[0], "hwnd", 0, "str", "ToolbarWindow32", "ptr", 0)
    If @error Then Return -1
    $ret = $hwnd[0]
    ElseIf $iWin = 2 Then
    ; NotifyIconOverflowWindow for Windows 7
    $hWnd = DllCall("user32.dll", "hwnd", "FindWindow", "str", "NotifyIconOverflowWindow", "ptr", 0)
    If @error Then Return -1
    $hWnd = DllCall("user32.dll", "hwnd", "FindWindowEx", "hwnd", $hWnd[0], "hwnd", 0, "str", "ToolbarWindow32", "ptr", 0)
    If @error Then Return -1
    $ret = $hwnd[0]
    EndIf
    Return $ret
    EndFunc ;==>_FindTrayToolbarWindow

    [/autoit]

    Zur Nutzung dieses Forum's, ist ein Übersetzer für folgende Begriffe unerlässlich:

    "On-Bort, weier, verscheiden, schädliges, Butten steyling, näckstet, Parr, Porblem, scripe, Kompletenz, harken, manuel zu extramieren, geckukt, würglich, excell, acces oder Compilevorgeng"

    • Offizieller Beitrag

    Hallo,

    mit der Maus gehts aber auch! ^^

    Edit: Kommentare eingefügt

  • Ich habe mal, weil für mich am verständlichsten Lottichs Lösung eingebaut. Obwohl ich es "trocken" nicht 100 % prüfen kann (Trucrypt wird um 4 Ecken aufgerufen) scheint es zu funktionieren. Berichte morgen mehr - da nachts Echtlauf-

    Danke an alle


    @bern670 ich versuche das mit der Maus bei Gelegenheit zu verstehen -- Danke

    Edit:
    So die Methode WinClose() hat leider NICHT funktioniert.
    Werde übers Wochenende andere Ansätze ausprobieren.

    Peter

    Hinweise auf Suchmaschinen finde ich überflüssig - wer fragt hat es nicht gefunden oder nicht verstanden. Die Antwort gibt sich oftmals schneller als der Hinweis auf Dr. Goggle & Co.

    Ab 19-10-22 ergänzt um:

    Die Welt wird nicht bedroht von den Menschen, die böse sind, sondern von denen, die das Böse zulassen. (Albert Einstein)

    Einmal editiert, zuletzt von bernd670 (21. Mai 2015 um 08:14)