Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 09/25/2022 in all areas

  1. Hera ya go. #include <GuiMenu.au3> #include <WinAPIGdi.au3> #include <WinAPIHObj.au3> Local $hWnd = GUICreate("Icon Test", 200, 200) GUISetState() Local $idContextmenu = GUICtrlCreateContextMenu() GUICtrlCreateMenuItem("Item 1", $idContextmenu) Local $Item2 = GUICtrlCreateMenuItem("Item 2", $idContextmenu) Local $Menu = GUICtrlCreateMenu("Menu", $idContextmenu) Local $Item3 = GUICtrlCreateMenuItem("Item 3", $Menu) $hBMP_1 = _WinAPI_CreateSolidBitmap($hWnd, 0xC0C0C0, 16, 16) $hBMP_2 = _WinAPI_CreateSolidBitmap($hWnd, 0x345345, 16, 16) _GUICtrlMenu_SetItemBitmaps(GUICtrlGetHandle($idContextmenu), $Item2, $hBMP_1, $hBMP_1, False) _GUICtrlMenu_SetItemBitmaps(GUICtrlGetHandle($Menu), $Item3, $hBMP_2, $hBMP_2, False) While GUIGetMsg() <> -3 WEnd _WinAPI_DeleteObject($hBMP_1) _WinAPI_DeleteObject($hBMP_2)
    1 point
  2. It's quite hard to meddle with other processes handle. https://learn.microsoft.com/en-us/windows/win32/api/fileapi/nf-fileapi-flushfilebuffers To flush all open files on a volume, call FlushFileBuffers with a handle to the volume. The caller must have administrative privileges. For more information, see Running with Special Privileges. But I guess that will impair overall system performance. Or as you wrote yourself, copy the file periodically and check the size of the copy.
    1 point
  3. Jon

    AutoIt v.3.3.16.1 Released

    AutoIt v3.3.16.1 has been released. Thanks to @jpm and the MVPs who were responsible for the majority of code in this version. Download it here. Complete list of changes: History
    1 point
×
×
  • Create New...