Skip to content

Commit

Permalink
Added drag and drop
Browse files Browse the repository at this point in the history
  • Loading branch information
Graicc committed Nov 10, 2019
1 parent 1213750 commit d829a74
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ Send keyboard events from touch controllers.
* Grip / Trigger support!

## Installation / Basic Use
Download the latest TouchBinder.zip file from [the GitHub](https://github.com/Graicc/TouchBinder/releases/latest). After extracting the files, place your settings.txt file made [here](https://graicc.github.io/TouchBinder/) in the same folder as your executable. After running TouchBinder.exe, you will see a touch controller icon in the system tray. You can right click on the icon to exit the application or reload the settings file.
Download the latest TouchBinder.zip file from [the GitHub](https://github.com/Graicc/TouchBinder/releases/latest). After extracting the files, place your settings.txt file made [here](https://graicc.github.io/TouchBinder/) in the same folder as your executable. After running TouchBinder.exe, you will see a touch controller icon in the system tray. You can also drag and drop script(s) onto the executable to run them. You can right click on the icon to exit the application or reload the settings file.
19 changes: 17 additions & 2 deletions TouchBinder.ahk
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,24 @@ tRTrigger := 0x00000010
; Read Settings
Load()
{
FileRead, file, settings.txt
l := StrSplit(file, "`r`n")
global bindings := []
if (A_Args.Length() > 0)
{
for n, param in A_Args
{
LoadFile(param)
}
} else
{
LoadFile("settings.txt")
}
}

LoadFile(filePath)
{
global bindings
FileRead, file, %filePath%
l := StrSplit(file, "`r`n")
for i, v in l
{
if (v = "")
Expand Down
1 change: 1 addition & 0 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ <h2>Installation</h2>
Download the latest TouchBinder.zip file from <a href="https://github.com/Graicc/TouchBinder/releases/latest">the GitHub</a>.
After extracting the files, place your settings.txt file (made to the right) in the same folder as your executable.
After running TouchBinder.exe, you will see a touch controller icon in the system tray.
You can also drag and drop script(s) onto the executable to run them.
You can right click on the icon to exit the application or reload the settings file.
</p>

Expand Down

0 comments on commit d829a74

Please sign in to comment.