Open bugfrei opened 1 year ago
@bugfrei could you check the logs and let me know what they say? (they're in the same directory as the plugin).
I can confirm other Mac OS users have it working.
My best, off the top of my head guess is that there may be some pathing problems.
There is definitely some pathing issues going on. Like who the hell puts spaces in path names?
I think I have some changes that can get it working again on Mac, but it'll need to wait for tomorrow night.
If you want to dive into the installed plugin, you can likely find it in: ~/Library/Application Support/com.elgato.StreamDeck/Plugins/com.start-automating.scriptdeck.sdPlugin
. In that directory, if you update StartPlugin.sh
to have pwsh -nologo -file "$(dirname "$0")/StartPlugin.ps1" $*
as the last line, then it might work by closing and reopening the Stream Deck application, but you also may need to update the ps1 file to look for the scripts in $PSScriptRoot.
@StartAutomating Problem partly solved...
Hi James,
sorry no logs, only Files from Installation-Date/Time, but...
I change the StartPlugin.sh
File:
#!/bin/sh
echo "Test 1" >~/script1.txt
pwsh -nologo -file "./StartPlugin.ps1" $*
echo "Test 2" >~/script2.txt
The Files (script1.txt, script2.txt) are created if I restart the StreamDeck-App.
Then I change the File StartPlugin.ps1
:
# Include all of the *-StreamDeck.ps1 files
"Test 3" >~/script3.txt
$cnt = 0
foreach ($file in Get-ChildItem -Filter *-StreamDeck.ps1) {
$cnt++
. $file.FullName
}
$cnt >~/script4.txt
# Pipe the arguments to Watch-StreamDeck to start the plugin.
$args | Watch-StreamDeck
return
No files are created! :-(
I run the command-line pwsh -nologo -file "./StartPlugin.ps1" $*
manually in a sh (before I set the path (cd <plugin-directory>
)).
A new instance of pwsh started. The Files (script3.txt, script4.txt) are created.
But this error Message appears
Watch-StreamDeck: /Users/carstenschlegel/Library/Application Support/com.elgato.StreamDeck/Plugins/com.start-automating.scriptdeck.sdPlugin/StartPlugin.ps1:12
Line |
12 | $args | Watch-StreamDeck
| ~~~~~~~~~~~~~~~~
| The term 'Watch-StreamDeck' is not recognized as a name of a cmdlet, function, script file, or executable
| program. Check the spelling of the name, or if a path was included, verify that the path is correct and try
| again.
script4.txt contains the Number 0
!!
foreach ($file in Get-ChildItem -Filter *-StreamDeck.ps1) { $file.FullName }
in a PowerShell (with correct location) lists 3 Files (Receive-StreamDeck.ps1, Send-StreamDeck.ps1 and the important file Watch-StreamDeck.ps1).
I add in the StartPlugin.ps1
Set-Location "/Users/.../Library/Application Support/com.elgato.StreamDeck/Plugins/com.start-automating.scriptdeck.sdPlugin"
before the foreach line.
I test this in PowerShell directly (cd ~/, the Set-Location /Users/....../.....sdPlugin) It change the location correctly.
New-Test (del ~/script*.txt before restart StreamDeck-App).
Only script1.txt and script2.txt exists. The PowerShell Instance wasn't created OR the StartPlugin.ps1 don't run :-(
I have installed a zsh
terminal too. Have this another syntax for open pwsh in a script? I don't think so, but in the StartPlugin.sh pwsh don't start/run the .ps1 Script.
I add
cd "/Users/.../Library/Application Support/com.elgato.StreamDeck/Plugins/com.start-automating.scriptdeck.sdPlugin"
pwd >~/script1b.txt
in .sh File before pwsh runs.
script1b.txt contains the correct path, but only script1.txt, script1b.txt and script2.txt exists. The script3.txt and script4.txt (created by StartPlugin.ps1) does not exists :-(
I replace the pwsh command line with this
pwsh -nop -nologo -c "echo 'Command works' >~/script1c.txt"
If I run manually in zsh, the script1c.txt file exists. If I restart StremDeck-App, the file does not exists...... argh
I open a new Terminal with command sh
(a new sh Terminal was opened directly, not from zsh or pwsh).
The pwsh
Command exists and work.
Next try, I change the pwsh command in .sh to absolute path: /usr/local/microsoft/powershell/7/pwsh
Restart and: script1.txt exists script2.txt exists script3.txt exists script4.txt exists, contains 3
Pressing the Buttons on Stream Deck works correctly (not <!> -Symbol). But the scripts doesn't run ?!
Copy Script: does copy nothing (no script output, no script return values, no header, no footer)
PowerShell Script: does not copy with Set-Clipboard, and no file created with "test" >~/script12.txt
But it gives log files :-)
Log Started @ 2023-08-02T06:26:09. Running under process ID 58199
Registering Handler for '.CopyScript.KeyDown': /Users/carstenschlegel/Library/Application Support/com.elgato.StreamDeck/Plugins/com.start-automating.scriptdeck.sdPlugin/CopyScript.@.ps1
Registering Handler for '.CopyScript.KeyUp': /Users/carstenschlegel/Library/Application Support/com.elgato.StreamDeck/Plugins/com.start-automating.scriptdeck.sdPlugin/CopyScript.@.ps1
Registering Handler for '.CopyScript.WillAppear': /Users/carstenschlegel/Library/Application Support/com.elgato.StreamDeck/Plugins/com.start-automating.scriptdeck.sdPlugin/CopyScript.@.ps1
Registering Handler for '.CopyScript.WillDisappear': /Users/carstenschlegel/Library/Application Support/com.elgato.StreamDeck/Plugins/com.start-automating.scriptdeck.sdPlugin/CopyScript.@.ps1
Registering Handler for '.CopyScript.DeviceDidConnect': /Users/carstenschlegel/Library/Application Support/com.elgato.StreamDeck/Plugins/com.start-automating.scriptdeck.sdPlugin/CopyScript.@.ps1
Registering Handler for '.CopyScript.DeviceDidDisconnect': /Users/carstenschlegel/Library/Application Support/com.elgato.StreamDeck/Plugins/com.start-automating.scriptdeck.sdPlugin/CopyScript.@.ps1
Registering Handler for '.CopyScript.DidReceiveSettings': /Users/carstenschlegel/Library/Application Support/com.elgato.StreamDeck/Plugins/com.start-automating.scriptdeck.sdPlugin/CopyScript.@.ps1
Registering Handler for '.CopyScript.DidReceiveGlobalSettings': /Users/carstenschlegel/Library/Application Support/com.elgato.StreamDeck/Plugins/com.start-automating.scriptdeck.sdPlugin/CopyScript.@.ps1
Registering Handler for '.CopyScript.TitleParametersDidChange': /Users/carstenschlegel/Library/Application Support/com.elgato.StreamDeck/Plugins/com.start-automating.scriptdeck.sdPlugin/CopyScript.@.ps1
Registering Handler for '.CopyScript.ApplicationDidLaunch': /Users/carstenschlegel/Library/Application Support/com.elgato.StreamDeck/Plugins/com.start-automating.scriptdeck.sdPlugin/CopyScript.@.ps1
Registering Handler for '.CopyScript.ApplicationDidTerminate': /Users/carstenschlegel/Library/Application Support/com.elgato.StreamDeck/Plugins/com.start-automating.scriptdeck.sdPlugin/CopyScript.@.ps1
Registering Handler for '.CopyScript.SystemDidWakeUp': /Users/carstenschlegel/Library/Application Support/com.elgato.StreamDeck/Plugins/com.start-automating.scriptdeck.sdPlugin/CopyScript.@.ps1
Registering Handler for '.CopyScript.PropertyInspectorDidAppear': /Users/carstenschlegel/Library/Application Support/com.elgato.StreamDeck/Plugins/com.start-automating.scriptdeck.sdPlugin/CopyScript.@.ps1
Registering Handler for '.CopyScript.PropertyInspectorDidDisappear': /Users/carstenschlegel/Library/Application Support/com.elgato.StreamDeck/Plugins/com.start-automating.scriptdeck.sdPlugin/CopyScript.@.ps1
Registering Handler for '.CopyScript.SendToPlugin': /Users/carstenschlegel/Library/Application Support/com.elgato.StreamDeck/Plugins/com.start-automating.scriptdeck.sdPlugin/CopyScript.@.ps1
Registering Handler for '.InvokeScript.KeyDown': /Users/carstenschlegel/Library/Application Support/com.elgato.StreamDeck/Plugins/com.start-automating.scriptdeck.sdPlugin/InvokeScript.@.ps1
Registering Handler for '.InvokeScript.KeyUp': /Users/carstenschlegel/Library/Application Support/com.elgato.StreamDeck/Plugins/com.start-automating.scriptdeck.sdPlugin/InvokeScript.@.ps1
Registering Handler for '.InvokeScript.WillAppear': /Users/carstenschlegel/Library/Application Support/com.elgato.StreamDeck/Plugins/com.start-automating.scriptdeck.sdPlugin/InvokeScript.@.ps1
Registering Handler for '.InvokeScript.WillDisappear': /Users/carstenschlegel/Library/Application Support/com.elgato.StreamDeck/Plugins/com.start-automating.scriptdeck.sdPlugin/InvokeScript.@.ps1
Registering Handler for '.InvokeScript.DeviceDidConnect': /Users/carstenschlegel/Library/Application Support/com.elgato.StreamDeck/Plugins/com.start-automating.scriptdeck.sdPlugin/InvokeScript.@.ps1
Registering Handler for '.InvokeScript.DeviceDidDisconnect': /Users/carstenschlegel/Library/Application Support/com.elgato.StreamDeck/Plugins/com.start-automating.scriptdeck.sdPlugin/InvokeScript.@.ps1
Registering Handler for '.InvokeScript.DidReceiveSettings': /Users/carstenschlegel/Library/Application Support/com.elgato.StreamDeck/Plugins/com.start-automating.scriptdeck.sdPlugin/InvokeScript.@.ps1
Registering Handler for '.InvokeScript.DidReceiveGlobalSettings': /Users/carstenschlegel/Library/Application Support/com.elgato.StreamDeck/Plugins/com.start-automating.scriptdeck.sdPlugin/InvokeScript.@.ps1
Registering Handler for '.InvokeScript.TitleParametersDidChange': /Users/carstenschlegel/Library/Application Support/com.elgato.StreamDeck/Plugins/com.start-automating.scriptdeck.sdPlugin/InvokeScript.@.ps1
Registering Handler for '.InvokeScript.ApplicationDidLaunch': /Users/carstenschlegel/Library/Application Support/com.elgato.StreamDeck/Plugins/com.start-automating.scriptdeck.sdPlugin/InvokeScript.@.ps1
Registering Handler for '.InvokeScript.ApplicationDidTerminate': /Users/carstenschlegel/Library/Application Support/com.elgato.StreamDeck/Plugins/com.start-automating.scriptdeck.sdPlugin/InvokeScript.@.ps1
Registering Handler for '.InvokeScript.SystemDidWakeUp': /Users/carstenschlegel/Library/Application Support/com.elgato.StreamDeck/Plugins/com.start-automating.scriptdeck.sdPlugin/InvokeScript.@.ps1
Registering Handler for '.InvokeScript.PropertyInspectorDidAppear': /Users/carstenschlegel/Library/Application Support/com.elgato.StreamDeck/Plugins/com.start-automating.scriptdeck.sdPlugin/InvokeScript.@.ps1
Registering Handler for '.InvokeScript.PropertyInspectorDidDisappear': /Users/carstenschlegel/Library/Application Support/com.elgato.StreamDeck/Plugins/com.start-automating.scriptdeck.sdPlugin/InvokeScript.@.ps1
Registering Handler for '.InvokeScript.SendToPlugin': /Users/carstenschlegel/Library/Application Support/com.elgato.StreamDeck/Plugins/com.start-automating.scriptdeck.sdPlugin/InvokeScript.@.ps1
Registering Handler for '.PasteScript.KeyDown': /Users/carstenschlegel/Library/Application Support/com.elgato.StreamDeck/Plugins/com.start-automating.scriptdeck.sdPlugin/PasteScript.@.ps1
Registering Handler for '.PasteScript.KeyUp': /Users/carstenschlegel/Library/Application Support/com.elgato.StreamDeck/Plugins/com.start-automating.scriptdeck.sdPlugin/PasteScript.@.ps1
Registering Handler for '.PasteScript.WillAppear': /Users/carstenschlegel/Library/Application Support/com.elgato.StreamDeck/Plugins/com.start-automating.scriptdeck.sdPlugin/PasteScript.@.ps1
Registering Handler for '.PasteScript.WillDisappear': /Users/carstenschlegel/Library/Application Support/com.elgato.StreamDeck/Plugins/com.start-automating.scriptdeck.sdPlugin/PasteScript.@.ps1
Registering Handler for '.PasteScript.DeviceDidConnect': /Users/carstenschlegel/Library/Application Support/com.elgato.StreamDeck/Plugins/com.start-automating.scriptdeck.sdPlugin/PasteScript.@.ps1
Registering Handler for '.PasteScript.DeviceDidDisconnect': /Users/carstenschlegel/Library/Application Support/com.elgato.StreamDeck/Plugins/com.start-automating.scriptdeck.sdPlugin/PasteScript.@.ps1
Registering Handler for '.PasteScript.DidReceiveSettings': /Users/carstenschlegel/Library/Application Support/com.elgato.StreamDeck/Plugins/com.start-automating.scriptdeck.sdPlugin/PasteScript.@.ps1
Registering Handler for '.PasteScript.DidReceiveGlobalSettings': /Users/carstenschlegel/Library/Application Support/com.elgato.StreamDeck/Plugins/com.start-automating.scriptdeck.sdPlugin/PasteScript.@.ps1
Registering Handler for '.PasteScript.TitleParametersDidChange': /Users/carstenschlegel/Library/Application Support/com.elgato.StreamDeck/Plugins/com.start-automating.scriptdeck.sdPlugin/PasteScript.@.ps1
Registering Handler for '.PasteScript.ApplicationDidLaunch': /Users/carstenschlegel/Library/Application Support/com.elgato.StreamDeck/Plugins/com.start-automating.scriptdeck.sdPlugin/PasteScript.@.ps1
Registering Handler for '.PasteScript.ApplicationDidTerminate': /Users/carstenschlegel/Library/Application Support/com.elgato.StreamDeck/Plugins/com.start-automating.scriptdeck.sdPlugin/PasteScript.@.ps1
Registering Handler for '.PasteScript.SystemDidWakeUp': /Users/carstenschlegel/Library/Application Support/com.elgato.StreamDeck/Plugins/com.start-automating.scriptdeck.sdPlugin/PasteScript.@.ps1
Registering Handler for '.PasteScript.PropertyInspectorDidAppear': /Users/carstenschlegel/Library/Application Support/com.elgato.StreamDeck/Plugins/com.start-automating.scriptdeck.sdPlugin/PasteScript.@.ps1
Registering Handler for '.PasteScript.PropertyInspectorDidDisappear': /Users/carstenschlegel/Library/Application Support/com.elgato.StreamDeck/Plugins/com.start-automating.scriptdeck.sdPlugin/PasteScript.@.ps1
Registering Handler for '.PasteScript.SendToPlugin': /Users/carstenschlegel/Library/Application Support/com.elgato.StreamDeck/Plugins/com.start-automating.scriptdeck.sdPlugin/PasteScript.@.ps1
Registering Handler for '.Start-PowerShell.Keydown': /Users/carstenschlegel/Library/Application Support/com.elgato.StreamDeck/Plugins/com.start-automating.scriptdeck.sdPlugin/Start-PowerShell.@Keydown.ps1
Registering Handler for '.Start-Process.KeyDown': /Users/carstenschlegel/Library/Application Support/com.elgato.StreamDeck/Plugins/com.start-automating.scriptdeck.sdPlugin/Start-Process.@.ps1
Registering Handler for '.Start-Process.KeyUp': /Users/carstenschlegel/Library/Application Support/com.elgato.StreamDeck/Plugins/com.start-automating.scriptdeck.sdPlugin/Start-Process.@.ps1
Registering Handler for '.Start-Process.WillAppear': /Users/carstenschlegel/Library/Application Support/com.elgato.StreamDeck/Plugins/com.start-automating.scriptdeck.sdPlugin/Start-Process.@.ps1
Registering Handler for '.Start-Process.WillDisappear': /Users/carstenschlegel/Library/Application Support/com.elgato.StreamDeck/Plugins/com.start-automating.scriptdeck.sdPlugin/Start-Process.@.ps1
Registering Handler for '.Start-Process.DeviceDidConnect': /Users/carstenschlegel/Library/Application Support/com.elgato.StreamDeck/Plugins/com.start-automating.scriptdeck.sdPlugin/Start-Process.@.ps1
Registering Handler for '.Start-Process.DeviceDidDisconnect': /Users/carstenschlegel/Library/Application Support/com.elgato.StreamDeck/Plugins/com.start-automating.scriptdeck.sdPlugin/Start-Process.@.ps1
Registering Handler for '.Start-Process.DidReceiveSettings': /Users/carstenschlegel/Library/Application Support/com.elgato.StreamDeck/Plugins/com.start-automating.scriptdeck.sdPlugin/Start-Process.@.ps1
Registering Handler for '.Start-Process.DidReceiveGlobalSettings': /Users/carstenschlegel/Library/Application Support/com.elgato.StreamDeck/Plugins/com.start-automating.scriptdeck.sdPlugin/Start-Process.@.ps1
Registering Handler for '.Start-Process.TitleParametersDidChange': /Users/carstenschlegel/Library/Application Support/com.elgato.StreamDeck/Plugins/com.start-automating.scriptdeck.sdPlugin/Start-Process.@.ps1
Registering Handler for '.Start-Process.ApplicationDidLaunch': /Users/carstenschlegel/Library/Application Support/com.elgato.StreamDeck/Plugins/com.start-automating.scriptdeck.sdPlugin/Start-Process.@.ps1
Registering Handler for '.Start-Process.ApplicationDidTerminate': /Users/carstenschlegel/Library/Application Support/com.elgato.StreamDeck/Plugins/com.start-automating.scriptdeck.sdPlugin/Start-Process.@.ps1
Registering Handler for '.Start-Process.SystemDidWakeUp': /Users/carstenschlegel/Library/Application Support/com.elgato.StreamDeck/Plugins/com.start-automating.scriptdeck.sdPlugin/Start-Process.@.ps1
Registering Handler for '.Start-Process.PropertyInspectorDidAppear': /Users/carstenschlegel/Library/Application Support/com.elgato.StreamDeck/Plugins/com.start-automating.scriptdeck.sdPlugin/Start-Process.@.ps1
Registering Handler for '.Start-Process.PropertyInspectorDidDisappear': /Users/carstenschlegel/Library/Application Support/com.elgato.StreamDeck/Plugins/com.start-automating.scriptdeck.sdPlugin/Start-Process.@.ps1
Registering Handler for '.Start-Process.SendToPlugin': /Users/carstenschlegel/Library/Application Support/com.elgato.StreamDeck/Plugins/com.start-automating.scriptdeck.sdPlugin/Start-Process.@.ps1
Registering Handler for 'StreamDeck.DidReceiveSettings': /Users/carstenschlegel/Library/Application Support/com.elgato.StreamDeck/Plugins/com.start-automating.scriptdeck.sdPlugin/StreamDeck@DidReceiveSettings.ps1
Registering Handler for 'StreamDeck.SendToPlugin': /Users/carstenschlegel/Library/Application Support/com.elgato.StreamDeck/Plugins/com.start-automating.scriptdeck.sdPlugin/StreamDeck@SendToPlugin.ps1
Registering Handler for '.URLScript.KeyDown': /Users/carstenschlegel/Library/Application Support/com.elgato.StreamDeck/Plugins/com.start-automating.scriptdeck.sdPlugin/URLScript.@.ps1
Registering Handler for '.URLScript.KeyUp': /Users/carstenschlegel/Library/Application Support/com.elgato.StreamDeck/Plugins/com.start-automating.scriptdeck.sdPlugin/URLScript.@.ps1
Registering Handler for '.URLScript.WillAppear': /Users/carstenschlegel/Library/Application Support/com.elgato.StreamDeck/Plugins/com.start-automating.scriptdeck.sdPlugin/URLScript.@.ps1
Registering Handler for '.URLScript.WillDisappear': /Users/carstenschlegel/Library/Application Support/com.elgato.StreamDeck/Plugins/com.start-automating.scriptdeck.sdPlugin/URLScript.@.ps1
Registering Handler for '.URLScript.DeviceDidConnect': /Users/carstenschlegel/Library/Application Support/com.elgato.StreamDeck/Plugins/com.start-automating.scriptdeck.sdPlugin/URLScript.@.ps1
Registering Handler for '.URLScript.DeviceDidDisconnect': /Users/carstenschlegel/Library/Application Support/com.elgato.StreamDeck/Plugins/com.start-automating.scriptdeck.sdPlugin/URLScript.@.ps1
Registering Handler for '.URLScript.DidReceiveSettings': /Users/carstenschlegel/Library/Application Support/com.elgato.StreamDeck/Plugins/com.start-automating.scriptdeck.sdPlugin/URLScript.@.ps1
Registering Handler for '.URLScript.DidReceiveGlobalSettings': /Users/carstenschlegel/Library/Application Support/com.elgato.StreamDeck/Plugins/com.start-automating.scriptdeck.sdPlugin/URLScript.@.ps1
Registering Handler for '.URLScript.TitleParametersDidChange': /Users/carstenschlegel/Library/Application Support/com.elgato.StreamDeck/Plugins/com.start-automating.scriptdeck.sdPlugin/URLScript.@.ps1
Registering Handler for '.URLScript.ApplicationDidLaunch': /Users/carstenschlegel/Library/Application Support/com.elgato.StreamDeck/Plugins/com.start-automating.scriptdeck.sdPlugin/URLScript.@.ps1
Registering Handler for '.URLScript.ApplicationDidTerminate': /Users/carstenschlegel/Library/Application Support/com.elgato.StreamDeck/Plugins/com.start-automating.scriptdeck.sdPlugin/URLScript.@.ps1
Registering Handler for '.URLScript.SystemDidWakeUp': /Users/carstenschlegel/Library/Application Support/com.elgato.StreamDeck/Plugins/com.start-automating.scriptdeck.sdPlugin/URLScript.@.ps1
Registering Handler for '.URLScript.PropertyInspectorDidAppear': /Users/carstenschlegel/Library/Application Support/com.elgato.StreamDeck/Plugins/com.start-automating.scriptdeck.sdPlugin/URLScript.@.ps1
Registering Handler for '.URLScript.PropertyInspectorDidDisappear': /Users/carstenschlegel/Library/Application Support/com.elgato.StreamDeck/Plugins/com.start-automating.scriptdeck.sdPlugin/URLScript.@.ps1
Registering Handler for '.URLScript.SendToPlugin': /Users/carstenschlegel/Library/Application Support/com.elgato.StreamDeck/Plugins/com.start-automating.scriptdeck.sdPlugin/URLScript.@.ps1
Registering Handler for '.WatchPath.KeyDown': /Users/carstenschlegel/Library/Application Support/com.elgato.StreamDeck/Plugins/com.start-automating.scriptdeck.sdPlugin/WatchPath.@KeyDown,WillAppear.ps1
Registering Handler for '.WatchPath.WillAppear': /Users/carstenschlegel/Library/Application Support/com.elgato.StreamDeck/Plugins/com.start-automating.scriptdeck.sdPlugin/WatchPath.@KeyDown,WillAppear.ps1
Starting Watching Streamdeck @ 2023-08-02T06:26:09
{"device":"4B971B419FECA82243A08DC4C5D8F0CF","deviceInfo":{"name":"Stream Deck","size":{"columns":5,"rows":3},"type":0},"event":"deviceDidConnect"}
{"action":"com.start-automating.scriptdeck.copyscript","context":"79e14eb6cc2bb4b81398d528bd9f4b40","device":"4B971B419FECA82243A08DC4C5D8F0CF","event":"willAppear","payload":{"controller":"Keypad","coordinates":{"column":1,"row":0},"isInMultiAction":false,"settings":{"Footer":"FOOTER:","Header":"HEADER:","Script":"Write-Host \"WriteHost\"\n$a = \"Variable\"\n$a\nreturn \"returnValue\"\n","WillAppear":"","WillDisappear":""}}}
{"action":"com.start-automating.scriptdeck.copyscript","context":"79e14eb6cc2bb4b81398d528bd9f4b40","device":"4B971B419FECA82243A08DC4C5D8F0CF","event":"titleParametersDidChange","payload":{"coordinates":{"column":1,"row":0},"settings":{"Footer":"FOOTER:","Header":"HEADER:","Script":"Write-Host \"WriteHost\"\n$a = \"Variable\"\n$a\nreturn \"returnValue\"\n","WillAppear":"","WillDisappear":""},"state":0,"title":"CPY","titleParameters":{"fontFamily":"","fontSize":12,"fontStyle":"","fontUnderline":false,"showTitle":true,"titleAlignment":"bottom","titleColor":"#ffffff"}}}
{"action":"com.start-automating.scriptdeck.invokescript","context":"8ddeb48600175aceab3d1bcc00eb30b0","device":"4B971B419FECA82243A08DC4C5D8F0CF","event":"willAppear","payload":{"controller":"Keypad","coordinates":{"column":2,"row":0},"isInMultiAction":false,"settings":{"KeyDown":"echo \"Test\" >~/script12.txt\n","KeyUp":"","WillAppear":"","WillDisappear":""}}}
{"action":"com.start-automating.scriptdeck.invokescript","context":"8ddeb48600175aceab3d1bcc00eb30b0","device":"4B971B419FECA82243A08DC4C5D8F0CF","event":"titleParametersDidChange","payload":{"coordinates":{"column":2,"row":0},"settings":{"KeyDown":"echo \"Test\" >~/script12.txt\n","KeyUp":"","WillAppear":"","WillDisappear":""},"state":0,"title":"SCR","titleParameters":{"fontFamily":"","fontSize":12,"fontStyle":"","fontUnderline":false,"showTitle":true,"titleAlignment":"bottom","titleColor":"#ffffff"}}}
{"action":"com.start-automating.scriptdeck.copyscript","context":"79e14eb6cc2bb4b81398d528bd9f4b40","device":"4B971B419FECA82243A08DC4C5D8F0CF","event":"keyDown","payload":{"coordinates":{"column":1,"row":0},"isInMultiAction":false,"settings":{"Footer":"FOOTER:","Header":"HEADER:","Script":"Write-Host \"WriteHost\"\n$a = \"Variable\"\n$a\nreturn \"returnValue\"\n","WillAppear":"","WillDisappear":""}}}
{"action":"com.start-automating.scriptdeck.copyscript","context":"79e14eb6cc2bb4b81398d528bd9f4b40","device":"4B971B419FECA82243A08DC4C5D8F0CF","event":"keyUp","payload":{"coordinates":{"column":1,"row":0},"isInMultiAction":false,"settings":{"Footer":"FOOTER:","Header":"HEADER:","Script":"Write-Host \"WriteHost\"\n$a = \"Variable\"\n$a\nreturn \"returnValue\"\n","WillAppear":"","WillDisappear":""}}}
{"action":"com.start-automating.scriptdeck.invokescript","context":"8ddeb48600175aceab3d1bcc00eb30b0","device":"4B971B419FECA82243A08DC4C5D8F0CF","event":"keyDown","payload":{"coordinates":{"column":2,"row":0},"isInMultiAction":false,"settings":{"KeyDown":"echo \"Test\" >~/script12.txt\n","KeyUp":"","WillAppear":"","WillDisappear":""}}}
{"action":"com.start-automating.scriptdeck.invokescript","context":"8ddeb48600175aceab3d1bcc00eb30b0","device":"4B971B419FECA82243A08DC4C5D8F0CF","event":"keyUp","payload":{"coordinates":{"column":2,"row":0},"isInMultiAction":false,"settings":{"KeyDown":"echo \"Test\" >~/script12.txt\n","KeyUp":"","WillAppear":"","WillDisappear":""}}}
I hope you can found the last bug. The first was using complete path of pwsh
in .sh file.
Greetings from Germany/Stuttgart,
Carsten
@bugfrei I suspect that the pathing issue (for pwsh) might be related to timeframe for the install/ $env:PATH.
The remainder of the issue seems like it's related to forcing the script to run in the right working directory.
Could you add something like
Push-Location $psScriptRoot
to the top of the script?
Hello,
I use PowerShell Core every day an writing own and big script.
Today I got my StreamDeck and tried Scriptdeck right away. However, it does not work at all :-(
When I press a button (whether "PowerShell Script", "Start PowerShell Core", "Copy Script", "Paste Script", "URL Script", "Start-Process") a triangle with an exclamation mark appears for a few seconds. Nothing more happens.
Nowhere in the readme.md is the installation process described.
My system:
I hope for a solution. Actually is the plugin useless :-(
Thanks,
Carsten