From 5838d659e48ae1cb934b4b5b1fdff9d1a0e08027 Mon Sep 17 00:00:00 2001 From: Nikola <122501303+nperovic@users.noreply.github.com> Date: Sun, 16 Jun 2024 11:18:04 +0800 Subject: [PATCH] Update README --- README.md | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index ecac9f4..1a7aa82 100644 --- a/README.md +++ b/README.md @@ -1,14 +1,22 @@ # DarkMsgBox +> [!NOTE] +> This is for ahk [v2-alpha.13+](https://www.autohotkey.com/docs/alpha/ChangeLog.htm#v2.1-alpha.13) users. +> If you are using ahk v2.0.x, please [click here](https://github.com/nperovic/DarkMsgBox). + ![DarkMode_MsgBox](https://github.com/nperovic/DarkMsgBox/assets/122501303/cd0a25de-54fc-42e1-b0e1-56b373c5ce29) ![DarkMode_InputBox](https://github.com/nperovic/DarkMsgBox/assets/122501303/a986b964-f98f-4d5a-a44a-f79db4d94b07) ## How To Use -### Basic -```py +### Include `Dark_MsgBox.ahk` +Learn more about `#Include`: [AHK Official Document](https://www.autohotkey.com/docs/alpha/lib/_Include.htm) +```php #Requires AutoHotkey v2 -#Include Dark_MsgBox_v2.ahk +#Include +``` +### Basic Uses +```py IB := InputBox("Please enter a phone number.", "Phone Number", "w300 h200") if (IB.Result = "Cancel") MsgBox "You entered '" IB.Value "' but then cancelled.",, 0x1 @@ -19,9 +27,6 @@ else ### Add Icon > It has to be `MsgBox.Call` for setting icons. ```py -#Requires AutoHotkey v2 -#include - MsgBox.Call("123456", "Title", "CTC", "copilot.ico") ``` > For further details, please refer to the official document: [CLICK HERE](https://www.autohotkey.com/docs/v2/lib/MsgBox.htm)