Compare commits
No commits in common. "a63133a7a5f84e2d244521e6d0d0dc5f287d8e2a" and "9d33f9a223fe6bfe9ba5137445da1c3e1242725b" have entirely different histories.
a63133a7a5
...
9d33f9a223
@ -1,7 +1,6 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Diagnostics;
|
using System.Diagnostics;
|
||||||
using System.IO;
|
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using System.Runtime.CompilerServices;
|
using System.Runtime.CompilerServices;
|
||||||
using System.Text;
|
using System.Text;
|
||||||
@ -32,16 +31,10 @@ namespace FakeDeck.ButtonType
|
|||||||
|
|
||||||
public static bool invokeAction(string process, string arguments = "")
|
public static bool invokeAction(string process, string arguments = "")
|
||||||
{
|
{
|
||||||
if (!File.ReadAllText("./configuration.yaml").Contains(process))
|
if (!System.IO.File.ReadAllText("./configuration.yaml").Contains(process))
|
||||||
{
|
{
|
||||||
Debug.WriteLine("not known process");
|
Debug.WriteLine("not known process");
|
||||||
return false;
|
return true;
|
||||||
}
|
|
||||||
|
|
||||||
if (!File.ReadAllText("./configuration.yaml").Contains(arguments))
|
|
||||||
{
|
|
||||||
Debug.WriteLine("not known arguments");
|
|
||||||
return false;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Process notePad = new Process();
|
Process notePad = new Process();
|
||||||
|
@ -121,8 +121,6 @@ pages:
|
|||||||
parameters:
|
parameters:
|
||||||
- name: process
|
- name: process
|
||||||
value: "cmd.exe"
|
value: "cmd.exe"
|
||||||
- name: arguments
|
|
||||||
value: "/C ping google.com -t"
|
|
||||||
- name: image
|
- name: image
|
||||||
value: "https://winaero.com/blog/wp-content/uploads/2019/06/WIndows-Terminal-icon.png"
|
value: "https://winaero.com/blog/wp-content/uploads/2019/06/WIndows-Terminal-icon.png"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user