Skip to content

Commit

Permalink
Update README
Browse files Browse the repository at this point in the history
  • Loading branch information
nperovic committed Jun 16, 2024
1 parent c550fd8 commit 5838d65
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -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 <Dark_MsgBox>
```

### 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
Expand All @@ -19,9 +27,6 @@ else
### Add Icon
> It has to be `MsgBox.Call` for setting icons.
```py
#Requires AutoHotkey v2
#include <Dark_MsgBox>

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)

0 comments on commit 5838d65

Please sign in to comment.