Skip to content

Commit

Permalink
Add sample v2 file, format v1 file (#448)
Browse files Browse the repository at this point in the history
* Format v1Demo.ahk

* Fixup Development.md

* Add sample auto-clicker
  • Loading branch information
mark-wiemer authored Jun 20, 2024
1 parent 2299546 commit 734dd66
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 4 deletions.
17 changes: 17 additions & 0 deletions demos/autoclicker.ahk
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#Requires AutoHotkey v2
#SingleInstance Force
#MaxThreadsPerHotkey 3

global ClickerToggle := false
ClicksPerSecond := 10
^z::
{
global ClickerToggle := !ClickerToggle
Loop
{
If (!ClickerToggle)
Break
Click
Sleep 1000 / ClicksPerSecond
}
}
5 changes: 2 additions & 3 deletions demos/v1Demo.ahk
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,6 @@ CapsLock() {
hoverToSeeComment() {
}


; SUBROUTINES

; ExitApp indentation for subroutines
Expand Down Expand Up @@ -160,9 +159,9 @@ if (expression)
code

; https://github.com/vscode-autohotkey/ahkpp/issues/290
MsgBox, 4, , Would you like to continue?, 5 ; 5-second timeout.
MsgBox, 4, , Would you like to continue?, 5 ; 5-second timeout.
IfMsgBox, No
Return ; User pressed the "No" button.
Return ; User pressed the "No" button.
IfMsgBox, Timeout
Return ; i.e. Assume "No" if it timed out.
; Otherwise, continue:
Expand Down
2 changes: 1 addition & 1 deletion docs/Development.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ Unless otherwise specified, commit messages don't matter.
1. Commit the changes.
1. Open a PR. For style, the title of the PR should be e.g. `v1.2.3`. The PR description should contain the changelog entry, including the heading for this version.
1. Fix any remaining issues with the PR.
1. Merge the PR. Commit message should be e.g. `v1.2.3 (#456)`, no additional details.
1. Merge the PR. Commit message should be the changelog heading, e.g. `v1.2.3 - 2020-12-31 ❄️ (#456)`
1. `git checkout main && git pull && npm run package`
1. Install the new version:
1. Select the newly-created `.vsix` file.
Expand Down

0 comments on commit 734dd66

Please sign in to comment.