AltDrag 开源项目教程

AltDrag 开源项目教程

altdrag:file_folder: Easily drag windows when pressing the alt key. (Windows)项目地址:https://gitcode.com/gh_mirrors/al/altdrag

1. 项目的目录结构及介绍

AltDrag 项目的目录结构相对简单,主要包含以下几个部分:

  • src: 源代码目录,包含了 AltDrag 的所有源文件。
  • docs: 文档目录,包含了项目的相关文档。
  • installer: 安装程序目录,包含了用于创建安装包的文件。
  • LICENSE: 项目许可证文件。
  • README.md: 项目说明文件。

src 目录

src 目录下包含了 AltDrag 的主要源代码文件,具体包括:

  • AltDrag.cpp: 主程序文件。
  • Config.cpp: 配置处理文件。
  • Hook.cpp: 钩子处理文件。
  • Resource.rc: 资源文件。

docs 目录

docs 目录下包含了项目的相关文档,如使用说明、开发文档等。

installer 目录

installer 目录下包含了用于创建安装包的文件,如安装脚本、安装资源等。

2. 项目的启动文件介绍

AltDrag 的启动文件是 AltDrag.exe,它位于 src 目录下。该文件是项目的可执行文件,负责启动 AltDrag 应用程序。

AltDrag.exe

AltDrag.exe 是 AltDrag 的主程序文件,负责处理用户输入、窗口管理等功能。启动时,它会读取配置文件并根据配置进行初始化。

3. 项目的配置文件介绍

AltDrag 的配置文件是 AltDrag.ini,它通常位于应用程序的安装目录或用户目录下。该文件包含了 AltDrag 的所有配置选项。

AltDrag.ini

AltDrag.ini 文件包含了多个配置节,每个节对应不同的配置选项。以下是一些常见的配置节和选项:

  • [General]: 通用配置选项。
    • MultipleInstances: 是否允许多个实例运行。
    • AutoSnap: 是否启用自动吸附功能。
  • [Keys]: 快捷键配置选项。
    • AltScroll: 配置 Alt+Scroll 的行为。
    • SpaceKey: 配置 Space 键的行为。
  • [Appearance]: 外观配置选项。
    • Transparency: 窗口透明度设置。

通过修改 AltDrag.ini 文件,用户可以自定义 AltDrag 的行为和外观。


以上是 AltDrag 开源项目的目录结构、启动文件和配置文件的介绍。希望这份教程能帮助你更好地理解和使用 AltDrag 项目。

altdrag:file_folder: Easily drag windows when pressing the alt key. (Windows)项目地址:https://gitcode.com/gh_mirrors/al/altdrag

用于游戏窗口大小调整AltDrag Made by Stefan Sundin Drag windows with the mouse when pressing the alt key. You can use the middle or right mouse button to resize windows. If you press the shift key while you drag or resize, the window will stick to other windows. You can double-click a window to maximize it. You can double-click with the middle mouse button to roll-up windows. You can edit more settings in AltDrag.ini: * Enable experimental features to be able to use the shift key when normally moving windows. * Enable StickyScreen to make windows always sticky to the screen borders and the taskbar when dragging or resizing (no need to press shift). Fullscreen windows, such as games, will not be dragged or resized. If you experience lag when you move or resize windows, try disabling the mouse cursor switch in AltDrag.ini. AltDrag will automatically check for updates. You can disable this in AltDrag.ini. You can use -hide as a parameter to hide the tray icon. Visit the website at http://altdrag.googlecode.com/ Send feedback to recover89@gmail.com If you feel this program is useful, please consider donating money. You can find out how to donate on the website. Changelog --------- 0.7 - 2009-04-24: Added StickyScreen which makes windows automatically stick to the screen borders without needing shift (off by default). Added the ability to roll-up windows by double-clicking with the middle mouse button. Fixed some bugs in ExperimentalFeatures, it's working pretty well now so give it a try. Fixed an annoying error message that sometimes popped up when AltDrag was on autostart. 0.6 - 2009-02-12: Sticky behavior now works with resize (except when resizing in all directions). Fixed tray not being hidden by -hide. Fixed mouse cursor not changing when Aero was disabled in Vista. Language can now be changed in AltDrag.ini. 0.5 - 2009-01-12: You can now resize windows with the middle or right mouse button. You can now double-click a window to maximize it. You can now blacklist cert
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

芮逸炯Conqueror

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值