This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Attribute VB_Name = "ConfigManager" | |
| Option Explicit | |
| ' API функции для работы с INI-файлами | |
| Private Declare Function GetPrivateProfileString Lib "kernel32" Alias "GetPrivateProfileStringA" ( _ | |
| ByVal lpApplicationName As String, _ | |
| ByVal lpKeyName As Any, _ | |
| ByVal lpDefault As String, _ | |
| ByVal lpReturnedString As String, _ | |
| ByVal nSize As Long, _ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ' ============================================================================= | |
| ' Nextcloud File Upload via WebDAV (VBA) | |
| ' ============================================================================= | |
| ' Requires: App Password from Nextcloud settings (Security -> App passwords) | |
| ' URL format: https://domain/remote.php/dav/files/USERNAME/path/to/file | |
| ' ============================================================================= | |
| Option Explicit | |
| ' Main upload function |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ' ============================================================================= | |
| ' Nextcloud File Upload via WebDAV (VBA) | |
| ' ============================================================================= | |
| ' Requires: App Password from Nextcloud settings (Security -> App passwords) | |
| ' URL format: https://domain/remote.php/dav/files/USERNAME/path/to/file | |
| ' ============================================================================= | |
| Option Explicit | |
| ' Main upload function |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import ctypes | |
| import time | |
| # Virtual key code (F15 = 0x7E) | |
| VK_F15 = 0x7E | |
| # Flags for keyboard_event | |
| KEYEVENTF_KEYUP = 0x0002 | |
| KEYEVENTF_EXTENDEDKEY = 0x0001 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import ctypes | |
| import time | |
| # Constants for SetThreadExecutionState | |
| ES_CONTINUOUS = 0x80000000 | |
| ES_SYSTEM_REQUIRED = 0x00000001 | |
| ES_DISPLAY_REQUIRED = 0x00000002 | |
| def keep_screen_on(): | |
| """Prevents screen from turning off and system from sleeping.""" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ================================================================================ | |
| РЕШЕНИЕ: Подключение к разным табличным БД в MS Access на основе пользователя | |
| ================================================================================ | |
| 1. КОНФИГУРАЦИОННЫЙ ФАЙЛ (config.json) | |
| ================================================================================ | |
| { | |
| "managements": { | |
| "management1": { |