Skip to content

Commit

Permalink
Implement AHK-Scripts.
Browse files Browse the repository at this point in the history
  • Loading branch information
ScheerleJo committed May 9, 2022
1 parent fca8e55 commit 08f0f5c
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 39 deletions.
7 changes: 1 addition & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,11 +70,6 @@ The plan is to eventually move the MIDI-Output from a physical to a virtual Port

- implement the WorshipTools api to automate Presenter and Planning (if it is possible without an API)

### AutoHotkey

- program AutoExport script
- program script for connecting midi2presenter

## Developer

<img src="https://avatars.githubusercontent.com/ScheerleJo" height="50px" title="Josia Scheerle"/> | [`@ScheerleJo`](https://github.com/ScheerleJo)
<img src="https://avatars.githubusercontent.com/ScheerleJo" height="50px" title="Josia Scheerle"/> | [`@ScheerleJo`](https://github.com/ScheerleJo)
2 changes: 1 addition & 1 deletion module.js
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ function handleAction (url, origin){

case 'bindPresenter':
if(!bindPresenter){ // Callable only once while runtime
printDebugInfo('MidiOutput will be bound to Presenter', 'presenter');
printDebugInfo('MidiOutput will be bound to Presenter', 'presenter', origin);
callPresenterStartup();
bindPresenter = true;
} else { printDebugInfo('Presenter is already bound', 'error'); }
Expand Down
12 changes: 6 additions & 6 deletions scripts/midi2presenter_startup.ahk
Original file line number Diff line number Diff line change
Expand Up @@ -5,21 +5,21 @@ CoordMode, Mouse, Screen
varActive := WinExist("Presenter")
if (varActive != 0){
BlockInput MouseMove
MouseMove, ;to Settings Icon
MouseMove, 1869, 63 ;to Settings Icon
Click Left
Sleep, 50
MouseMove, ;to Settings
MouseMove, 1724, 241 ;to Settings
Click Left
Sleep, 100
MouseMove, ;to MIDI-Section
MouseMove, 385, 846 ;to MIDI-Section
Click Left
Sleep, 50
MouseMove, ;to Connect with MIDI-Network
MouseMove, 1724, 241 ;to Connect with MIDI-Network
Click Left
Sleep 50
MouseMove, ;to MIDI-Port
MouseMove, 1751, 353 ;to MIDI-Port
Click Left
MouseMove, ;to Presenter Logo
MouseMove, 166, 64 ;to Presenter Logo
Click Left
BlockInput, MouseMoveOff
}
Expand Down
46 changes: 20 additions & 26 deletions scripts/midi2s1_export.ahk
Original file line number Diff line number Diff line change
Expand Up @@ -3,33 +3,27 @@
CoordMode, Mouse, Screen
sleep 100
varStudio := WinExist("Studio One")
if (varStudio == 0){
BlockInput MouseMove
MouseMove, ;to Folder Selection
if (varStudio != 0){
;BlockInput MouseMove
MouseMove, 1203, 267 ;to Folder Selection
Click Left
Loop, {
varSelect := WinExist("Ordner auswählen")
if (varSelect == 0) {
MouseMove, ;to FolderPath
Click Left
SendInput, C:\Aktueller Godi
Send, {Enter}
Loop, 7 {
Send, {Tab}
}
Send, {Enter}
Sleep, 50
MouseMove, ;to Name
Click Left
FormatTime, varDate,, yyyy-MM-dd
SendInput, %varDate%_godi
MouseMove, ;to Export Button
Click Left
}
else {
sleep, 50
}
Sleep, 200
Click Left
Sleep, 50
SendInput, C:\AktuellerGodi
Send, {Enter}
Loop, 7 {
Send, {Tab}
}
BlockInput, MouseMoveOff
Send, {Enter}
Sleep, 50
MouseMove, 1067, 313 ;to Name
Click Left
FormatTime, varDate,, yyyy-MM-dd
SendInput, %varDate%_godi
MouseMove, 1517, 788 ;to Export Button
Click Left
}
;BlockInput, MouseMoveOff

ExitApp, 1

0 comments on commit 08f0f5c

Please sign in to comment.